joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b932
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaf38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x53c
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.0041bb51
add esp, 8
test eax, eax
je 0x41bb43
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x138]
call fcn.00409340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
push ecx
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x41b9b7
cmp dword [ebp - 0x118], 0
jne 0x41b9b7
cmp dword [ebp - 0x114], 0x100000
jbe 0x41b9ce
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00409510
jmp 0x41bb43
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4c3f74
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x41bac4
mov edx, dword [ebp - 0x140]
push edx
push 0x400
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x41bab4
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x548], 0
jmp 0x41ba51
mov ecx, dword [ebp - 0x548]
add ecx, 1
mov dword [ebp - 0x548], ecx
mov edx, dword [ebp - 0x548]
cmp edx, dword [ebp + 0xc]
jge 0x41ba88
mov eax, dword [ebp - 0x548]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
push edx
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x41ba86
mov dword [ebp - 0x544], 1
jmp 0x41ba88
jmp 0x41ba42
cmp dword [ebp - 0x544], 0
je 0x41ba9d
mov dword [ebp - 0x13c], 1
jmp 0x41baaf
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp - 0x138]
call fcn.00409390
jmp 0x41ba08
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
cmp dword [ebp - 0x13c], 0
je 0x41bb1d
push 0x4c3f78
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x41bb1d
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x138]
call fcn.0041f4d0
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00409510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41bb51
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov al, byte [0x53e784]
mov byte [ebp - 0x104], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 1
test ecx, ecx
je 0x41bc0e
mov dword [ebp - 0x108], 2
mov dword [ebp - 0x10c], 0x104
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x108]
push ecx
push str.DataBasePath
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442d8a
test eax, eax
jne 0x41bbe8
push 0x4c3fc0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp 0x41bc0c
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.DriversetcHosts
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x41bc32
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Hosts
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409000
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41bc74
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x41bc74
mov dword [ebp - 0x214], 1
jmp 0x41bc7e
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x214]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41bec6
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov dword [ebp - 0x13c], ecx
cmp dword [ebp + 8], 0
jne 0x41bee2
xor eax, eax
jmp 0x41c026
cmp dword [ebp + 0x14], 0
jne 0x41bf1a
mov dword [ebp - 0x114], 0x104
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x41bf11
xor eax, eax
jmp 0x41c026
lea edx, [ebp - 0x10c]
mov dword [ebp + 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x41c023
cmp dword [ebp + 0x10], 2
je 0x41bf67
cmp dword [ebp + 0x10], 1
jne 0x41bf7c
mov ecx, dword [ebp + 0x14]
push ecx
push 3
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x13c]
call fcn.0041be2a
mov dword [ebp - 0x138], 0
push 0x20
push 0
lea eax, [ebp - 0x134]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 3
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x134]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
jne 0x41c00d
push 0
mov edx, dword [ebp - 0x138]
push edx
push 0
push 0
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x138], 0
je 0x41c00d
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x110], 0
je 0x41c023
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x41c3b8
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 4], 0
movsx eax, byte [0x53e788]
test eax, eax
jne 0x41c429
push 0x104
push 0x53e788
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x53e788
call fcn.0040a130
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41c40f
push 0x2f
push 0x53e788
call fcn.0040a130
add esp, 8
mov dword [ebp - 8], eax
push str._antifilelib.dat
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409000
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x41c479
call fcn.004510b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41c479
mov edx, dword [ebp - 0xc]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x53e88c
push 0x4c4954
push 0x4c4958
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0x53e788
lea ecx, [ebp - 0x110]
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov eax, 0x53e788
mov esp, ebp
pop ebp
ret
Function at 0x41c4e5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
call fcn.004510b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c5dd
mov dword [ebp - 8], 1
mov dword [ebp - 0x110], 0x104
mov eax, dword [ebp - 4]
push eax
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push 0x4c4988
push 0x4c498c
push 0x4c4990
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x4c499c
push 0x4c49ac
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442d8a
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x41c588
push 0x4c49c4
push 0x104
lea edx, [ebp - 0x10c]
push edx
call fcn.00409000
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00402980
add esp, 8
test eax, eax
jle 0x41c5dd
lea edx, [ebp - 0x214]
push edx
call sub.ntdll.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0x4c49c8
push 0x4c49d8
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442f8d
mov eax, 1
jmp 0x41c5df
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41cbbd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
call fcn.004510b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ccb5
mov dword [ebp - 8], 1
mov dword [ebp - 0x110], 0x104
mov eax, dword [ebp - 4]
push eax
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push 0x4c4b14
push 0x4c4b18
push 0x4c4b1c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x4c4b28
push 0x4c4b38
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442d8a
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x41cc60
push 0x4c4b50
push 0x104
lea edx, [ebp - 0x10c]
push edx
call fcn.00409000
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00402980
add esp, 8
test eax, eax
jle 0x41ccb5
lea edx, [ebp - 0x214]
push edx
call sub.ntdll.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0x4c4b54
push 0x4c4b64
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442f8d
mov eax, 1
jmp 0x41ccb7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41ccbb
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 4], 0
movsx eax, byte [0x53e890]
test eax, eax
jne 0x41cd2c
push 0x104
push 0x53e890
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x53e890
call fcn.0040a130
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41cd12
push 0x2f
push 0x53e890
call fcn.0040a130
add esp, 8
mov dword [ebp - 8], eax
push str._antihostlib.dat
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409000
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x41cd7c
call fcn.004510b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41cd7c
mov edx, dword [ebp - 0xc]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x53e994
push 0x4c4b90
push 0x4c4b94
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0x53e890
lea ecx, [ebp - 0x110]
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov eax, 0x53e890
mov esp, ebp
pop ebp
ret
Function at 0x41d021
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 0x210], ecx
cmp dword [0x53ea38], 0
je 0x41d043
mov eax, dword [0x53ea38]
jmp 0x41d164
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Advapi32.dll
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.NewAdvapi32.dll
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41d0ac
xor eax, eax
jmp 0x41d164
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x108], eax
push 4
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x108], 0
jne 0x41d0ea
xor eax, eax
jmp 0x41d164
push str.RegEnumValueA
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0x94], eax
push str.RegOpenKeyExA
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0x98], eax
mov edx, dword [ebp - 0x210]
cmp dword [edx + 0x98], 0
je 0x41d144
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x94], 0
jne 0x41d155
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x41d164
mov dword [0x53ea38], 1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41d312
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x41d33e
mov eax, dword [ebp + 8]
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d33e
mov dword [ebp - 8], 1
jmp 0x41d345
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x41d34e
Capabilities:
Delete file
Move file
Persist via run registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x41d3a4
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push 0x4c4c80
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.004430fd
mov edx, dword [ebp + 8]
add edx, 4
push edx
push 0x4c4cb0
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.004430fd
jmp 0x41d543
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x41d424
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push 0x4c4ce0
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.004430fd
mov edx, dword [ebp + 8]
add edx, 4
push edx
push 0x4c4d28
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.004430fd
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0x4c4d70
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.00443017
jmp 0x41d543
mov eax, dword [ebp + 8]
cmp dword [eax], 4
jne 0x41d46a
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push 0x4c4d7c
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.00443017
jmp 0x41d543
mov ecx, dword [ebp + 8]
cmp dword [ecx], 8
jne 0x41d502
mov edx, dword [ebp + 8]
add edx, 4
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00443017
lea edx, [ebp - 0x104]
push edx
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.00443017
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0x4c4dd8
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.00443017
jmp 0x41d543
mov eax, dword [ebp + 8]
cmp dword [eax], 0x20
jne 0x41d543
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push 0x4c4de4
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00443017
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x108]
call fcn.0041d312
test eax, eax
je 0x41d59a
mov ecx, dword [ebp + 8]
add ecx, 0x108
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41d59a
cmp dword [ebp + 0xc], 0
je 0x41d59a
push 0x80
mov edx, dword [ebp + 8]
add edx, 0x108
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
mov eax, dword [ebp + 8]
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x41d59f
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x41d5a5
Capabilities:
Enumerate files on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x314], 0x10000
mov byte [ebp - 0x20c], 0
mov byte [ebp - 0x310], 0
mov dword [ebp - 0x318], 0
jmp 0x41d5e7
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 2
jge 0x41d766
mov ecx, dword [ebp - 0x318]
mov dword [ebp - 0x468], ecx
cmp dword [ebp - 0x468], 0
je 0x41d614
cmp dword [ebp - 0x468], 1
je 0x41d634
jmp 0x41d654
push 0
push 7
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41d632
mov byte [ebp - 0x20c], 0
jmp 0x41d65b
push 0
push 0x18
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41d652
mov byte [ebp - 0x20c], 0
jmp 0x41d65b
mov byte [ebp - 0x20c], 0
movsx ecx, byte [ebp - 0x20c]
test ecx, ecx
je 0x41d761
lea edx, [ebp - 0x20c]
push edx
call sub.ntdll.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x20c]
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
movsx edx, byte [ecx - 1]
cmp edx, 0x5c
je 0x41d6ad
mov eax, dword [ebp - 0x31c]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 0x31c]
add ecx, 1
mov dword [ebp - 0x31c], ecx
push 0x4c4e0c
mov edx, dword [ebp - 0x31c]
push edx
call sub.ntdll.dll_strcpy
add esp, 8
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0xffffffff
je 0x41d761
mov edx, dword [ebp - 0x460]
and edx, 0x10
test edx, edx
jne 0x41d73c
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x31c]
push ecx
call sub.ntdll.dll_strcpy
add esp, 8
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x310]
push eax
call sub.ntdll.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x464]
add edx, 0x84
push edx
mov ecx, dword [ebp - 0x464]
call fcn.0041e8a0
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41d6e4
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41d5d8
mov ecx, dword [ebp - 0x464]
add ecx, 0x84
call fcn.0041ef70
mov esp, ebp
pop ebp
ret
Function at 0x41df54
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x318], 8
mov byte [ebp - 0x210], 0
mov byte [ebp - 0x314], 0
mov dword [ebp - 4], 0
jmp 0x41df8d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x41e12d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4ae280]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x320]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4ae280]
push edx
call fcn.00442b70
mov ecx, eax
call fcn.004431ff
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x41e128
mov dword [ebp - 0x324], 0
mov eax, 1
test eax, eax
je 0x41e115
push 0x104
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x324]
push edx
mov eax, dword [ebp - 0x320]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
je 0x41e02c
jmp 0x41e115
movsx ecx, byte [ebp - 0x314]
cmp ecx, 0x7b
jne 0x41e101
lea edx, [ebp - 0x314]
push edx
push 0x4c4fac
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x428]
push edx
push closesocket
call fcn.00442b70
mov ecx, eax
call fcn.004431ff
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x41e101
mov dword [ebp - 0x42c], 0x104
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x430]
push edx
call fcn.00442b70
mov ecx, eax
call fcn.00443226
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x41e0ee
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x34
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.0041e8a0
mov edx, dword [ebp - 0x430]
push edx
call fcn.00442b70
mov ecx, eax
call fcn.00443318
mov eax, dword [ebp - 0x324]
add eax, 1
mov dword [ebp - 0x324], eax
jmp 0x41dfeb
mov ecx, dword [ebp - 0x320]
push ecx
call fcn.00442b70
mov ecx, eax
call fcn.00443318
jmp 0x41df84
mov ecx, dword [ebp - 0x434]
add ecx, 0x34
call fcn.0041ef70
mov esp, ebp
pop ebp
ret
Function at 0x41e14c
Capabilities:
Get common file path
Get file attributes
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov dword [ebp - 0x648], ecx
mov dword [ebp - 0x314], 0x40
mov byte [ebp - 0x310], 0
mov byte [ebp - 0x20c], 0
mov dword [ebp - 4], SysStringLen
lea eax, [ebp - 0x31c]
push eax
push 0x20019
push 0
push 0x4c4fc4
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.004431ff
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jne 0x41e3c2
mov dword [ebp - 0x52c], 0x208
mov dword [ebp - 0x634], 0
mov byte [ebp - 0x524], 0
lea ecx, [ebp - 0x52c]
push ecx
lea edx, [ebp - 0x524]
push edx
lea eax, [ebp - 0x528]
push eax
push 0
push 0x4c4ffc
mov ecx, dword [ebp - 0x31c]
push ecx
call fcn.00442b70
mov ecx, eax
call fcn.00443226
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0xea
jne 0x41e263
mov edx, dword [ebp - 0x52c]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x634], eax
lea ecx, [ebp - 0x52c]
push ecx
mov edx, dword [ebp - 0x634]
push edx
lea eax, [ebp - 0x528]
push eax
push 0
push 0x4c500c
mov ecx, dword [ebp - 0x31c]
push ecx
call fcn.00442b70
mov ecx, eax
call fcn.00443226
mov dword [ebp - 0x318], eax
mov edx, dword [ebp - 0x31c]
push edx
call fcn.00442b70
mov ecx, eax
call fcn.00443318
cmp dword [ebp - 0x318], 0
jne 0x41e39e
push 0x104
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x634], 0
jne 0x41e2ac
lea ecx, [ebp - 0x524]
mov dword [ebp - 0x64c], ecx
jmp 0x41e2b8
mov edx, dword [ebp - 0x634]
mov dword [ebp - 0x64c], edx
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x638], eax
cmp dword [ebp - 0x638], 0
je 0x41e39e
mov ecx, dword [ebp - 0x638]
movsx edx, byte [ecx]
test edx, edx
je 0x41e39e
push 0x2c
mov eax, dword [ebp - 0x638]
push eax
call fcn.0041eec0
add esp, 8
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
je 0x41e31a
mov ecx, dword [ebp - 0x63c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x63c]
add edx, 1
mov dword [ebp - 0x63c], edx
mov eax, dword [ebp - 0x638]
push eax
lea ecx, [ebp - 0x630]
push ecx
push 0x4c501c
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
test eax, eax
jne 0x41e38d
push 0x104
mov ecx, dword [ebp - 0x638]
push ecx
lea edx, [ebp - 0x310]
push edx
call fcn.0041eee0
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
mov ecx, dword [ebp - 0x648]
add ecx, 0x64
push ecx
mov ecx, dword [ebp - 0x648]
call fcn.0041e8a0
mov edx, dword [ebp - 0x63c]
mov dword [ebp - 0x638], edx
jmp 0x41e2c4
cmp dword [ebp - 0x634], 0
je 0x41e3c2
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x644], eax
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.004a90a8
add esp, 4
mov ecx, dword [ebp - 0x648]
add ecx, 0x64
call fcn.0041ef70
mov esp, ebp
pop ebp
ret