joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c88
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406430
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cac
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405de5
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe18], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe18
je 0x405cf0
push 1
push 0
push esi
call fcn.00405c10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405deb
cmp eax, edi
jg 0x405deb
mov esi, 0x43f890
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405deb
cmp eax, edi
jg 0x405deb
push esi
push ebp
push str._s_s_r_n
push 0x43f490
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4492b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f6f
push 4
push 0xc0000000
push esi
call fcn.00405c10
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405de5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405dde
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dde
cmp edi, dword [esp + 0x18]
jne 0x405dde
push str._Rename__r_n
push esi
call fcn.00405b7f
test eax, eax
jne 0x405df2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f3b
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f490
push eax
call fcn.00405bcb
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x449330]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aab0
push eax
call fcn.00405b7f
test eax, eax
je 0x405da9
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e19
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e0e
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dab
Function at 0x405e21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e92
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e81
cmp dword [ebp + 0x14], 1
je 0x405e83
cmp dword [ebp + 0x14], 2
je 0x405e83
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40625c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406281
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x406278
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x4062f4
cmp dword [0x440a20], ebx
je 0x4062f4
cmp byte [0x440620], bl
je 0x4062c0
cmp dword [0x40a880], 0xffffffff
jne 0x4062c9
push 4
push 0x40000000
push 0x440620
call fcn.00405c10
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x4062f4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x4062f4
push esi
mov esi, 0x444a40
push 0x40aac8
push esi
call fcn.00405f5e
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f51
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44021c], esi
push edi
jne 0x4064e0
mov ecx, 0x440218
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064bc
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440618
jl 0x4064b7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406515
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440218]
xor eax, esi
inc ecx
dec edx
jne 0x4064f8
pop edi
pop esi
not eax
ret 0xc
Function at 0x100324f
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x1017dc9
call fcn.01001b63
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor edi, edi
push 0x80000002
mov dword [ebx], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, edi
jne 0x10032d9
lea eax, [ebp + 8]
push eax
push dword [ebx]
mov dword [ebp + 8], edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x10032ce
cmp dword [ebp + 8], edi
je 0x10032ce
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0100220e
pop ecx
mov dword [ebx], eax
cmp eax, edi
je 0x10032e9
lea ecx, [ebp + 8]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x1008018
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jg 0x1008052
mov eax, esi
call fcn.010014c4
ret 0xc
push 0xe
pop esi
jmp 0x10032ce
push dword [ebx]
call fcn.0100b675
pop ecx
mov dword [ebx], edi
jmp 0x10032ce
and esi, 0xffff
or esi, 0x80070000
jmp 0x10032df
Function at 0x1003e1b
Capabilities:
Terminate process

Disassembly:
call fcn.01004c52
push 0x58
push 0x1003f38
call fcn.0100658c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x101f0b8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x1007dac
xor esi, esi
inc esi
mov eax, dword [0x101f044]
cmp eax, esi
je 0x1007dca
mov eax, dword [0x101f044]
test eax, eax
jne 0x1003f69
mov dword [0x101f044], esi
push 0x1003f34
push 0x1003f28
call fcn.0100421a
pop ecx
pop ecx
test eax, eax
jne 0x1007ea5
mov eax, dword [0x101f044]
cmp eax, esi
jne 0x1003ecc
push 0x1003f24
push 0x1003ee4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101f044], 2
test ebx, ebx
jne 0x1003f74
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1003f74
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
jmp 0x1003f8f
mov dword [0x101fde4], esi
jmp 0x1003ea8
cmp dword [0x1020118], 0
jne 0x1007dd7
jmp 0x1003f60
mov al, byte [esi]
test al, al
jne 0x1007e0a
jmp 0x1003fc0
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x1003fb6
cmp al, 0x22
je 0x1007e39
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x1007e49
inc esi
jmp 0x1003f8f
test al, al
jne 0x1007dfb
jmp 0x1003f83
test byte [ebp - 0x3c], 1
jne 0x1007e1b
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call fcn.01003fe5
jmp 0x1007e24
cmp eax, esi
jne 0x1007dba
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1003e6f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003e5a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003ea8
push 0x1020118
call fcn.0100b898
pop ecx
test eax, eax
je 0x1003f60
push 0
push 2
push 0
call dword [0x1020118]
jmp 0x1003f60
cmp dword [ebp - 0x1c], 0
je 0x1003f83
jmp 0x1003f98
cmp al, 0x20
ja 0x1003fc0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1003f83
movzx eax, word [ebp - 0x38]
jmp 0x1003fcd
mov dword [0x101fde0], eax
cmp dword [0x101f97c], 0
jne 0x1007e81
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1003fa0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1003fb3
cmp dword [0x101fde4], 0
jne 0x1007e90
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101fde0]
jmp 0x1007eb1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006684
ret
Function at 0x1004076
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push esi
lea ecx, [ebp - 4]
call fcn.010040d9
cmp dword [esi + 0x1c], 0
jne 0x10040cc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10040cc
push dword [0x101f1d4]
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10040cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 4]
cmp eax, 0xb7
je 0x1007193
call fcn.01004c36
xor eax, eax
pop esi
leave
ret
lea ecx, [ebp - 4]
jmp 0x1007193
call fcn.01004c36
xor eax, eax
inc eax
jmp 0x10040c9

Function at 0x10051d6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x10052ea
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x10081ba
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.0100603f
test eax, eax
jl 0x10052e9
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x100527a
push 0x1002884
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.01005351
test eax, eax
jl 0x10052e9
push 0x1005338
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.01005351
test eax, eax
jl 0x10052e9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10081c4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005328
push eax
call edi
push 0x1005314
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x1005300
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x10052f7
cmp dword [esi + 0x34], 0
je 0x10052f7
test eax, eax
je 0x10052f7
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01007f0f
leave
ret
mov eax, 0x8007007f
jmp 0x10052e9
mov eax, 0x8000ffff
jmp 0x10052e9
mov eax, 0x80070485
jmp 0x10052e9
Function at 0x10060d6
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], edi
mov esi, 0x101f0bc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101f008], edi
jne 0x1006e74
push dword [0x101f26c]
xor eax, eax
inc eax
mov dword [ebp - 0xc], eax
mov dword [0x101f008], eax
mov dword [0x101f00c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
call ebx
cmp dword [ebp - 0xc], edi
je 0x10061c2
mov ecx, 0x101f060
call fcn.010061fd
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x100619d
mov eax, dword [0x101f084]
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x1006eab
mov eax, dword [eax + 4]
push edi
push 0x42
push edi
push 2
push 4
push edi
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x100619d
mov eax, dword [0x101f08c]
add eax, 0x98
cmp dword [eax], edi
jne 0x100619d
push eax
push 0x10061e8
push 1
push edi
push 0x10061d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 4], edi
jl 0x1006eb2
push dword [0x101f26c]
mov dword [0x101f00c], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], edi
jne 0x10060ff
jmp 0x100612e
cmp dword [0x101f00c], edi
je 0x1006e9a
push esi
call ebx
push 0xffffffffffffffff
push dword [0x101f26c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10061ca
jmp 0x10061c2
inc dword [0x101f008]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jmp 0x10061ca
xor eax, eax
jmp 0x100615e
dec dword [0x101f008]
jmp 0x10061ad
Function at 0x10091c4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x80c], eax
mov esi, 0x3f2
cmp ebx, edi
je 0x10092b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10092b4
lea eax, [ebp - 0x808]
push eax
push 0x1000a
push edi
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10092b4
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
push dword [ebp - 0x808]
mov dword [ebp - 0x810], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x1009299
cmp esi, edi
jne 0x10092a8
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call fcn.010091c4
mov esi, eax
cmp esi, edi
jne 0x10092a8
jmp 0x100922a
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007f0f
leave
ret 8

Function at 0x10092cc
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, 0x3f2
je 0x1009323
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009323
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10002
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1009323
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x1009e39
Capabilities:
Delete service
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
xor ebx, ebx
push edi
mov esi, ecx
inc ebx
mov dword [ebp - 0x14], 0x1005530
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x1009fdd
push eax
mov ecx, esi
call fcn.01009df0
test eax, eax
je 0x100a00e
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 5
mov edi, 0xffff
mov esi, 0x80070000
mov eax, dword [ebp - 0xc]
dec dword [ebp - 0xc]
test eax, eax
je 0x1009f70
push 0x24
push dword [0x101f1d0]
mov dword [ebp - 0x1c], 0x1005530
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1009f33
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1009f27
xor eax, eax
inc eax
cmp dword [ebp - 0x34], eax
je 0x1009f22
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1009f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x425
je 0x1009f0a
and dword [ebp - 4], 0
dec ecx
je 0x1009f19
test eax, eax
jle 0x1009f06
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1009f5e
cmp dword [ebp - 0x34], 1
jne 0x1009f5e
mov dword [ebp - 8], 1
jmp 0x1009f5a
mov dword [ebp - 8], 1
jmp 0x1009f5e
mov dword [ebp - 8], eax
jmp 0x1009f5a
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009efe
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jle 0x1009f45
and eax, edi
or eax, esi
test eax, eax
jge 0x1009f55
call ebx
test eax, eax
jle 0x1009f51
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1009f5a
mov ebx, 0x80004005
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.010098a1
cmp dword [ebp - 4], 0
jne 0x1009e91
cmp dword [ebp - 8], 0
je 0x100a00e
push 0x10000
push dword [0x101f1d0]
mov dword [ebp - 0x1c], 0x1005530
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1009fac
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jmp 0x1009fd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jle 0x1009fbe
and eax, edi
or eax, esi
test eax, eax
jge 0x1009fce
call ebx
test eax, eax
jle 0x1009fca
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1009fd3
mov ebx, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.010098a1
jmp 0x100a00e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1009ff9
and eax, edi
or eax, esi
test eax, eax
jge 0x100a009
call ebx
test eax, eax
jle 0x100a005
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x100a00e
mov ebx, 0x80004005
lea ecx, [ebp - 0x14]
call fcn.010098a1
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100bb07
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x100bb72
cmp dword [ebp - 4], 2
jbe 0x100bb5e
cmp dword [ebp - 4], 7
jne 0x100bb72
mov ecx, dword [edi]
test cl, 1
jne 0x100bb72
shr ecx, 1
cmp ecx, 2
jb 0x100bb72
cmp esi, ebx
je 0x100bb75
cmp word [esi + ecx*2 - 2], bx
jne 0x100bb72
cmp word [esi + ecx*2 - 4], bx
jmp 0x100bb70
mov ecx, dword [edi]
test cl, 1
jne 0x100bb72
cmp esi, ebx
je 0x100bb75
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x100bb75
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100bc6e
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x1017e30
call fcn.01001b63
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x101fa98]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.0100387e
test eax, eax
jne 0x100bde9
lea eax, [ebp - 0x20]
push eax
push dword [0x101fa9c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.0100bb07
test eax, eax
jne 0x100bde9
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.0100220e
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x100bde9
lea eax, [ebp - 0x20]
push eax
push dword [0x101fa9c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.0100bb07
test eax, eax
jne 0x100bde0
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x100bde0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100220e
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x100bde0
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x100bdd7
cmp dword [ebp + 8], ebx
je 0x100bd9e
push dword [0x101faa0]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100220e
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x100bdd7
push dword [ebp - 0x14]
push esi
push eax
call fcn.0100603f
push dword [0x101faa0]
push edi
jmp 0x100bdcf
add esi, 2
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100220e
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x100bdd7
push dword [ebp - 0x14]
push esi
push eax
call fcn.0100603f
push 0x1002884
push esi
push dword [ebp - 0x18]
call fcn.01005351
push dword [ebp - 0x14]
call fcn.0100b675
pop ecx
push dword [ebp - 0x1c]
call fcn.0100b675
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.010038bb
mov eax, dword [ebp - 0x18]
call fcn.010014c4
ret 4
Function at 0x100c4bc
Capabilities:
Delete registry value

Disassembly:
push 0x2c
mov eax, 0x1018015
call fcn.01001b63
xor ebx, ebx
mov dword [ebp - 0x14], 0x8007000e
cmp dword [ebp + 8], ebx
jne 0x100c4e2
mov dword [ebp - 0x14], 0x80070057
jmp 0x100c6e8
mov eax, 0x1005484
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
push dword [0x101fa50]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push ebx
push 2
mov byte [ebp - 4], 1
call esi
push dword [0x101fa54]
mov dword [ebp - 0x20], eax
push ebx
push 0x100000
call esi
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], ebx
je 0x100c53c
cmp eax, ebx
je 0x100c53c
push dword [ebp - 0x20]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, esi
jne 0x100c6d1
cmp dword [ebp + 0xc], ebx
je 0x100c644
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push ebx
push 0x10002
push dword [0x101f814]
lea ecx, [ebp - 0x38]
push 0x80000002
mov byte [ebp - 4], 2
call fcn.0100387e
test eax, eax
jne 0x100c598
mov edi, dword [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1002910
push edi
call esi
push 0x10028f8
push edi
call esi
push 0x10028dc
push edi
call esi
push 0x10028c8
push edi
call esi
lea ecx, [ebp - 0x38]
call fcn.010038bb
push 1
call fcn.0100bc6e
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x100c63a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov byte [ebp - 4], 3
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [edi + eax + 8]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100220e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100c631
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x100c700
push esi
push edi
call fcn.01005e75
add esp, 0x14
push 1
push edi
call dword [sym.imp.loadperf.dll_LoadPerfCounterTextStringsW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x100c626
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100c626
cmp edi, ebx
je 0x100c631
push edi
call fcn.0100b675
pop ecx
push dword [ebp + 0xc]
call fcn.0100b675
pop ecx
lea ecx, [ebp - 0x38]
call fcn.010038bb
jmp 0x100c6ba
push dword [ebp + 8]
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 4
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100220e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100c6ba
push dword [ebp + 8]
push 0x100c6f4
push esi
push edi
call fcn.01005e75
add esp, 0x10
push 1
push edi
call dword [sym.imp.loadperf.dll_UnloadPerfCounterTextStringsW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x100c6af
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100c6af
cmp edi, ebx
je 0x100c6ba
push edi
call fcn.0100b675
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x100c6d8
push 0xbb8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100c6d8
mov dword [ebp - 0x14], 0x80004005
lea ecx, [ebp - 0x2c]
call fcn.01009851
lea ecx, [ebp - 0x24]
call fcn.01009851
mov eax, dword [ebp - 0x14]
call fcn.010014c4
ret 8