joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x55e4d8
Capabilities:
Parse pe header

Disassembly:
ret
jne 0x55e4b3
jmp 0x55e73f
shr eax, 0x10
jmp 0x55e706
xchg dword [esp], esi
lea esi, [esi + 0x3cc]
xchg dword [esp], esi
jmp 0x55e8a3
shl eax, 0x10
jmp 0x55e44c
shl eax, 0x10
jmp 0x55eaae
add eax, dword [eax + 0x3c]
jmp 0x55e9aa
add eax, 0x10000
jmp 0x55e4b3
jne 0x55e4b3
jmp 0x55e819
shr eax, 0x10
jmp 0x55e514
pop eax
jmp 0x55e777
cmp dword [eax], 0x4550
jmp 0x55e7e8
sub eax, 0x10000
jmp 0x55ec30
cmp word [eax], 0x5a4d
jmp 0x55e46f
Function at 0x429eea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x429ef9
pop dword [ebp - 0x28]
mov eax, 0x9148d3ca
add eax, 0x6ef9cb2f
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x505a7
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x1886075c
add ecx, 0xe77a41ae
mov edi, eax
mov ebx, 0x59cdee25
add ebx, 0xa67a9fdb
add ebx, dword [ebp - 0x28]
mov edx, 0xcc4771bb
xor dword [ebp - 0x10], edi
mov esi, dword [ebx]
add dword [ebp - 0x24], 0xbcafb61b
xor esi, edx
xor dword [ebp - 0x14], edi
mov dword [edi], esi
sub dword [ebp - 0x24], ecx
add edi, 0x5139ba10
add edi, 0xaec645f4
add ebx, 0x65416caa
sub ebx, 0x65416ca6
loop 0x429f4d
add eax, 0x92f4ceae
add eax, 0x6d0c484d
mov ebx, eax
add eax, 0xb9bf91e1
sub eax, 0xb9bf91dc
mov ecx, 0x48259ed1
add ecx, 0xb81a612f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10005cf0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb0c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.10003890
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.10003890
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.10003890
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.10003890
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.10003890
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.10003890
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.10003890
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10003890
mov eax, dword [ebp - 0x10]
mov word [eax], 0
mov ecx, dword [ebp - 0x10]
mov word [ecx + 2], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10010b9e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 4
push 0x100d88fc
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
je 0x10010bf3
push 4
push 0x100d8908
mov edx, dword [ebp + 8]
push edx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
je 0x10010bf3
push 4
push 0x100d8914
mov eax, dword [ebp + 8]
push eax
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x10010bfc
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
push edx
call fcn.1004e37e
add esp, 4
cmp eax, 4
jb 0x10010cf4
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x3a
jne 0x10010cf4
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 4]
cmp eax, 0x5c
jne 0x10010cf4
mov ecx, dword [0x100d8920]
mov dword [ebp - 0x14], ecx
mov dx, word [0x100d8924]
mov word [ebp - 0x10], dx
xor eax, eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
push edx
call fcn.1004f50d
add esp, 4
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x10010cf4
mov word [ebp - 0x424], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x42c], 0x208
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x14]
push eax
call sub.MPR.dll_WNetGetConnectionW
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x10010cf4
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
lea edx, [ebp - 0x424]
push edx
push 0x100d8928
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004f495
add esp, 0x14
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x10010d3d
mov edx, dword [ebp - 4]
push edx
call fcn.1004e37e
add esp, 4
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x430], eax
jbe 0x10010d26
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004e301
add esp, 0xc
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10016880
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
push edi
xor eax, eax
mov al, byte [0x100f2308]
and eax, 1
test eax, eax
jne 0x100168be
mov cl, byte [0x100f2308]
or cl, 1
mov byte [0x100f2308], cl
mov ecx, 0x100f2304
call fcn.10003890
push 0x10016a8a
call fcn.1004e93c
add esp, 4
xor edx, edx
mov dl, byte [0x100f2308]
and edx, 2
test edx, edx
jne 0x100168f0
mov al, byte [0x100f2308]
or al, 2
mov byte [0x100f2308], al
mov ecx, 0x100f2300
call fcn.10003890
push 0x10016a7b
call fcn.1004e93c
add esp, 4
mov ecx, 0x100f2304
call fcn.10003710
test eax, eax
je 0x10016a37
mov word [ebp - 0x410], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x10016a37
push str.System32
lea edx, [ebp - 0x410]
push edx
call fcn.1004e9af
add esp, 8
mov word [ebp - 0xc44], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0xc42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.10011378
add esp, 0xc
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x1001699f
lea edx, [ebp - 0xc44]
push edx
mov ecx, 0x100f2304
call fcn.1003dc20
mov eax, dword [0x100d9d0c]
mov dword [ebp - 0x830], eax
mov cx, word [0x100d9d10]
mov word [ebp - 0x82c], cx
xor edx, edx
mov dword [ebp - 0x82a], edx
mov word [ebp - 0x826], dx
mov ax, word [ebp - 0x410]
mov word [ebp - 0x830], ax
mov word [ebp - 0x820], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x81e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
jbe 0x10016a37
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x820]
push ecx
push 0x100d9d14
push 0x100f2300
call fcn.10040920
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x10016a6c
cmp dword [ebp + 0xc], 0
jle 0x10016a6c
mov edx, dword [ebp + 0xc]
push edx
push 0
mov ecx, 0x100f2300
call fcn.1003e670
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.1004e301
add esp, 0xc
push 0xffffffffffffffff
mov ecx, 0x100f2300
call fcn.1003e740
mov ecx, 0x100f2304
call fcn.10003750
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001760e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x10017626
jmp 0x100176aa
mov eax, dword [ebp + 8]
push eax
call fcn.1004e37e
add esp, 4
cmp eax, 2
jae 0x10017639
jmp 0x100176aa
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5c
jne 0x1001765d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x5c
jne 0x1001765d
mov dword [ebp - 4], 1
jmp 0x100176aa
mov edx, dword [ebp + 8]
mov ax, word [edx]
mov word [ebp - 0x10], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 2]
mov word [ebp - 0xe], dx
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
je 0x10017697
cmp dword [ebp - 8], 1
jne 0x100176a0
mov dword [ebp - 4], 1
jmp 0x100176aa
xor ecx, ecx
test ecx, ecx
jne 0x1001761b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100176b1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x100176c3
cmp dword [ebp + 0xc], 0x40
jae 0x100176c7
xor eax, eax
jmp 0x1001772a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
jne 0x10017728
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
add ecx, 4
cmp dword [ebp + 0xc], ecx
jbe 0x10017728
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x10017721
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x454e
je 0x10017721
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x454c
jne 0x10017728
mov eax, 1
jmp 0x1001772a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10018df6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10018e28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 4]
ja 0x10018e2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 8]
jb 0x10018e2c
xor eax, eax
jmp 0x10018e31
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1001b14d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbb9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push edi
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0xffffffff
je 0x1001b188
mov eax, 1
jmp 0x1001b274
mov word [ebp - 0x8c], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x1001b1cd
push 0x100dcb70
push 0x100dcb94
lea ecx, [ebp - 0x8c]
push ecx
call fcn.1004f648
add esp, 0xc
jmp 0x1001b1e6
push str.TSandboxDrvCDOSL
push 0x100dcbd4
lea edx, [ebp - 0x8c]
push edx
call fcn.1004f648
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
call fcn.1001a9ca
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 4], 0xffffffff
jne 0x1001b252
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa00
mov eax, dword [ebp - 0x98]
jmp 0x1001b274
mov dword [ebp - 0x9c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa00
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10021606
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10021644
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10021690
cmp dword [ebp + 0x10], 0
je 0x1002165f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1004e37e
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0x10], edx
jmp 0x10021666
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10021696
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x100216d4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100216f6
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100216fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10021745
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100217c7
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 2
jb 0x100217bd
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
call fcn.1004e2e8
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100217bd
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x100217d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10021815
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10021893
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], 1
jb 0x10021889
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1004e2e8
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x10021889
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x1002189c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x100218e1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10021915
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x100229ff
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
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 0x10022a33
xor eax, eax
jmp 0x10022a82
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10022a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x10022a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x10022a68
mov dword [ebp - 0xc], 0
jmp 0x10022a6f
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 0x10022a86
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
mov word [ebp - 0x84], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x82]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x10022adc
mov eax, dword [ebp + 8]
push eax
push str..Global_s
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x10022af5
mov edx, dword [ebp + 8]
push edx
push str.._s
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10022b21
xor eax, eax
jmp 0x10022b40
cmp dword [ebp + 0xc], 0
je 0x10022b31
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
jmp 0x10022b3b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10022b45
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
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
je 0x10022b92
lea edx, [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
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 0x10022b99
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
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
je 0x10022be0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret