joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401610
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x248
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x84
mov cl, 0xe9
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
mov al, 0xfc
mov dl, 0xfb
mov byte [esp + 0x13], al
mov byte [esp + 0x1c], cl
mov byte [esp + 0x20], cl
mov byte [esp + 0x2b], al
mov byte [esp + 0x33], al
mov cl, 0xf7
lea eax, [esp + 8]
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1f], dl
push 0x2e
mov dl, 0xfa
mov byte [esp + 0x2c], cl
mov byte [esp + 0x35], cl
push eax
push 0x3a
lea ecx, [esp + 0x44]
mov byte [esp + 0x14], 0x89
mov byte [esp + 0x15], 0xa5
mov byte [esp + 0x16], 0xcf
mov byte [esp + 0x17], 0xbc
mov byte [esp + 0x18], 0xb3
mov byte [esp + 0x19], 0xaf
mov byte [esp + 0x1a], 0xd2
mov byte [esp + 0x1b], 0x93
mov byte [esp + 0x1c], 0xa1
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf3
mov byte [esp + 0x22], 0x8b
mov byte [esp + 0x23], pe_nt_image_headers32
mov byte [esp + 0x24], 0xef
mov byte [esp + 0x25], 0xed
mov byte [esp + 0x26], 0x8c
mov byte [esp + 0x29], 0xf4
mov byte [esp + 0x2a], 0x91
mov byte [esp + 0x2d], 0xa4
mov byte [esp + 0x2e], 0x8c
mov byte [esp + 0x2f], 0xe2
mov byte [esp + 0x30], 0x9b
mov byte [esp + 0x31], 0xf0
mov byte [esp + 0x32], 0x88
mov byte [esp + 0x33], dl
mov byte [esp + 0x35], 0xf5
mov byte [esp + 0x36], 0x8e
mov byte [esp + 0x38], 0x9e
mov byte [esp + 0x39], 0x82
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], 0xfd
mov byte [esp + 0x3c], 0xec
mov byte [esp + 0x3e], 0x89
mov byte [esp + 0x40], 0xef
mov byte [esp + 0x41], 0xbd
call fcn.00402130
lea ecx, [esp + 0x38]
call fcn.004021c0
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40183f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
push esi
jne 0x40175b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401828
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x423030
call fcn.004021c0
push eax
call fcn.00401590
add esp, 4
mov ecx, 0x423030
call fcn.004021c0
push eax
call fcn.00401400
add esp, 4
lea ecx, [esp + 0x48]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40183f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x48]
stosb byte es:[edi], al
push edx
push str.__s___Service
lea eax, [esp + 0x154]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
mov ecx, 0x423030
call fcn.004021c0
push 0
push 0
push 2
lea ecx, [esp + 0x158]
push 0x10
push ecx
mov ecx, 0x4230a8
mov esi, eax
call fcn.004021c0
push eax
push esi
call fcn.00401300
add esp, 0x1c
test eax, eax
je 0x40183f
push 0x4211a8
mov ecx, 0x423030
call fcn.004021c0
push eax
call fcn.00401390
add esp, 8
lea ecx, [esp + 0x38]
call fcn.00402180
pop edi
mov eax, 1
pop esi
add esp, 0x248
ret
lea ecx, [esp + 0x38]
call fcn.00402180
pop edi
xor eax, eax
pop esi
add esp, 0x248
ret
Function at 0x401ba0
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x423030
stosb byte es:[edi], al
call fcn.004021c0
push eax
call fcn.00401590
add esp, 4
mov ecx, 0x423030
call fcn.004021c0
push eax
call fcn.00401400
add esp, 4
lea eax, [esp + 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x108]
push 0x104
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 4]
push str..del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 4]
push 1
lea edx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 4]
push 0
push eax
call fcn.00403230
add esp, 8
mov eax, 1
pop edi
add esp, 0x208
ret
Function at 0x4025e0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x410
test eax, eax
push esi
mov esi, dword [esp + 0x418]
push edi
je 0x402610
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402610
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402629
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
call fcn.00403b40
test eax, eax
je 0x402655
push esi
call fcn.00402810
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x410
ret
mov al, byte [0x423110]
test al, al
jne 0x40267e
push 0x104
push 0x423110
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push 0x423110
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x402801
lea ecx, [esp + 0x10c]
push ecx
call fcn.00402810
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push str.NUL_s_n
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
push 0x4212bc
push 0x423110
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x402727
push 0x4212b8
push 0x423110
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x402801
push esi
call sub.MSVCRT.dll_rewind
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x218]
push 0x208
push ecx
stosb byte es:[edi], al
call sub.MSVCRT.dll_fgets
add esp, 0x10
test eax, eax
je 0x4027a2
lea edx, [esp + 0x210]
push edx
call sub.MSVCRT.dll__strlwr
lea eax, [esp + 0x214]
push str._rename_
push eax
call sub.MSVCRT.dll_strstr
add esp, 0xc
test eax, eax
jne 0x4027d2
push esi
lea ecx, [esp + 0x214]
push 0x208
push ecx
call sub.MSVCRT.dll_fgets
add esp, 0xc
test eax, eax
jne 0x402762
push esi
push str._rename__n
call sub.MSVCRT.dll_fputs
lea edx, [esp + 0x10]
push esi
push edx
call sub.MSVCRT.dll_fputs
add esp, 0x10
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
lea eax, [esp + 0x14]
push esi
push eax
call sub.MSVCRT.dll_fputs
add esp, 0x14
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
pop edi
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x402fc0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
push edi
je 0x40306a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40306a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403004
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop edi
pop esi
add esp, 0x104
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [esp + 0x114]
lea eax, [esp + 8]
push edi
push eax
call fcn.00402fc0
add esp, 8
test eax, eax
je 0x40306a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
add esp, 0x104
ret
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x403230
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x403243
push edi
call fcn.00402810
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403254
push esi
call fcn.00402810
add esp, 4
call fcn.00403b40
test eax, eax
je 0x403273
xor eax, eax
test esi, esi
setne al
add eax, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
ret
push esi
push edi
call fcn.00403280
add esp, 8
pop edi
pop esi
ret
Function at 0x403540
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x364]
mov dword [esp + 0x14], 0
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4036d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x4036d0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
lea eax, [esp + 0x120]
push esi
push eax
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x11c]
push 0x42139c
push ecx
call ebx
lea edx, [esp + 0x220]
lea eax, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4036d0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [esp + 0x1c]
push esi
push ecx
stosb byte es:[edi], al
call ebp
lea edx, [esp + 0x24c]
lea eax, [esp + 0x18]
push edx
push eax
call ebx
test byte [esp + 0x220], 0x10
jne 0x403632
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.004025e0
add esp, 8
jmp 0x403675
lea edx, [esp + 0x24c]
push edx
push 0x421398
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x403675
lea eax, [esp + 0x24c]
push eax
push 0x421394
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x403675
lea ecx, [esp + 0x18]
push ecx
call fcn.00403540
add esp, 4
test eax, eax
je 0x403697
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4035e6
mov edi, 1
jmp 0x40369b
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4036d0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4036c0
push 1
push esi
call fcn.004025e0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x350
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret

