joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407c94
mov dword [ebp - 0x14], eax
cmp dword [0x41f3a8], esi
jne 0x4111a8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x411135
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x411288
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x411288
push 0x41b18c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411288
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41f3a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41f3ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41f3b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f3b8], eax
test eax, eax
je 0x4111a5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f3b4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4111cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4111c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4111e2
push 4
pop eax
jmp 0x41128a
cmp dword [ebp - 0x14], esi
je 0x4111e2
push dword [0x41f3a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4111c7
mov eax, dword [0x41f3b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x411240
cmp dword [0x41f3b8], edi
je 0x411240
push eax
call ebx
push dword [0x41f3b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x411240
test eax, eax
je 0x411240
call ecx
test eax, eax
je 0x411235
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x411235
test byte [ebp - 8], 1
jne 0x411240
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x411270
mov eax, dword [0x41f3ac]
cmp eax, edi
je 0x41126d
push eax
call ebx
test eax, eax
je 0x41126d
call eax
mov esi, eax
test esi, esi
je 0x41126d
mov eax, dword [0x41f3b0]
cmp eax, edi
je 0x41126d
push eax
call ebx
test eax, eax
je 0x41126d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41f3a8]
call ebx
test eax, eax
je 0x411288
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41128a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
Function at 0x10019d3
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x5eb
push dword [ebp + 8]
mov dword [0x100503c], 1
call fcn.01002d12
pop ebp
jmp fcn.01001894

Function at 0x10021b5
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x622
push dword [ebp + 8]
mov dword [0x100503c], 1
call fcn.01002d12
pop ebp
jmp fcn.01002094

Function at 0x1002ac6
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
xor eax, eax
pop esi
mov dword [ecx], eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call edi
cmp eax, 0xea
je 0x1002b12
mov edi, 0x80004005
jmp 0x1002c1b
cmp dword [ebp - 0xc], 1
je 0x1002b27
cmp dword [ebp - 0xc], esi
je 0x1002b27
mov edi, 0x80070057
jmp 0x1002c1b
push ebx
push dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call ebx
mov esi, eax
test esi, esi
jne 0x1002b45
mov edi, 0x8007000e
jmp 0x1002bf1
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
je 0x1002b66
mov edi, 0x80004005
jmp 0x1002bf1
cmp dword [ebp - 0xc], 2
jne 0x1002ba7
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1002b5c
add eax, eax
push eax
push 0x40
call ebx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002b3b
push dword [ebp - 8]
push eax
push esi
call edi
test eax, eax
je 0x1002b5c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
cmp word [esi], 0x40
jne 0x1002be8
push 0x208
push 0x40
mov dword [ebp - 8], 0x104
call ebx
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1002b3b
push 0
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
test eax, eax
jl 0x1002be8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x14], 0
mov esi, edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
xor edi, edi
pop ebx
test esi, esi
je 0x1002bfd
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x1002c0c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0
je 0x1002c1b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
test edi, edi
pop edi
setge al
pop esi
leave
ret 0xc
Function at 0x1002ee6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10012c8
push 0x80000002
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002f4d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10012bc
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002f4d
cmp dword [ebp - 8], 4
jne 0x1002f4d
cmp dword [ebp - 0xc], esi
jne 0x1002f4d
inc ebx
cmp dword [ebp - 4], esi
je 0x1002f5b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1003119
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1005010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], 0x103
cmp esi, ebx
je 0x1003200
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push 0x10012f8
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10031ec
mov eax, dword [ebp - 0x110]
mov byte [ebp + eax - 0x108], bl
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x10012f4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10031ec
cmp dword [ebp - 0x114], 2
lea eax, [ebp - 0x108]
jne 0x10031d0
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x110], eax
jmp 0x10031ec
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10031ec
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01002ff8
cmp dword [ebp - 0x10c], ebx
je 0x1003200
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01003d2d
leave
ret 8
Function at 0x10033c8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x1005010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x207
lea eax, [ebp - 0x61b]
push ebx
push eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x628], ebx
mov byte [ebp - 0x61c], bl
call sub.msvcrt.dll_memset
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov esi, 0x104
test eax, eax
jne 0x10034fa
mov dword [ebp - 0x620], 0x80004005
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x414]
push eax
push 0x61b
push dword [0x10053e8]
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x61c
push dword [0x10053e8]
call edi
push 0x10
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x624], ebx
je 0x10034be
push dword [ebp - 0x624]
call esi
mov eax, dword [0x10053e8]
cmp eax, ebx
je 0x10034d0
push eax
call esi
mov dword [0x10053e8], ebx
cmp dword [ebp - 0x628], ebx
je 0x10034de
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x620], ebx
pop edi
setl al
pop esi
xor ecx, ebp
pop ebx
call fcn.01003d2d
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01004265
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1003461
mov dword [ebp - 0x628], 1
call fcn.01003359
mov dword [0x10053e8], eax
cmp eax, ebx
je 0x1003457
push ebx
push ebx
push 0x1001298
push edi
call fcn.0100326f
push esi
mov dword [0x1005040], eax
lea eax, [ebp - 0x518]
push eax
push 0x10012a8
push edi
call fcn.0100326f
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x10012b0
push edi
call fcn.0100326f
call fcn.01003215
mov dword [ebp - 0x624], eax
cmp eax, ebx
je 0x1003457
push 0x1001334
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10053ec], eax
cmp eax, ebx
je 0x1003457
mov eax, dword [0x1005040]
mov ecx, 0x10019fa
cmp eax, ebx
jne 0x10035b0
mov ecx, 0x10021dc
lea edx, [ebp - 0x61c]
push edx
push ecx
xor ecx, ecx
cmp eax, ebx
setne cl
push ebx
lea ecx, [ecx*4 + 0x44d]
push ecx
push dword [0x10053e8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
jne 0x10035e8
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x1003461
mov dword [ebp - 0x620], ebx
jmp 0x10034a8
Function at 0x1003d1e
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1004450
call fcn.01003f54
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, 0x10053fc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1003ad5
cmp eax, esi
jne 0x1003ac8
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1003ad8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003aaf
xor esi, esi
inc esi
mov eax, dword [0x10053f8]
cmp eax, esi
jne 0x1003aeb
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003b1a
mov eax, dword [0x10053f8]
test eax, eax
jne 0x1003b14
mov dword [0x10053f8], esi
push 0x10011b8
push 0x10011ac
call fcn.01003a14
pop ecx
pop ecx
test eax, eax
je 0x1003b1a
jmp 0x1003c42
mov dword [0x1005098], esi
mov eax, dword [0x10053f8]
cmp eax, esi
jne 0x1003b3e
push 0x10011a8
push 0x10011a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10053f8], 2
test ebx, ebx
jne 0x1003b4a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005400], 0
je 0x1003b6e
push 0x1005400
call fcn.01003ec9
pop ecx
test eax, eax
je 0x1003b6e
push 0
push 2
push 0
call dword [0x1005400]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1003bca
test al, al
je 0x1003b88
cmp dword [ebp - 0x1c], 0
jne 0x1003bca
mov al, byte [esi]
test al, al
je 0x1003b98
cmp al, 0x20
ja 0x1003b98
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1003b88
test byte [ebp - 0x3c], 1
je 0x1003ba4
movzx eax, word [ebp - 0x38]
jmp 0x1003ba7
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1005094], eax
cmp dword [0x1005088], 0
jne 0x1003c1e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1003bd9
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1003bec
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1003b75
cmp dword [0x1005098], 0
jne 0x1003c2d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005094]
jmp 0x1003c4e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01003f99
ret
call fcn.01004077
jmp 0x1003a75
Function at 0x100438d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, 0x8007000e
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x10043fb
push esi
push esi
push edi
push 0x100432a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x10043da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100430b
push edi
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10043fb
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 1
push 0xffffffffffffffff
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1005acc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x101f7d8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x814], edi
mov esi, 0x3f2
je 0x1005bbf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1005bbf
lea eax, [ebp - 0x808]
push eax
push 0x1000a
push ebx
push edi
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1005bbf
xor eax, eax
push ebx
mov word [ebp - 0x804], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x802]
rep stosd dword es:[edi], eax
push ebx
push ebx
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
push dword [ebp - 0x808]
mov dword [ebp - 0x810], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x1005b9f
cmp esi, ebx
jne 0x1005bb3
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call fcn.01005acc
mov esi, eax
cmp esi, ebx
je 0x1005b36
jmp 0x1005bb3
push dword [ebp - 0x814]
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
pop ebx
call fcn.0100abde
leave
ret 8

Function at 0x1005bd5
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 0x1005c2c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1005c2c
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 0x1005c23
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x1006ec1
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push esi
lea ecx, [ebp - 4]
call fcn.01006d85
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x1006f0a
mov eax, dword [esi + 0x2c]
cmp eax, edi
push dword [0x101f054]
push edi
je 0x1006f18
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 0x1c], eax
je 0x1006f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1006f0a
xor edi, edi
inc edi
lea ecx, [ebp - 4]
call fcn.01006da9
mov eax, edi
pop edi
pop esi
leave
ret
push edi
jmp 0x1006eed
Function at 0x1007952
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 ebx, ebx
push ebx
xor esi, esi
push ebx
mov edi, ecx
inc esi
mov dword [ebp - 0x14], 0x1001660
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1007b04
push eax
mov ecx, edi
call fcn.01007909
test eax, eax
je 0x1007b45
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 5
mov ebx, 0x80070000
mov eax, dword [ebp - 0xc]
dec dword [ebp - 0xc]
test eax, eax
je 0x1007a88
push 0x24
push dword [0x101f050]
mov dword [ebp - 0x1c], 0x1001660
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1007a3c
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor eax, eax
inc eax
cmp dword [ebp - 0x34], eax
je 0x1007a37
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1007a2e
call edi
mov ecx, eax
sub ecx, 0x425
je 0x1007a1f
and dword [ebp - 4], 0
dec ecx
je 0x1007a2e
test eax, eax
jle 0x1007a1b
and eax, 0xffff
or eax, ebx
mov esi, eax
jmp 0x1007a76
cmp dword [ebp - 0x34], 1
jne 0x1007a76
mov dword [ebp - 8], 1
jmp 0x1007a72
mov dword [ebp - 8], 1
jmp 0x1007a76
mov dword [ebp - 8], eax
jmp 0x1007a72
call edi
test eax, eax
jg 0x1007a46
call edi
jmp 0x1007a4f
call edi
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1007a6d
call edi
test eax, eax
jg 0x1007a5f
call edi
mov esi, eax
jmp 0x1007a72
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
jmp 0x1007a72
mov esi, 0x80004005
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.010066a2
cmp dword [ebp - 4], 0
jne 0x10079ab
cmp dword [ebp - 8], 0
je 0x1007b45
push 0x10000
push dword [0x101f050]
mov dword [ebp - 0x1c], 0x1001660
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1007ac4
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1007afa
call edi
test eax, eax
jg 0x1007ace
call edi
jmp 0x1007ad7
call edi
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1007af5
call edi
test eax, eax
jg 0x1007ae7
call edi
mov esi, eax
jmp 0x1007afa
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
jmp 0x1007afa
mov esi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.010066a2
jmp 0x1007b45
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
mov ebx, 0x80070000
jg 0x1007b19
call esi
jmp 0x1007b22
call esi
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1007b40
call esi
test eax, eax
jg 0x1007b32
call esi
mov esi, eax
jmp 0x1007b45
call esi
mov esi, eax
and esi, 0xffff
or esi, ebx
jmp 0x1007b45
mov esi, 0x80004005
lea ecx, [ebp - 0x14]
call fcn.010066a2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x100acf6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10019f0
call fcn.0100b054
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100ad33
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100ad33
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100ad4b
cmp eax, 0x20b
je 0x100ad38
mov dword [ebp - 0x1c], ebx
jmp 0x100ad5f
cmp dword [ecx + 0x84], 0xe
jbe 0x100ad33
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100ad59
cmp dword [ecx + 0x74], 0xe
jbe 0x100ad33
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10205d0], 0xffffffff
or dword [0x10205d4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1020524]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1020520]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10205cc], eax
call fcn.0100b04a
cmp dword [0x101f7e0], ebx
jne 0x100adba
push fcn.0100b04a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100b033
push 0x101f044
push 0x101f040
call sub.msvcrt.dll__initterm
mov eax, dword [0x102051c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1020518]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x101f03c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100ae50
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100ae24
cmp al, 0x22
jne 0x100ae16
cmp byte [esi], 0x22
jne 0x100ae2d
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100ae37
cmp al, 0x20
jbe 0x100ae29
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100ae5b
movzx eax, word [ebp - 0x50]
jmp 0x100ae5e
cmp byte [esi], 0x20
jbe 0x100ae2d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100ae50
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100ae7b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100aeb0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100b08f
ret
Function at 0x100b3a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1016e81
call fcn.0100af48
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10], esp
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 0x100b470
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 0x100b465
cmp dword [ebp + 8], edi
je 0x100b465
push dword [ebp + 8]
mov dword [ebp - 4], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebx], eax
je 0x100b43a
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
je 0x100b465
push dword [ebx]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebx], edi
jmp 0x100b465
push 0xe
pop esi
jmp 0x100b465
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x100b47e
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc