joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470b30
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x470b7a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x470ba9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x470beb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x47ec20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004850a0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x47ed19
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0047ed30
test eax, eax
jne 0x47ed19
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0047ed30
test eax, eax
jne 0x47ed19
lea edx, [esp + 0x10]
push 0x6c51c8
push edx
call fcn.0049de60
mov esi, eax
add esp, 8
test esi, esi
jne 0x47ecea
lea eax, [esp + 0x10]
push 0x6c51c4
push eax
call fcn.0049de60
mov esi, eax
add esp, 8
test esi, esi
jne 0x47ecea
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x47eced
mov byte [esi], 0
push 0x6c498c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x47ed30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x47ed92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x484fe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4bee08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x485090
mov eax, dword [0x6c5d14]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004ae896
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004ae8e5
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004ae842
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x485077
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x485077
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ae4b2
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x488190
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf290
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x488337
mov ecx, dword [0x6c5d14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x48828c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00486eb0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004ae59f
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004ae4b2
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6c498c
call fcn.004ae520
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00487270
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004ae59f
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004ae4b2
lea ecx, [esp + 0xc]
call fcn.004ae97a
mov ecx, dword [esp + 0xc]
push 0x6c53cc
push ecx
call fcn.0049ce24
add esp, 8
test eax, eax
je 0x4882b4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4881ed
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004ae4b2
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004ae4b2
jmp 0x48833b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00487f30
test eax, eax
push 0
je 0x48831f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004865d0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x488305
cmp eax, 0x64
jg 0x4882f3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x488290
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x488290
cmp eax, 0x64
jge 0x48828c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x488290
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004865d0
mov esi, eax
jmp 0x488290
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x488345
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4b0896
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b08ce
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ae90d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ae8e5
jmp 0x4b08da
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b1f84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b1fc6
call fcn.004b8034
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b1fc6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b1fbd
xor eax, eax
jmp 0x4b1fce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b1fd4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b8564
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b8592
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b85b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b84ca
jmp 0x4b85b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b85b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b84ca
test edi, edi
mov eax, edi
jne 0x4b859a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011c0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402c06
push eax
mov dword fs:[0], esp
sub esp, 0x454
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x470]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SharedAccountData.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401362
lea edx, [esp + 0x14]
push ebp
lea eax, [esp + 0x25c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x25c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esp, 8
xor ebx, ebx
mov byte [eax + 1], bl
test byte [esp + 0x11c], 0x10
jne 0x401347
lea edx, [esp + 0x148]
lea ecx, [esp + 0x10]
push edx
call fcn.004028fe
lea ecx, [esp + 0x10]
mov dword [esp + 0x46c], ebx
call sub.MFC42.DLL_CString::MakeLower
push str.dynamic
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401333
push str.lastsession
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401333
push str.tmpsession
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401333
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x14]
push eax
call fcn.004028fe
lea ecx, [esp + 0x148]
mov byte [esp + 0x46c], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00402904
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x46c], bl
call fcn.004027fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x46c], 0xffffffff
call fcn.004027fc
lea eax, [esp + 0x11c]
push eax
push edi
call ebp
test eax, eax
jne 0x40128a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x460
ret
Function at 0x401380
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x402c40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push esi
push edi
push 0x404744
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.004028fe
mov esi, dword [esp + 0x370]
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x36c], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40149c
push ebp
lea ecx, [esp + 0x158]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x158]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, dword [esp + 0x380]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x18], 0x10
je 0x401456
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
call fcn.004028fe
lea ecx, [esp + 0xc]
mov byte [esp + 0x368], 2
call sub.MFC42.DLL_CString::MakeLower
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401464
lea ecx, [esp + 0xc]
mov byte [esp + 0x368], 1
call fcn.004027fc
lea ecx, [esp + 0x18]
push ecx
push edi
call ebp
test eax, eax
je 0x401494
jmp 0x401410
lea edx, [esp + 0x158]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
call fcn.00402904
lea ecx, [esp + 0xc]
mov byte [esp + 0x368], 1
call fcn.004027fc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov esi, dword [esp + 0x36c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x364], 0
call fcn.004027fc
mov ecx, dword [esp + 0x35c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x360
ret
Function at 0x4015c0
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402c9b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x40174e
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x40174e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004027fc
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x401b20
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x402cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
push str.theworld
lea eax, [esp + 0x10]
push str.C:Program_Files.
push eax
call fcn.00401380
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
xor ebx, ebx
push 0x404744
push ecx
mov dword [esp + 0x34], ebx
call esi
mov edi, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
je 0x401bb4
push str.TheWorld.ini
lea ecx, [esp + 0x10]
call fcn.00402904
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.00401030
push edi
push str.Home
push str.Browser
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00401090
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.00401020
push str.maxthon
lea eax, [esp + 0x2c]
push str.C:Program_Files.
push eax
call fcn.00401380
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.004027fc
mov ecx, dword [esp + 0xc]
push 0x404744
push ecx
call esi
add esp, 8
test eax, eax
je 0x401c61
mov edx, dword [esp + 0xc]
push edx
call fcn.004011c0
add esp, 4
lea ecx, [esp + 0xc]
push str.SharedAccountConfigConfig.ini
call fcn.00402904
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00401030
push edi
push str.HomePage
push str.Startup
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 3
call fcn.00401090
push str.home
push str.StartPageType
push str.Startup
lea ecx, [esp + 0x1c]
call fcn.00401090
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.00401020
push str.sogouexplorer
lea ecx, [esp + 0x2c]
push str.C:Program_Files.
push ecx
call fcn.00401380
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.004027fc
mov edx, dword [esp + 0xc]
push 0x404744
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 8
test eax, eax
je 0x401cbe
push str.sogou
call esi
push edi
push ebx
call fcn.00401770
add esp, 8
push ebx
push str.C:Program_FilesTencentTT
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x401ce4
push 0x4041b0
call esi
push edi
push 1
call fcn.00401770
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004027fc
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x401d10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x110
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000000
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x401e56
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x404744
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x18]
push str.http:__
push edx
call esi
add esp, 8
test eax, eax
je 0x401d94
mov word [eax], 0
jmp 0x401df6
lea eax, [esp + 0x18]
push str.www.
push eax
call esi
add esp, 8
test eax, eax
je 0x401dae
mov word [eax], 0
jmp 0x401df6
lea eax, [esp + 0x18]
push str.about:wz
push eax
call esi
add esp, 8
test eax, eax
je 0x401dc8
mov word [eax], 0
jmp 0x401df6
mov edi, 0x404394
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push 0x404744
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x1006a5e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x100a0a8], eax
je 0x1006ae5
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push 0x1006919
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x100a0a4], eax
je 0x1006ae5
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x100a0a8]
call edi
cmp eax, 0xffffffff
jne 0x1006ac9
mov esi, 0x8000ffff
jmp 0x1006b0f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006b0f
push ebx
push 0x1006930
push ebx
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
jne 0x1006af7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1006ab7
call esi
mov esi, eax
jmp 0x1006b0f
cmp eax, ebx
mov esi, eax
jl 0x1006b0f
push ebx
push dword [0x100a0a4]
call edi
cmp eax, 0x102
je 0x1006ab0
xor esi, esi
mov eax, dword [0x100a0a4]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1006b27
push eax
call edi
mov dword [0x100a0a4], ebx
mov eax, dword [0x100a0a8]
cmp eax, ebx
je 0x1006b39
push eax
call edi
mov dword [0x100a0a8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1006b47
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001968
push closesocket
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1006b87
jle 0x1006b80
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1006cb7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
mov ebx, 0x1002844
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
je 0x1006bbf
jg 0x1006bb3
mov esi, eax
jmp 0x1006cb6
and eax, 0xffff
or eax, 0x80070000
jmp 0x1006bac
cmp dword [ebp - 0x10], 2
je 0x1006bcf
mov esi, 0x8000ffff
jmp 0x1006cb6
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1006bed
mov esi, 0x8007000e
jmp 0x1006ca7
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x1006c10
jle 0x1006c34
and eax, 0xffff
or eax, 0x80070000
jmp 0x1006c34
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1006c4a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1006c38
call esi
mov esi, eax
jmp 0x1006ca7
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006ca7
add eax, eax
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
jne 0x1006c5e
mov esi, 0x8007000e
jmp 0x1006c9c
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1006c92
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1006c80
call esi
mov esi, eax
jmp 0x1006c9c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006c9c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x1006ca7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x1006cb6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 8], 0
je 0x1006cc6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4