Function at 0x403be0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x403c13
cmp dword [esp + 4], 6
jb 0x403c13
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x404fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], bl
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x423790], ebx
jne 0x404fed
pop edi
xor eax, eax
pop ebx
add esp, 0x20c
ret 0x10
mov ecx, dword [esp + 0x218]
push esi
lea eax, [esp + 0x114]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40509b
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push str.dllcache
push eax
call esi
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea edx, [esp + 0x10]
push eax
push edx
call esi
push 1
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
je 0x40509b
mov ecx, dword [esp + 0x220]
push ecx
push esi
call fcn.00404ec0
cmp eax, ebx
je 0x405094
mov ecx, dword [esp + 0x228]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x228]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x20c
ret 0x10

Function at 0x4050b0
Capabilities:
Check for sandbox and av modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ad38
push eax
mov eax, dword [0x423790]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
push esi
je 0x40515a
push edi
mov ecx, 0x4237a8
call fcn.004021c0
xor esi, esi
push str.Dbghelp.dll
mov edi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [esp + 8], eax
jne 0x405117
push str.Dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 8], eax
je 0x405125
mov dword [esp + 0xc], esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
pop edi
je 0x40515a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call esi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 0x28]
cmp ax, 0x10
jb 0x405178
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov edx, dword [esp + 0x20]
and eax, 0xffff
mov ecx, dword [edx + 0x3c]
lea ecx, [ecx + eax*8 + 0x78]
mov eax, dword [ecx + edx]
add ecx, edx
add eax, edx
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x40519c
mov ecx, dword [ecx + 4]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x4062b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
push edx
push str.Insttm
push str.SOFTWARESogouComponentsOmniAddr
push 0x80000002
mov dword [esp + 0x1c], 3
mov dword [esp + 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x4062f1
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp + 8]
add esp, 0xc
ret

Function at 0x406430
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x104
push esi
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
add edx, 4
push eax
push edx
call fcn.004076a0
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406490
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406490
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x406e30
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x406eea
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x406e7c
cmp dword [esp + 4], 4
jne 0x406eea
mov eax, 1
add esp, 0x94
ret
cmp eax, 2
jne 0x406eea
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x406ec0
mov eax, dword [esp + 8]
test eax, eax
jne 0x406e9e
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x406eaf
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x406eea
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x406eea
mov eax, dword [esp + 8]
test eax, eax
jne 0x406ed9
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x406eea
mov eax, 6
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x407130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x41db3c]
mov edx, dword [0x41db44]
push esi
mov esi, ecx
mov ecx, dword [0x41db40]
mov dword [esp + 0xc], eax
mov eax, dword [0x41db48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
lea ecx, [esp + 4]
mov dword [esp + 0x18], eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push str.HWID
push str.SOFTWARESogouComponentsOmniAddr
push 0x80000002
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4071bb
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4071af
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
pop esi
add esp, 0x18
ret 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4071d6
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
call fcn.004071e0
pop esi
add esp, 0x18
ret 8
xor eax, eax
pop esi
add esp, 0x18
ret 8
Function at 0x4071e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x4071fa
xor eax, eax
add esp, 0x10
ret 4
push esi
mov ecx, 0x4241d0
call fcn.004021c0
lea ecx, [esp + 4]
push 0x10
push ecx
push 3
mov ecx, 0x4241c0
mov esi, eax
call fcn.004021c0
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp + 0x18]
pop esi
test eax, eax
je 0x40724b
mov edx, dword [esp]
mov ecx, dword [esp + 4]
mov dword [eax], edx
mov edx, dword [esp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, 1
add esp, 0x10
ret 4

Function at 0x407260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov ecx, 0x4241d0
mov dword [esp + 4], 0
mov dword [esp + 8], 2
call fcn.004021c0
mov esi, eax
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, 0x4241b0
call fcn.004021c0
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ax, word [esp + 4]
pop esi
add esp, 0xc
ret

Function at 0x407350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x41db3c]
mov ecx, dword [0x41db40]
mov edx, dword [0x41db44]
mov dword [esp + 0x18], eax
mov eax, dword [0x41db48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
lea ecx, [esp]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.HWID
push str.SOFTWARESogouComponentsOmniAddr
push 0x80000002
mov dword [esp + 0x18], 0x10
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40740a
xor ecx, ecx
push esi
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0x18], ecx
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 8]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push str._08X_08X_08X_08X
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0x18
mov eax, 1
pop edi
pop esi
add esp, 0x28
ret 8
xor eax, eax
add esp, 0x28
ret 8
Function at 0x408150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push eax
push str.CLSID_sInprocServer32
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4081d1
xor al, al
pop edi
add esp, 0x214
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40820b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
add esp, 0x214
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 4
setae al
add esp, 0x214
ret

Function at 0x4082e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x4242d0
push ebx
push eax
xor ebx, ebx
call fcn.004021c0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x408358
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x40834d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret

Function at 0x408370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x4242c0
push ebx
push eax
xor ebx, ebx
call fcn.004021c0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4083e8
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x4083dd
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret