joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003b40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x100533e8]
push ebx
push esi
push edi
xor edx, edx
mov dword [esp + 0x454], eax
mov word [esp + 0x18], dx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
push edx
push 2
mov dword [esp + 0x18], edx
stosw word es:[edi], ax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x10003b9d
xor eax, eax
mov ecx, dword [esp + 0x454]
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x220]
push eax
push edi
mov dword [esp + 0x228], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10003c4b
mov edi, edi
lea ecx, [esp + 0x244]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov eax, dword [str.cebprkc]
test eax, eax
mov esi, 0x10053150
je 0x10003c2b
mov edi, edi
mov edx, dword [esi]
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.100370bd
push ebx
call fcn.1000e370
lea ecx, [esp + 0x24]
push ecx
call fcn.10036536
push eax
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.10036476
add esp, 0x1c
test eax, eax
je 0x10003c3f
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x10003be0
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x220]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10003bc0
jmp 0x10003c4b
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x454]
mov eax, dword [esp + 0x10]
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004440
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100533e8]
mov edx, dword [esp + 0x220]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x22c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x100044aa
test ecx, ecx
je 0x1000449c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x100044b8
test ecx, ecx
je 0x1000455b
push ecx
jmp 0x10004555
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x10004522
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.10004440
mov edi, eax
test edi, edi
jne 0x10004574
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x100044e4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x10004539
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x1000455b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x218]
call fcn.10036133
add esp, 0x21c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x10004583
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
call fcn.10036133
add esp, 0x21c
ret 4
Function at 0x100045a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x100533e8]
push ebx
push esi
push edi
mov dword [esp + 0x2b4], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100046d2
mov esi, dword [esp + 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x14], eax
jbe 0x100046c7
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
push esi
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100046b2
mov word [esp + 0xa8], bx
mov ecx, 0x81
lea edi, [esp + 0xaa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x34]
push ecx
push esi
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100046b2
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xac]
push eax
push str.NameServer
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
call fcn.100018e0
test eax, eax
jne 0x100046a7
cmp dword [esp + 0x18], 1
ja 0x100046e7
cmp edi, ebx
je 0x100046b2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x10004614
cmp esi, ebx
je 0x100046d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x2b4]
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ebx
je 0x100046f2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x100046fd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2b4]
mov eax, 1
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100086d0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x100449c8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x220]
xor eax, eax
push 0x208
mov ecx, 0x104
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x218]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10008773
test ebx, ebx
lea edi, [esi + 0x6ac]
jne 0x10008724
xor eax, eax
jmp 0x1000872d
push ebx
call fcn.10036536
add esp, 4
push eax
push ebx
mov ecx, edi
call fcn.10005c00
push 0x5c
push ebx
call fcn.1003654c
add esp, 8
test eax, eax
je 0x10008773
lea edi, [eax + 2]
push 0x2e
push edi
mov word [eax], 0
call fcn.1003654c
add esp, 8
test eax, eax
je 0x1000876d
push edi
lea ecx, [esi + 0x6b0]
mov word [eax], 0
call fcn.10008600
test edi, edi
mov eax, edi
jne 0x10008778
mov eax, str.config
push eax
push ebx
lea edi, [esi + 0x6a8]
push str._s_s.ini
push edi
call fcn.10006640
mov eax, dword [edi]
mov ecx, dword [esi + 0x6b0]
add esp, 0x10
push eax
push 0x104
lea ebx, [esi + 0xc]
push ebx
push ecx
push str.SName
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebp, ebp
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 0x20019
push eax
push str.CLSIDF9E2CFAA_66E4_458e_8C7F_A87AC7B7F3EE
push SysReAllocString
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000880b
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0x6b4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 1
push 0x10047ed0
push str.Option
call ebx
mov edi, dword [edi]
push edi
push 0
push str.time
push str.Option
mov dword [esi + 0x660], eax
call ebx
mov dword [esi + 0x664], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x80000400
lea edx, [esi + 0x688]
push edx
mov dword [esi + 0x668], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x10008867
mov dword [esi + 0x6a0], eax
call fcn.1000ece0
test ebp, ebp
mov dword [esi + 0x6a4], eax
je 0x1000887d
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100088a0
Capabilities:
Enumerate internet cache

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea ecx, [esp + 4]
push ecx
push 0
push str.visited:
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100088e1
xor eax, eax
pop edi
add esp, 0x10
ret
push ebx
push ebp
push esi
push 0x10000000
push 0x100
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, dword [esp + 0x10]
push edx
push 0x40
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [esp + 0x10]
mov ebp, eax
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
push esi
push str.visited:
call edi
mov ebx, eax
test ebx, ebx
je 0x10008a2b
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10008950
mov ecx, dword [esi + 4]
push 0x40
push ecx
call fcn.1003657c
sub eax, dword [esi + 4]
add esp, 8
sar eax, 1
mov dword [esp + 0x14], eax
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
push 4
lea ecx, [edx + eax*2 + 2]
push ecx
push str.http
call fcn.100377c0
add esp, 0xc
test eax, eax
jne 0x100089b3
mov edx, dword [esi + 4]
push 0x2e
push edx
call fcn.1003654c
mov edi, eax
add esp, 8
test edi, edi
je 0x100089b3
push 4
push str..exe
push edi
call fcn.10036476
add esp, 0xc
test eax, eax
jne 0x100089b3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [eax + eax]
push ecx
sub edi, edx
push edi
call fcn.10036476
add esp, 0xc
test eax, eax
je 0x10008a05
mov edi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea eax, [esp + 0x10]
push eax
push esi
push ebx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x100089fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008a24
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push esi
push 0x40
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push ebx
call edi
test eax, eax
je 0x10008a24
test esi, esi
jne 0x10008931
jmp 0x10008a24
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
lea eax, [ecx + edx*2 + 2]
push eax
mov ecx, esi
call fcn.10008600
push eax
mov ecx, esi
call fcn.10007c70
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov eax, dword [esp + 0x18]
test eax, eax
pop esi
pop ebp
pop ebx
je 0x10008a3d
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x10008a50
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x100449e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.100086d0
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
push 4
push 0
push 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10008ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x10]
mov ebp, eax
jmp 0x10008b33
mov eax, dword [esi + 0x6b4]
test eax, eax
jbe 0x10008ada
push eax
push 0x10047eac
add esi, 0xc
push esi
lea ecx, [esp + 0x1c]
push str._s_s_X
push ecx
call fcn.10006640
add esp, 0x14
jmp 0x10008af7
add esi, 0xc
jne 0x10008ae3
xor eax, eax
jmp 0x10008aec
push esi
call fcn.10036536
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.10005c00
mov ebx, dword [esp + 0x10]
push 4
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10008b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x10008b3e
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10008b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x10008b33
mov ebp, dword [esp + 0x18]
test esi, esi
je 0x10008b3e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10008b49
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008b6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x1000d840
Capabilities:
Accept command line arguments
Access peb ldr_data
Create http request
Delete registry value
Delete service
Persist via run registry key
Read .ini file
Resolve function by parsing pe exports
Stop service

Disassembly:
call fcn.10008640
mov ecx, eax
jmp fcn.1000b770
Function at 0x1000e400
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x100533e8]
push ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x1000e476
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1000e467
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
call fcn.10036133
add esp, 0x14
ret

Function at 0x1000e490
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100533e8]
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0xb], ax
mov byte [ebp - 0xc], 0
mov byte [ebp - 9], al
str word [ebp - 0xc]
mov al, byte [ebp - 0xc]
test al, al
jne 0x1000e4bc
cmp byte [ebp - 0xb], 0x40
je 0x1000e4dc
sldt word [ebp - 8]
cmp word [ebp - 8], 0
jne 0x1000e4dc
sgdt [ebp - 0xc]
mov ecx, dword [ebp - 0xa]
and ecx, 0xff000000
cmp ecx, 0xff000000
jne 0x1000e4ed
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.10036133
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0
rdtsc
xchg ecx, eax
rdtsc
sub eax, ecx
cmp eax, 0xff
jae 0x1000e50b
mov dword [ebp - 0xc], 0
jmp 0x1000e512
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0xc]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
setg al
call fcn.10036133
mov esp, ebp
pop ebp
ret
Function at 0x1000e7c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x100533e8]
push edi
push 0
push 0x80
push 3
push 0
push 1
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000e8bd
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x1000e814
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
lea ecx, [esp + 0x24]
push ecx
call fcn.10003050
push 0x100000
mov dword [esp + 0x18], 0
call fcn.100377f5
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
push 0
lea edx, [esp + 0x14]
push edx
push 0x100000
mov esi, eax
push esi
push edi
mov ebp, 1
call ebx
test eax, eax
je 0x1000e883
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000e881
push eax
lea eax, [esp + 0x28]
push esi
push eax
call fcn.10003080
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x100000
push esi
push edi
call ebx
test eax, eax
jne 0x1000e854
jmp 0x1000e883
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.10003150
push esi
call fcn.100363ae
add esp, 0xc
pop esi
test ebp, ebp
pop ebp
pop ebx
jne 0x1000e8bd
mov ecx, dword [esp + 0x7c]
push ecx
lea edx, [esp + 0xc]
push 0x10
push edx
call fcn.1000e0c0
add esp, 0xc
mov ecx, dword [esp + 0x70]
pop edi
call fcn.10036133
add esp, 0x70
ret
Function at 0x1000ec70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.CLSIDF9E2CFAA_66E4_458e_8C7F_A87AC7B7F3EE
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ecd8
mov ecx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push eax
push edi
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test edi, edi
je 0x1000ecd0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x1000ece0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push str.CLSIDF9E2CFAA_66E4_458e_8C7F_A87AC7B7F3EE
push SysReAllocString
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ed3b
mov edi, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.debug
push edi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
xor ecx, ecx
cmp ecx, edx
sbb esi, esi
neg esi
test edi, edi
je 0x1000ed52
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x1000eea0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x100533e8]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
xor ebx, ebx
mov word [esp + 0x18], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
push 0x100487fc
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x1000ef58
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x1000ef58
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x1000ef58
push edi
call fcn.100377f5
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x24]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1000ef4f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x100487f8
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1000ef6d
push esi
call fcn.100363ae
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [ebp + 8]
push edx
push eax
push str._d._d
push ecx
call fcn.10006640
push esi
call fcn.100363ae
mov ecx, dword [esp + 0x238]
add esp, 0x14
mov eax, 1
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000efb0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10044ff0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
je 0x1000f0a0
push esi
push edi
lea ecx, [ecx]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
mov dword [esp + 0x24], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp]
push ecx
lea edx, [esp + 0x30]
push str.Applications_s
push edx
mov byte [esp + 0x30], 1
call fcn.10006640
mov edi, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1000f061
mov esi, dword [esp + 0x10]
push ebx
push 0x10047eac
push 1
push ebx
push str.NoStartPage
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [edi - 0x10]
add ebp, 4
mov byte [esp + 0x24], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000f082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
mov dword [esp + 0x24], 0xffffffff
je 0x1000f095
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp], ebx
jne 0x1000efe0
pop edi
pop esi
mov ecx, dword [esp + 0x14]
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x1000f1b0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x100533e8]
push ebx
push esi
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x10]
xor esi, esi
push eax
push esi
mov dword [esp + 0x18], esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1000f285
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100377f5
add esp, 4
lea edx, [esp + 0x10]
mov edi, eax
push edx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x16], ecx
mov word [esp + 0x14], si
mov word [esp + 0x1a], cx
jne 0x1000f27c
cmp dword [edi + 0x190], esi
jbe 0x1000f25e
mov ebx, dword [ebp + 8]
jmp 0x1000f220
movzx edx, byte [edi + esi + 0x194]
push edx
lea eax, [esp + 0x18]
push str._02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x20]
push ecx
call fcn.10036536
add esp, 0x10
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.1000ed60
mov eax, dword [edi + 0x190]
inc esi
cmp esi, eax
jb 0x1000f220
push edi
call fcn.100363b3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1c]
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.100363b3
add esp, 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret