joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.10019150
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.10019150
add esp, 0xc
mov dword [ebp - 0x214], 0
push 0x208
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1000159b
jmp 0x10001622
lea eax, [ebp - 0x420]
push eax
push 0x100344f0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.10018bc4
add esp, 0x10
call fcn.10010fe0
test eax, eax
je 0x10001618
call fcn.10010f20
test eax, eax
je 0x100015e8
push 0x100344f8
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.1001905b
add esp, 0xc
jmp 0x10001601
push 0x10034518
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.1001905b
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call fcn.100014b0
add esp, 4
test eax, eax
jne 0x10001618
jmp 0x10001622
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret

Function at 0x10001c40
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10001c66
xor eax, eax
jmp 0x10001d32
mov word [ebp - 0x238], 0
push 0x208
push 0
lea ecx, [ebp - 0x236]
push ecx
call fcn.10019150
add esp, 0xc
mov word [ebp - 0x1c], 0x5c
mov word [ebp - 0x1a], 0x70
mov word [ebp - 0x18], 0x73
mov word [ebp - 0x16], 0x61
mov word [ebp - 0x14], 0x70
mov word [ebp - 0x12], 0x69
mov word [ebp - 0x10], 0x2e
mov word [ebp - 0xe], 0x64
mov word [ebp - 0xc], 0x6c
mov word [ebp - 0xa], 0x6c
mov word [ebp - 8], 0
push 0x104
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.10003720
add esp, 0xc
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10001d0b
xor eax, eax
jmp 0x10001d32
push str.EnumProcesses
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x1c], 0
jne 0x10001d2d
xor eax, eax
jmp 0x10001d32
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1000207d
xor eax, eax
jmp 0x100020cb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x1000208d
mov eax, 1
jmp 0x100020cb
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0x100020d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x28], 0
jne 0x100020bc
xor eax, eax
jmp 0x100020cb
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 1
mov eax, 1
pop ebp
ret

Function at 0x10002680
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
jne 0x100026d3
jmp 0x1000275e
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x10002340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x100026ff
jmp 0x1000275e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x28], 0
jmp 0x1000271b
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
shl eax, 1
cmp dword [ebp - 0x28], eax
jae 0x10002757
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0x10002480
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1000274b
jmp 0x1000275e
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002712
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0
jne 0x10002770
mov ecx, dword [ebp + 8]
push ecx
call fcn.10002780
add esp, 4
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret

Function at 0x10002780
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x100027d2
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 1
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
je 0x100027c3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
ret
Function at 0x100029a0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x100029ce
cmp dword [ebp + 0x10], 0
jne 0x100029d8
jmp 0x10002ad1
push 0x100345d4
lea eax, [ebp - 8]
push eax
call fcn.100027e0
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
push 0xff
push 6
push 0x40000001
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10002a1c
jmp 0x10002ad1
push 0x101c
call fcn.10019329
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002a3c
jmp 0x10002ad1
push 0x101c
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.10019150
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x10002a81
jmp 0x10002ad1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10002ab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10002ab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x218
je 0x10002ab1
jmp 0x10002ad1
push 0
push 0
push 4
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call fcn.10003e30
add esp, 0x14
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.10002960
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x10002b0f
cmp dword [ebp - 4], 0xffffffff
je 0x10002af6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x10002b0f
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100193ec
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10002c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x10002c6d
cmp dword [ebp + 0xc], 0
je 0x10002c6d
cmp dword [ebp + 0x10], 0
jne 0x10002c77
jmp 0x10002d0e
call fcn.100110f0
test eax, eax
je 0x10002cd4
push str.NtCreateThreadEx
push 0x10034608
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002ca4
jmp 0x10002d0e
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0x1fffff
lea eax, [ebp - 8]
push eax
call dword [ebp - 0xc]
cmp dword [ebp - 8], 0
jne 0x10002cd2
jmp 0x10002d0e
jmp 0x10002cfb
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002cfb
jmp 0x10002d0e
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x10002d1e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10002e70
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x448], 0x428
push 0x424
push 0
lea eax, [ebp - 0x444]
push eax
call fcn.10019150
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002ef2
jmp 0x10002fba
lea edx, [ebp - 0x448]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_Module32FirstW
mov dword [ebp - 0x18], eax
jmp 0x10002f1a
lea ecx, [ebp - 0x448]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_Module32NextW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10002f42
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.100199cf
add esp, 8
test eax, eax
jne 0x10002f40
mov dword [ebp - 0x1c], 1
jmp 0x10002f42
jmp 0x10002f07
cmp dword [ebp - 0x1c], 0
jne 0x10002f4c
jmp 0x10002fba
mov edx, dword [ebp + 8]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002f6a
jmp 0x10002fba
push 0x10034648
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10002f82
jmp 0x10002fba
push 0x10034664
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x434]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10002c40
add esp, 0xc
test eax, eax
jne 0x10002fb3
jmp 0x10002fba
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
je 0x10002fca
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x10002fda
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret
Function at 0x10002ff0
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
mov word [ebp - 0x88], 0
push 0x62
push 0
lea eax, [ebp - 0x86]
push eax
call fcn.10019150
add esp, 0xc
mov word [ebp - 0x94], 0
xor ecx, ecx
mov dword [ebp - 0x92], ecx
mov dword [ebp - 0x8e], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 2
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x18], 0
push 0xa
push 5
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10019b4f
add esp, 0x10
lea ecx, [ebp - 0x94]
push ecx
push 0x10034670
push 0x1003469c
push 0x32
lea edx, [ebp - 0x88]
push edx
call fcn.10018bc4
add esp, 0x14
push str.S:_ML__NW___LW_
lea eax, [ebp - 0x14]
push eax
call fcn.100027e0
add esp, 8
mov ecx, 1
test ecx, ecx
je 0x10003108
push 0
push 0
push 3
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0xc0000000
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x100030d8
jmp 0x10003108
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10003106
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp ecx, 0xa
jbe 0x100030fe
jmp 0x10003196
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100030a6
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x1000312d
jmp 0x10003196
push 0
lea edx, [ebp - 0xc]
push edx
push 0x1000
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x10003159
jmp 0x10003196
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x10003188
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
je 0x1000318c
jmp 0x10003196
mov dword [ebp - 0x98], 1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10002960
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x100031b8
cmp dword [ebp - 0x10], 0xffffffff
je 0x100031b8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret
Function at 0x10003270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100032ae
jmp 0x100032d9
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100032d2
jmp 0x100032d9
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x100032e9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x100032f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x418], 0
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.10019150
add esp, 0xc
mov word [ebp - 0x628], 0
push 0x206
push 0
lea ecx, [ebp - 0x626]
push ecx
call fcn.10019150
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.10019150
add esp, 0xc
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_sDirectoryInfo
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.10018bc4
add esp, 0x10
push 0x104
lea edx, [ebp - 0x628]
push edx
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100033ac
jmp 0x10003443
push 0x104
lea eax, [ebp - 0x210]
push eax
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100033cb
jmp 0x10003443
lea ecx, [ebp - 0x628]
push ecx
call fcn.100197e5
add esp, 4
shl eax, 1
push eax
lea edx, [ebp - 0x628]
push edx
push 1
push str.SystemRoot
lea eax, [ebp - 0x418]
push eax
call fcn.10003270
add esp, 0x14
test eax, eax
jne 0x10003402
jmp 0x10003443
lea ecx, [ebp - 0x210]
push ecx
call fcn.100197e5
add esp, 4
shl eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
push 1
push str.ProgramFiles
lea eax, [ebp - 0x418]
push eax
call fcn.10003270
add esp, 0x14
test eax, eax
jne 0x10003439
jmp 0x10003443
mov dword [ebp - 0x41c], 1
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret
Function at 0x10003500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.10019150
add esp, 0xc
mov cx, word [0x10034804]
mov word [ebp - 0x33c], cx
mov byte [ebp - 0x338], 0
push 0x103
push 0
lea edx, [ebp - 0x337]
push edx
call fcn.10019150
add esp, 0xc
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x214]
push eax
push 0x10034808
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x100035dd
jmp 0x100036f6
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x22c]
push eax
push 0
push str.BuildLabEx
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x1000361f
jmp 0x100036f6
cmp dword [ebp - 0x22c], 1
je 0x10003632
jmp 0x100036f6
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x338]
push ecx
call fcn.10019d5a
add esp, 0xc
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x10003668
jmp 0x100036f6
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x33c]
push eax
push 0
call fcn.10019d5a
add esp, 0xc
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x10003693
jmp 0x100036f6
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.10019d2a
add esp, 4
mov dword [ebp - 0x218], eax
mov edx, dword [ebp + 8]
push edx
push str.SYSTEMCurrentControlSetServices_sBuildLabEx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.10018bc4
add esp, 0x10
push 4
lea ecx, [ebp - 0x218]
push ecx
push 4
push str.Revision
lea edx, [ebp - 0x210]
push edx
call fcn.10003270
add esp, 0x14
test eax, eax
jne 0x100036ec
jmp 0x100036f6
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x214], 0
je 0x1000370c
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret

Function at 0x100037b0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100037d6
xor eax, eax
jmp 0x10003818
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100037fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x100037fe
mov dword [ebp - 0xc], 0
jmp 0x10003805
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10003820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1003a058]
xor eax, ebp
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x1000385f
mov eax, dword [ebp + 8]
push eax
push str..Global_s
push 0x40
lea ecx, [ebp - 0x88]
push ecx
call fcn.10018bc4
add esp, 0x10
jmp 0x10003879
mov edx, dword [ebp + 8]
push edx
push str.._s
push 0x40
lea eax, [ebp - 0x88]
push eax
call fcn.10018bc4
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100038a5
xor eax, eax
jmp 0x100038c4
cmp dword [ebp + 0xc], 0
je 0x100038b5
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
jmp 0x100038bf
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001901e
mov esp, ebp
pop ebp
ret

Function at 0x10003930
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 1
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000395d
xor eax, eax
jmp 0x100039a8
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x1000399b
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
push 0x2710
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call fcn.10003af0
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x10003af0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, 1
test eax, eax
je 0x10003bd8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003b39
jmp 0x10003bd8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x10003b49
jmp 0x10003bd8
cmp dword [ebp + 0x14], 0xffffffff
je 0x10003b67
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x14], eax
jbe 0x10003b67
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003bd8
cmp dword [ebp - 0xc], 0
je 0x10003b88
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x10003bc6
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
je 0x10003ba7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 8], edx
jmp 0x10003bc6
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp - 8]
jbe 0x10003bbd
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
mov dword [ebp - 8], eax
jmp 0x10003bc6
mov dword [ebp - 4], 0
jmp 0x10003bd8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10003b10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret