joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c9c0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10129257
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x10194180]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x80], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000ca13
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000ca13
xor al, al
jmp 0x1000cb54
push ebx
push ebp
push edi
lea ecx, [esp + 0x14]
call fcn.100408b0
mov dword [esp + 0x98], 0
push 0
push 0
push str._a_b_c____
lea ecx, [esp + 0x20]
call fcn.10043ac0
push 0x101369d8
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.100082c0
mov byte [esp + 0x98], 1
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
call fcn.1003ef30
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [esp + 0x98], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add ebp, 0xfffffff8
lea ecx, [ebp + 4]
push ecx
call edi
test eax, eax
jg 0x1000ca91
push ebp
call fcn.100569b3
add esp, 4
test bl, bl
jne 0x1000cb3b
lea ecx, [esp + 0x14]
call fcn.1003ea80
push 0x101369d8
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.100082c0
mov byte [esp + 0x98], 2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.10040960
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [esp + 0x98], 0
mov ebp, dword [esp + 0x10]
add ebp, 0xfffffff8
lea eax, [ebp + 4]
push eax
call edi
test eax, eax
jg 0x1000caf3
push ebp
call fcn.100569b3
add esp, 4
test bl, bl
push 0x101369d8
je 0x1000cb76
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.100082c0
mov byte [esp + 0x98], 3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x98], 0
mov esi, dword [esp + 0x10]
add esi, 0xfffffff8
lea edx, [esi + 4]
push edx
call edi
test eax, eax
jg 0x1000cb3b
push esi
call fcn.100569b3
add esp, 4
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10007d90
xor al, al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x80]
pop esi
call fcn.100571c6
add esp, 0x8c
ret
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.100082c0
mov byte [esp + 0x98], 4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x98], 0
mov esi, dword [esp + 0x10]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jg 0x1000cbb5
push esi
call fcn.100569b3
add esp, 4
push 0x101369d4
push 0x101369d0
lea ecx, [esp + 0x1c]
mov edi, 0x101369cc
call fcn.1003f120
mov ecx, eax
call fcn.1003f610
mov esi, eax
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000cbe6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000cb3b
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10007d90
mov al, 1
jmp 0x1000cb51
Function at 0x1000ed50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10129729
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.1006c9e0
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x18]
call fcn.1006c9e0
mov byte [esp + 0x14], 1
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.1000dbb0
mov dword [edi + 4], eax
mov dword [edi + 8], 0
mov byte [esp + 0x14], 2
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.1000dbb0
mov dword [edi + 4], eax
mov dword [edi + 8], 0
mov byte [esp + 0x14], 3
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000edf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10129729
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x14], 3
mov eax, dword [esi + 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x14], 2
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.1006daa0
mov eax, dword [edi + 4]
push eax
call fcn.101209d7
add esp, 4
mov dword [edi + 4], 0
mov byte [esp + 0x14], 1
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.1006daa0
mov eax, dword [edi + 4]
push eax
call fcn.101209d7
add esp, 4
mov dword [edi + 4], 0
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x18]
call fcn.1006c9f0
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.1006c9f0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10010990
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101299a0
push eax
mov eax, dword [0x101a509c]
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x24]
cmp ebp, eax
jl 0x10010b2e
push esi
push edi
push 0
lea ecx, [esp + 0x30]
call fcn.10001520
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov esi, 0x101360cc
mov byte [edi], cl
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp*4 + 0x10192bcc]
push eax
push ecx
lea edx, [esp + 0x34]
push str._s__s
push edx
call fcn.10008370
mov eax, dword [esp + 0x3c]
add esp, 0x10
push eax
mov ecx, 0x101a590c
call fcn.1001da40
push 0x10136cfc
push 0x10136cf8
lea ecx, [esp + 0x34]
call fcn.10010040
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0x10010a32
cmp byte [eax], 0xd
jne 0x10010a2a
mov byte [eax], 0xa
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010a22
push 2
lea ecx, [esp + 0x10]
call fcn.10001520
mov esi, dword [esp + 0xc]
mov cx, word [0x10136cf8]
mov word [esi], cx
mov byte [esi + 2], 0
mov byte [esp + 0x20], 1
mov edx, dword [ebp*4 + 0x10192bcc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.100082c0
mov byte [esp + 0x20], 2
push 0x10136cf4
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.100082c0
mov byte [esp + 0x20], 3
mov eax, dword [eax]
push eax
push 0x10136cfc
lea ecx, [esp + 0x34]
call fcn.10010040
mov byte [esp + 0x20], 2
mov edi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add edi, 0xfffffff8
lea edx, [edi + 4]
push edx
call ebp
test eax, eax
jg 0x10010abb
push edi
call fcn.100569b3
add esp, 4
mov byte [esp + 0x20], 1
mov edi, dword [esp + 0x14]
add edi, 0xfffffff8
lea eax, [edi + 4]
push eax
call ebp
test eax, eax
jg 0x10010ada
push edi
call fcn.100569b3
add esp, 4
mov byte [esp + 0x20], 0
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call ebp
test eax, eax
jg 0x10010af5
push esi
call fcn.100569b3
add esp, 4
push 0x10136cf8
lea ecx, [esp + 0x30]
call fcn.10008230
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x20], 0xffffffff
add esi, 0xfffffff8
lea edx, [esi + 4]
push edx
call ebp
test eax, eax
jg 0x10010b2c
push esi
call fcn.100569b3
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10]
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10016fc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1012ac20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.10001520
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x20]
call fcn.1006e360
mov ebx, 1
mov byte [esp + 0x48], bl
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x28]
push edx
push 0x20006
push ebx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100170cc
mov edx, dword [esp + 0x5c]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017040
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x60]
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
je 0x100170bf
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.1006e5c0
mov byte [esp + 0x50], 2
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push str.WriteRegKeyToEveryone____Write_CPM_registry_key_failed:__s
push eax
call fcn.10008370
add esp, 0x14
mov byte [esp + 0x48], bl
mov esi, dword [esp + 0x18]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jg 0x100170ac
push esi
call fcn.100569b3
add esp, 4
mov edx, dword [esp + 0x10]
push 2
push edx
call fcn.10010990
mov bl, byte [esp + 0x17]
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10017128
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.1006e5c0
mov byte [esp + 0x50], 3
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push str.WriteRegKeyToEveryone____Create_CPM_registry_key_failed:__s
push eax
call fcn.10008370
add esp, 0x14
mov byte [esp + 0x48], bl
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jg 0x10017115
push esi
call fcn.100569b3
add esp, 4
mov edx, dword [esp + 0x10]
push 2
push edx
call fcn.10010990
mov bl, byte [esp + 0x17]
add esp, 8
mov byte [esp + 0x48], 0
lea ecx, [esp + 0x20]
call fcn.1006e3a0
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x10]
add esi, 0xfffffff8
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jg 0x10017158
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x10018ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012afe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
lea ecx, [esp + 0x30]
call fcn.100e8f50
mov dword [esp + 0x60], 0
lea eax, [esp + 0x30]
push eax
call fcn.10018bf0
add esp, 4
lea ecx, [esp + 0xc]
call fcn.100ea1c0
mov bl, 1
mov byte [esp + 0x60], bl
push ecx
mov ecx, esp
mov dword [esp + 8], esp
push 0x1013677c
call fcn.10008c50
mov byte [esp + 0x64], 2
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x10137aec
call fcn.10008c50
mov byte [esp + 0x68], bl
lea ecx, [esp + 0x14]
call fcn.100ea120
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.100e9dd0
mov bl, al
mov byte [esp + 0x60], 0
lea ecx, [esp + 0xc]
call fcn.100ea070
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.100e9000
mov ecx, dword [esp + 0x58]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret
Function at 0x10019e10
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10194180]
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push edi
push eax
xor esi, esi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10019f01
push edi
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x18]
push eax
push 8
xor edx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x18]
push ecx
push 0xc
mov dword [esp + 0x24], edx
lea edx, [esp + 0x2c]
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
cmp esi, edi
je 0x10019efa
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10019efa
push ebx
push eax
call fcn.100567f4
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x10019ef9
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x10019ef0
mov ecx, dword [ebx + 0x1c]
xor eax, eax
cmp ecx, 7
sete al
mov esi, eax
push ebx
call fcn.100569b3
add esp, 4
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
call fcn.100571c6
add esp, 0x1c
ret

Function at 0x10019f20
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10194180]
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x21c]
lea edx, [esp + 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10019f42
push ebx
mov ebx, dword [esp + 0x218]
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019f58
push esi
push edi
lea edi, [esp + 0x110]
sub eax, edx
dec edi
jmp 0x10019f70
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10019f70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x104
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
pop edi
pop esi
je 0x10019fdc
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019fb0
sub eax, edx
lea edx, [esp + 4]
push edx
mov byte [esp + eax + 7], cl
call fcn.10019e10
add esp, 4
test eax, eax
je 0x10019fdc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x214]
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ecx, dword [esp + 0x20c]
pop ebx
call fcn.100571c6
add esp, 0x20c
ret
Function at 0x1001a010
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
mov eax, dword [0x10194180]
push ebx
mov ebx, dword [esp + 0x218]
push esi
push 0x104
mov dword [esp + 0x218], eax
lea eax, [esp + 0x114]
push eax
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, byte [esp + 8]
test al, al
jns 0x1001a0ce
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001a0b6
push 0x104
push ebx
push 0x104
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.10019f20
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1001a0af
lea ebx, [ebx]
push 0x104
push ebx
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.10019f20
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1001a090
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20c]
call fcn.100571c6
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebx
call fcn.100571c6
add esp, 0x210
ret

Function at 0x1001a0f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10194180]
push ebx
mov dword [esp + 0x6c], eax
push ebp
xor eax, eax
push esi
mov word [esp + 0xd], ax
xor bl, bl
push edi
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 4
lea ecx, [esp + 0x14]
push 0x10137c20
push ecx
mov ebp, eax
mov esi, 1
call fcn.100577d0
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
test ebp, esi
je 0x1001a180
mov dl, bl
lea eax, [esp + 0x10]
add dl, 0x41
push eax
mov byte [esp + 0x14], dl
call edi
cmp eax, 2
je 0x1001a180
cmp eax, 5
je 0x1001a180
cmp eax, 4
je 0x1001a180
push 0x64
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x1001a180
lea eax, [esp + 0x14]
push 0x64
push eax
call fcn.1001a010
add esp, 8
shl esi, 1
inc bl
cmp bl, 0x1a
jl 0x1001a138
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.100571c6
add esp, 0x6c
ret
Function at 0x1001a6c0
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push str.tracert9
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
call edi
push str.CpmTray
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call edi
push 0x1013677c
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call edi
push str.Loader_for_NT4
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call edi
push 0x101a59d0
push str.CLSID_
lea eax, [ebp - 0x14]
push eax
call fcn.10008510
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push eax
push accept
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001c80
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiersShell_Integration_3.0
push connect
call esi
mov ecx, dword [0x101a59d0]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push connect
call edi
push str.SYSTEMCurrentControlSetServicesLogsAndAlerts
push connect
call esi
push str.SYSTEMCurrentControlSetServicesGS
push connect
call esi
push str.SYSTEMCurrentControlSetServices_tdip
push connect
call esi
push str.SYSTEMCurrentControlSetServicesCDRomFlt
push connect
call esi
push str.SYSTEMCurrentControlSetServicesProcProt
push connect
call esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotifyCPM
push connect
call esi
push str.softwareHuaweiSPES5.0CompositesCPM
push connect
call esi
push str.softwarePM
push connect
call esi
push str.SOFTWAREHuaweiSPES5.0CompositesCPM
push connect
call esi
push str.SOFTWAREHuaweiSPES5.0CompositesComputerCode
push connect
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001bc50
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x101a59cc]
test al, al
jne 0x1001bcde
mov al, byte [0x101a59d8]
test al, al
jne 0x1001bcc2
push edi
push 0x104
push 0x101a59d8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x101a59d8
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001bc80
mov ax, word [0x101366a0]
mov word [edi], ax
mov edi, 0x101a59d8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001bc97
mov ecx, dword [str.msxml4rc.dll]
mov edx, dword [0x10136c18]
mov eax, dword [0x10136c1c]
mov dword [edi], ecx
mov cl, byte [0x10136c20]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov byte [edi + 0xc], cl
pop edi
push str.NetworkServices
push 0x101a59d8
push str.Logs_and_Alerts
push str.LogsAndAlerts
call fcn.1001b4c0
add esp, 0x10
ret

Function at 0x1001bfd0
Capabilities:
Get session information

Disassembly:
push 0xffffffffffffffff
push 0x1012b5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x10
xor ebx, ebx
push edx
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
cmp eax, ebx
mov eax, dword [esp + 8]
jne 0x1001c079
cmp eax, ebx
je 0x1001c01f
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
lea ecx, [esp + 0x20]
call fcn.100077a0
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.WTSQuerySessionInformation_fail_ErrorCode:_i__SessionID:__i__
push ecx
call fcn.1000d2e0
mov edx, dword [esp + 0x30]
push ebx
push edx
call fcn.10010990
add esp, 0x18
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.10001b80
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
cmp byte [eax], 2
jne 0x1001c080
mov bl, 1
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [esp + 0x10]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x1001c0a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1012b618
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1001c126
lea ecx, [esp + 0x18]
call fcn.100077a0
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [esp + 0x20]
push str.Open_processes:_i_fail_error_code:_d
push eax
call fcn.1000d2e0
mov ecx, dword [esp + 0x28]
push 2
push ecx
call fcn.10010990
add esp, 0x18
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.10001b80
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
lea ecx, [esp + 0x18]
jne 0x1001c169
call fcn.100077a0
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea edx, [esp + 0x20]
push str.Failed_to_terminate_processes:_i_error_code:_d
push edx
call fcn.1000d2e0
mov eax, dword [esp + 0x28]
push 2
push eax
call fcn.10010990
jmp 0x1001c19c
call fcn.100077a0
mov dword [esp + 0x10], 2
push edi
lea ecx, [esp + 0x1c]
push str.Succeed_to_terminate_processes:_i.
push ecx
call fcn.1000d2e0
mov edx, dword [esp + 0x24]
push 0
push edx
call fcn.10010990
push str.Please_dont_use_SGDAgent_through_Remote_Desktop_Please_use_it_on_your_local_machine_
call fcn.10017170
add esp, 0x18
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.10001b80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x1001cad0
Capabilities:
Get logon sessions

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xc]
mov edi, ecx
push eax
lea ecx, [esp + 0xc]
xor esi, esi
push ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x1001cb0d
push 2
push str.LsaEnumerateLogonSessions_error_
call fcn.10010990
add esp, 8
pop edi
xor al, al
pop esi
add esp, 0xc
ret 4
cmp dword [esp + 8], esi
jle 0x1001cb94
push ebx
mov ebx, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea ecx, [eax + esi*8]
push ecx
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
je 0x1001cb47
push 2
push str.LsaGetLogonSessionData_error_
call fcn.10010990
add esp, 8
jmp 0x1001cb8a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x24]
cmp eax, 2
je 0x1001cb5d
cmp eax, 0xa
je 0x1001cb5d
cmp eax, 3
jne 0x1001cb80
mov edx, dword [ecx + 0x28]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov dword [esp + 0x20], edx
call fcn.1001bfd0
cmp al, 1
jne 0x1001cb80
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.1001ca00
mov edx, dword [esp + 0x14]
push edx
call sub.Secur32.dll_LsaFreeReturnBuffer
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x1001cb20
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0xc
ret 4