joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1027232
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push dword [ebp + 8]
call dword [0x100166c]
test eax, eax
jge 0x1027257
xor eax, eax
jmp 0x10272ba
cmp dword [ebp - 0xc], 1
jne 0x102729d
lea eax, [ebp - 8]
push eax
push 2
push 2
push 0
push 0x2000c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10272b3
lea eax, [ebp - 4]
push eax
push dword [0x1076c98]
push dword [ebp - 8]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1027292
and dword [ebp - 4], eax
push dword [ebp - 8]
call dword [fcn.01001454]
jmp 0x10272b7
lea eax, [ebp - 4]
push eax
push dword [0x1076c98]
push dword [ebp + 8]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x10272b7
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x1027812
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x107342c]
push ebx
xor ebx, ebx
cmp byte [0x10749e4], bl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1027a48
cmp dword [0x1074a1c], ebx
je 0x1027a48
push ebx
push 4
lea eax, [ebp - 0xa4]
push eax
push 0x46
call dword [0x10016e0]
test eax, eax
jl 0x1027a48
cmp dword [ebp - 0xa4], ebx
je 0x1027a48
cmp esi, ebx
je 0x1027888
lea eax, [ebp - 0x140]
push eax
push 0x4c
lea eax, [ebp - 0x50]
push eax
push 1
push esi
call dword [0x100166c]
test eax, eax
jge 0x102788f
xor eax, eax
jmp 0x1027a4b
push edi
push dword [0x1074a1c]
lea eax, [ebp - 0x9c]
push 0x10128f4
push 0x26
push eax
call dword [0x1001548]
add esp, 0x10
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [fcn.0100168c]
lea eax, [ebp - 0x13c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xbc]
push eax
push 0x60000
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xbc], 0x18
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
call dword [0x1001758]
mov edi, eax
cmp edi, ebx
jl 0x1027a3e
mov eax, dword [0x1076c94]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], eax
mov eax, dword [0x1076c90]
mov dword [ebp - 0x128], eax
mov eax, dword [0x1076c98]
mov dword [ebp - 0x11c], eax
mov eax, 0x2000f
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xf8], eax
mov eax, dword [0x1076c88]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe0], eax
mov eax, dword [0x1076c8c]
mov edx, 0x10000000
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x110], ecx
mov ecx, 0xf000f
push 0xa
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x130], 2
mov byte [ebp - 0x12c], bl
mov dword [ebp - 0x124], 3
mov byte [ebp - 0x120], 2
mov byte [ebp - 0x114], bl
mov byte [ebp - 0x108], bl
mov dword [ebp - 0x100], edx
mov byte [ebp - 0xfc], 0xb
mov dword [ebp - 0xf4], ecx
mov byte [ebp - 0xf0], bl
mov dword [ebp - 0xe8], edx
mov byte [ebp - 0xe4], 0xb
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 0xd8], bl
mov dword [ebp - 0xd0], edx
mov byte [ebp - 0xcc], 0xb
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 0xc0], bl
call fcn.01027421
mov esi, eax
cmp esi, ebx
je 0x1027a2d
push esi
push 4
push dword [ebp - 0xa0]
call dword [0x1001650]
push esi
mov edi, eax
call fcn.01027004
jmp 0x1027a32
mov edi, 0xc0000017
push dword [ebp - 0xa0]
call dword [fcn.010016c8]
xor eax, eax
cmp edi, ebx
setge al
pop edi
jmp 0x1027a4b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 8
Function at 0x102854a
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x1011308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10285b1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, 0x1012aec
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10285a8
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x10285e1
push 0x1012ad0
call dword [fcn.01001238]
mov esi, eax
test esi, esi
je 0x10285e1
push 0x1012ab8
push esi
call dword [fcn.01001234]
test eax, eax
je 0x10285da
call eax
push esi
call dword [fcn.01001268]
pop esi
leave
ret

Function at 0x102870b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x107342c]
push edi
push 0x47
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [fcn.0100133c]
test eax, eax
je 0x10287c0
cmp byte [ebp - 6], 1
jne 0x10287c0
lea eax, [ebp - 0x124]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x1011308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10287c0
push esi
push edi
push edi
push edi
push edi
mov esi, 0x1012afc
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10287b3
push 4
lea eax, [ebp - 0x128]
push eax
push 4
push edi
push esi
push dword [ebp - 0x124]
mov dword [ebp - 0x128], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.01028686
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0103e4d8
leave
ret
Function at 0x10287cb
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x107342c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1012bb8
push 0x80000002
call ebx
cmp eax, esi
jne 0x102897b
push edi
lea eax, [ebp - 0x430]
push eax
push esi
push esi
push esi
push 0x1012ba8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x102883a
xor edi, edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x102897a
push esi
push dword [ebp - 0x41c]
call fcn.0103bcb6
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x474]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x474], 0x44
mov dword [ebp - 0x448], 0x80
mov dword [ebp - 0x46c], 0x1012b84
call dword [fcn.01001298]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x100140c]
push 0x1012b6c
lea eax, [ebp - 0x20c]
push eax
call dword [0x10012dc]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push 0x4000000
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001440]
test eax, eax
je 0x102897a
push dword [ebp - 0x428]
mov edi, dword [fcn.01001454]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [fcn.0100143c]
test eax, eax
je 0x102891e
push esi
push dword [ebp - 0x42c]
call dword [fcn.0100124c]
push dword [ebp - 0x42c]
call edi
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x1011308
push 0x80000002
call ebx
test eax, eax
jne 0x1028960
push 0x1012b38
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
call dword [0x10012f4]
push 0x78
push dword [ebp - 0x41c]
call fcn.0103bcb6
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x1028a66
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push 0x1011308
push 0x80000002
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1028adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1012ca4
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1012b38
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
pop edi
cmp dword [ebp - 0x10], ebx
jne 0x1028ae5
cmp dword [ebp - 0xc], ebx
je 0x1028b64
mov eax, dword [0x1074478]
cmp eax, ebx
je 0x1028b09
push 0xffffffffffffffff
push eax
call dword [fcn.0100143c]
push dword [0x1074478]
call dword [fcn.01001454]
mov dword [0x1074478], ebx
call fcn.0103dc0f
push 1
call fcn.0103c8f0
cmp dword [ebp - 0xc], ebx
jne 0x1028b5c
push 0x1012c88
call dword [fcn.01001238]
mov esi, eax
cmp esi, ebx
je 0x1028b64
push 0x1012c78
push esi
call dword [fcn.01001234]
cmp eax, ebx
je 0x1028b45
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push ebx
call eax
push esi
call dword [fcn.01001268]
push 0x1012ca4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1028b64
push dword [ebp + 8]
call fcn.010287cb
call fcn.0102870b
cmp dword [ebp - 4], ebx
pop esi
pop ebx
je 0x1028b79
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
leave
ret 4
Function at 0x1028e6a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 8]
push esi
add eax, 0x28
push eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x14], 5
mov dword [ebp - 0x10], esi
mov word [ebp - 0x12], si
call fcn.010270ab
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1028ec7
xor eax, eax
jmp 0x1028ef8
push dword [ebp + 0x20]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
or eax, 0x404
push eax
mov eax, dword [ebx + 8]
push esi
push esi
push esi
push edi
push esi
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp + 8]
mov esi, eax
call fcn.01027188
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x10296f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1012e08
push 0x80000002
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1029777
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x1012de4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1029776
cmp dword [ebp - 0xc], esi
je 0x1029776
push 0x1012dcc
call dword [fcn.01001238]
mov esi, eax
test esi, esi
je 0x1029776
push 0x1012dbc
push esi
call dword [fcn.01001234]
test eax, eax
je 0x102976f
call eax
push esi
call dword [fcn.01001268]
pop esi
leave
ret
Function at 0x102a351
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0x1013340
lea eax, [ebp - 0x14]
push eax
call dword [fcn.0100168c]
xor edi, edi
push edi
call dword [0x1001790]
cmp eax, edi
jne 0x102a445
push ebx
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push 8
push 0xfffffffffffffffe
call dword [0x100170c]
mov esi, eax
cmp esi, edi
jge 0x102a39f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x102a41f
push 0x13
pop esi
lea eax, [ebp - 0xc]
push eax
push dword [0x1076ad0]
push dword [ebp - 4]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x102a437
cmp dword [ebp - 0xc], 0
je 0x102a3c3
push 0x18
pop esi
xor edi, edi
and dword [ebp - 0x18], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
call dword [0x1001708]
mov esi, eax
test esi, esi
jge 0x102a3f2
cmp esi, 0xc0000061
jne 0x102a40c
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push 0
push eax
call dword [0x1001704]
mov esi, eax
push dword [ebp - 4]
call dword [fcn.010016c8]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jge 0x102a428
push esi
call dword [0x10016d8]
jmp 0x102a443
mov al, byte [ebp - 8]
neg al
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
jmp 0x102a443
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
call dword [fcn.0100149c]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x102aee1
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x107342c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
xor edi, edi
push eax
inc edi
push 0x202
mov dword [ebp - 0x298], edi
call dword [fcn.01001a20]
test eax, eax
je 0x102af1f
mov eax, edi
jmp 0x102b076
mov eax, dword [esi + 0x4a8]
dec eax
dec eax
push ebx
je 0x102af3b
sub eax, 0x15
jne 0x102b069
lea ebx, [esi + 0x4ac]
jmp 0x102afa2
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [esi + 0x4ac]
push 0x10133c4
push eax
call dword [0x1001538]
mov al, byte [ebp - 0x2b4]
mov byte [ebp - 0x29c], al
mov al, byte [ebp - 0x2b0]
mov byte [ebp - 0x29b], al
mov al, byte [ebp - 0x2ac]
mov byte [ebp - 0x29a], al
mov al, byte [ebp - 0x2a8]
add esp, 0x18
mov byte [ebp - 0x299], al
lea ebx, [ebp - 0x29c]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x2a4], 0x100
call dword [0x1001338]
test eax, eax
je 0x102b069
lea eax, [ebp - 0x2a0]
push eax
push 0
push 0
lea eax, [ebp - 0x104]
push eax
call dword [0x1001a28]
test eax, eax
jne 0x102b069
and dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x102b069
mov esi, dword [esi + 0x4a8]
mov dword [ebp - 0x2b8], esi
cmp esi, dword [eax + 4]
jne 0x102b04e
mov edx, dword [eax + 0x10]
cmp edx, 0x3e
ja 0x102b04e
mov ecx, esi
dec ecx
dec ecx
je 0x102b03d
sub ecx, 0x15
jne 0x102b063
cmp edx, 0x1c
jb 0x102b04e
mov edi, dword [eax + 0x18]
push 4
add edi, 8
pop ecx
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x102b057
mov esi, dword [ebp - 0x2b8]
xor edi, edi
inc edi
jmp 0x102b04e
cmp edx, 0x10
jb 0x102b04e
mov ecx, dword [eax + 0x18]
mov edx, dword [ebx]
add ecx, 4
cmp edx, dword [ecx]
je 0x102b063
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x102b004
jmp 0x102b069
mov dword [ebp - 0x298], 1
jmp 0x102b069
mov dword [ebp - 0x298], edi
call dword [0x1001a24]
mov eax, dword [ebp - 0x298]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0103e4d8
leave
ret 4

Function at 0x102b1d3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1011308
xor esi, esi
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102b234
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10133dc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102b22b
cmp dword [ebp - 0xc], esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x102b2da
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1011308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102b339
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x101340c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102b330
cmp dword [ebp - 0xc], 1
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x102bd39
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
push edi
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x102bdfc
push 0x14
push 0x10134d4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x102bdf3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call ebx
test eax, eax
je 0x102bd91
cmp dword [ebp - 0x28], 4
jne 0x102bd91
mov dword [ebp - 8], edi
jmp 0x102bde9
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x102bde9
mov esi, dword [fcn.010012a4]
call esi
mov edi, dword [0x1001414]
mov dword [ebp - 0xc], eax
call esi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
ja 0x102bde9
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x102bde9
cmp dword [ebp - 0x28], 4
je 0x102bde2
cmp dword [ebp - 0x14], 0
je 0x102bddb
push dword [ebp - 0x14]
call edi
jmp 0x102bdb1
push 0x1f4
jmp 0x102bdd7
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x102d15e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0103e847
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1038], esi
mov dword [ebp - 0x103c], 0x10
call dword [0x1001278]
test eax, eax
je 0x102d1af
push 1
lea eax, [ebp - 0x24]
push eax
push 0x1011b58
push esi
call fcn.0101df76
lea eax, [ebp - 0x1034]
push eax
push 0x20019
push 0
push 0x10135d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d2de
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1040]
push eax
push 0
push 0x10135b0
push dword [ebp - 0x1034]
mov dword [ebp - 0x1030], 0x802
call ebx
test eax, eax
mov esi, 0x401
jne 0x102d25a
push esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x102c]
push eax
call dword [0x10012c0]
test eax, eax
je 0x102d25a
cmp eax, esi
jae 0x102d25a
push edi
push 1
lea eax, [ebp - 0x828]
push eax
mov edi, 0x1013594
push edi
push dword [ebp - 0x1038]
call fcn.0101df76
lea eax, [ebp - 0x828]
push eax
push edi
call dword [0x1001368]
pop edi
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1040]
push eax
push 0
push 0x1013574
push dword [ebp - 0x1034]
mov dword [ebp - 0x1030], 0x802
call ebx
test eax, eax
pop ebx
jne 0x102d2d2
push esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x102c]
push eax
call dword [0x10012c0]
test eax, eax
je 0x102d2d2
cmp eax, esi
jae 0x102d2d2
push 1
lea eax, [ebp - 0x828]
push eax
mov esi, 0x101354c
push esi
push dword [ebp - 0x1038]
call fcn.0101df76
lea eax, [ebp - 0x828]
push eax
push esi
call dword [0x1001368]
push dword [ebp - 0x1034]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop esi
call fcn.0103e4d8
leave
ret 4
Function at 0x102d7a8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1130
call fcn.0103e847
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x624], bx
mov ecx, edx
lea edi, [ebp - 0x622]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x41c], bx
mov ecx, edx
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xc], bx
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x214], bx
mov ecx, edx
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x112c], esi
mov esi, dword [esi + 8]
push eax
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 0x1128], 0x104
call fcn.0101e522
test eax, eax
je 0x102d88b
lea eax, [ebp - 0x1124]
push eax
call fcn.0102d15e
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.0101e0f6
xor edi, edi
inc edi
cmp dword [0x1074464], ebx
jne 0x102d8c6
push dword [ebp - 0x112c]
call fcn.0102e2ee
test eax, eax
je 0x102d892
xor eax, eax
jmp 0x102d972
lea eax, [ebp - 0x1128]
push eax
lea eax, [ebp - 0x82c]
push eax
push dword [esi + 0x28]
call dword [0x1001988]
test eax, eax
je 0x102d8c6
push edi
lea eax, [ebp - 0x82c]
push eax
push 0x10136d0
lea eax, [ebp - 0x1124]
push eax
call fcn.0101df76
mov eax, dword [ebp - 0x1124]
mov dword [esi + 0x64], eax
lea eax, [ebp - 0x214]
push eax
call dword [fcn.01001410]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [fcn.01001418]
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x102d8fe
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [0x100140c]
cmp dword [0x1074464], ebx
jne 0x102d970
push esi
call fcn.0102d45b
cmp dword [0x1074464], ebx
jne 0x102d970
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102d95c
lea eax, [ebp - 0x1130]
push eax
push 0x8f4
lea eax, [ebp - 0x1120]
push eax
push 6
push 0xffffffffffffffff
push ebx
call fcn.0103eeb9
test al, al
je 0x102d95c
push edi
push edi
push dword [ebp - 0x830]
push dword [esi + 0x28]
call fcn.0103f958
cmp dword [0x1074464], ebx
jne 0x102d970
push edi
push dword [ebp - 0x112c]
call fcn.0101e48a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4