joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bf7f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1006bf98
or eax, 0xffffffff
jmp 0x1006bff9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1006bff5
push 0x3d
push esi
call fcn.1005aa0f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1006bff5
cmp esi, eax
je 0x1006bff5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x101a7ed8]
sete cl
cmp eax, dword [0x101a7edc]
mov dword [ebp - 8], ecx
jne 0x1006bfdb
mov edi, eax
call fcn.1006bf1e
mov dword [0x101a7ed8], eax
cmp eax, ebx
jne 0x1006c034
cmp dword [ebp + 0xc], ebx
je 0x1006bffd
cmp dword [0x101a7ee0], ebx
je 0x1006bffd
call fcn.1006b0ce
test eax, eax
je 0x1006c034
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1006c006
xor eax, eax
jmp 0x1006bff8
push 4
call fcn.100567f4
cmp eax, ebx
pop ecx
mov dword [0x101a7ed8], eax
je 0x1006bff5
mov dword [eax], ebx
cmp dword [0x101a7ee0], ebx
jne 0x1006c034
push 4
call fcn.100567f4
cmp eax, ebx
pop ecx
mov dword [0x101a7ee0], eax
je 0x1006bff5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x101a7ed8]
call fcn.1006bed1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1006c095
cmp dword [esi], ebx
je 0x1006c095
lea esi, [esi + edi*4]
push dword [esi]
call fcn.100569b3
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1006c078
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1006c0d6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1006c06f
mov eax, edi
shl eax, 2
push eax
push dword [0x101a7ed8]
call fcn.10056806
cmp eax, ebx
pop ecx
pop ecx
je 0x1006c0d6
jmp 0x1006c0d1
cmp dword [ebp - 8], ebx
jne 0x1006c141
cmp edi, ebx
jge 0x1006c0a4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x101a7ed8]
call fcn.10056806
cmp eax, ebx
pop ecx
pop ecx
je 0x1006bff5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x101a7ed8], eax
cmp dword [ebp + 0xc], ebx
je 0x1006c12b
push dword [ebp - 4]
call fcn.10059d10
inc eax
inc eax
push eax
call fcn.100567f4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1006c12b
push dword [ebp - 4]
push esi
call fcn.1005a140
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1006c124
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.100569b3
pop ecx
cmp dword [ebp - 8], ebx
je 0x1006c139
push dword [ebp - 4]
call fcn.100569b3
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1006bff8
push dword [ebp - 4]
call fcn.100569b3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1006c002
Function at 0x1006c610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012f391
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
push edi
push 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0
call fcn.1006c3b0
mov esi, 1
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov edi, dword [esp + 0x30]
push 0xfde9
push ecx
push eax
push edi
call fcn.1006c4d0
add esp, 0x20
mov dword [esp + 0xc], esi
mov byte [esp + 0x18], 0
mov esi, dword [esp + 8]
add esi, 0xfffffff8
lea edx, [esi + 4]
push edx
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x1006c68f
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1006c6b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1012f3c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.10001520
mov dword [esp + 0x18], 1
mov eax, dword [esp + 8]
test eax, eax
lea ecx, [esp + 8]
jne 0x1006c6fd
push 0x104
call fcn.10001520
jmp 0x1006c731
call fcn.10001b30
mov esi, dword [esp + 8]
push 0x10d
add esi, 0xfffffff8
call fcn.10001220
push eax
push esi
call fcn.10056806
mov dword [eax], 0x104
add esp, 0xc
add eax, 8
mov dword [esp + 8], eax
mov byte [eax + 0x104], 0
mov eax, dword [esp + 8]
push 0x104
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
mov esi, eax
cmp esi, 0x104
lea ecx, [esp + 8]
push esi
jbe 0x1006c75f
call fcn.10002260
mov eax, dword [eax]
push esi
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
jmp 0x1006c764
call fcn.10002260
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x20]
mov dword [edi], eax
add eax, 0xfffffffc
push eax
call sub.KERNEL32.dll_InterlockedIncrement
mov dword [esp + 0xc], 1
mov byte [esp + 0x18], 0
mov esi, dword [esp + 8]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x1006c7a1
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1006c7c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1012f3c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.10001520
mov dword [esp + 0x18], 1
mov eax, dword [esp + 8]
test eax, eax
lea ecx, [esp + 8]
jne 0x1006c80d
push 0x104
call fcn.10001520
jmp 0x1006c841
call fcn.10001b30
mov esi, dword [esp + 8]
push 0x10d
add esi, 0xfffffff8
call fcn.10001220
push eax
push esi
call fcn.10056806
mov dword [eax], 0x104
add esp, 0xc
add eax, 8
mov dword [esp + 8], eax
mov byte [eax + 0x104], 0
mov eax, dword [esp + 8]
push 0x104
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov esi, eax
cmp esi, 0x104
lea ecx, [esp + 8]
push esi
jbe 0x1006c86f
call fcn.10002260
mov eax, dword [eax]
push esi
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
jmp 0x1006c874
call fcn.10002260
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x20]
mov dword [edi], eax
add eax, 0xfffffffc
push eax
call sub.KERNEL32.dll_InterlockedIncrement
mov dword [esp + 0xc], 1
mov byte [esp + 0x18], 0
mov esi, dword [esp + 8]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x1006c8b1
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1006c8d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1012f3c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.10001520
mov dword [esp + 0x18], 1
mov eax, dword [esp + 8]
test eax, eax
lea ecx, [esp + 8]
jne 0x1006c91d
push 0x104
call fcn.10001520
jmp 0x1006c951
call fcn.10001b30
mov esi, dword [esp + 8]
push 0x10d
add esi, 0xfffffff8
call fcn.10001220
push eax
push esi
call fcn.10056806
mov dword [eax], 0x104
add esp, 0xc
add eax, 8
mov dword [esp + 8], eax
mov byte [eax + 0x104], 0
mov eax, dword [esp + 8]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
mov esi, eax
cmp esi, 0x104
lea ecx, [esp + 8]
push esi
jbe 0x1006c97f
call fcn.10002260
mov eax, dword [eax]
push eax
push esi
call sub.KERNEL32.dll_GetTempPathA
jmp 0x1006c984
call fcn.10002260
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x20]
mov dword [edi], eax
add eax, 0xfffffffc
push eax
call sub.KERNEL32.dll_InterlockedIncrement
mov dword [esp + 0xc], 1
mov byte [esp + 0x18], 0
mov esi, dword [esp + 8]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x1006c9c1
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1006ca20
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push str.SetValue
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ecx + 0xc]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.1006ea20
add esp, 8
ret 0x10
Function at 0x1006ca60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push str.SetValue
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 0xc]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.1006ea20
add esp, 8
ret 8

Function at 0x1006ca90
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x1006caa0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006caa0
mov ecx, dword [ecx + 0xc]
push str.SetValue
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.1006ea20
add esp, 8
pop edi
pop esi
ret 8

Function at 0x1006cae0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x1006caf0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006caf0
push str.SetValue
sub eax, edi
inc eax
push eax
mov eax, dword [ecx + 0xc]
push esi
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.1006ea20
add esp, 8
pop edi
pop esi
ret 4

Function at 0x1006cb20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push 0
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 0xc]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret 4

Function at 0x1006cb50
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 0xc]
push str.RegDeleteValue
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
call fcn.1006ea20
add esp, 8
ret 4

Function at 0x1006cd90
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1012f4c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.10001520
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 8]
push eax
push ecx
call fcn.1006cbd0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov edx, dword [esp + 0x24]
add esp, 8
lea esi, [eax - 8]
push str.SetValue
inc ecx
push ecx
push eax
mov eax, dword [edi + 0xc]
push 7
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.1006ea20
add esp, 8
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 4]
push ecx
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x1006ce1b
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x1006d0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012f470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
push str.QueryValue
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call fcn.1006ea20
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1006d4f0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x1012f4ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x10194180]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x124]
push 0x100
mov dword [esp + 0x114], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0xc]
push 0
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1006d640
push ebp
push esi
push edi
mov edi, edi
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006d557
sub eax, edx
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.10001520
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
mov dword [esp + 0x128], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1006d5a0
xor edx, edx
jmp 0x1006d5a8
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x1006d5d9
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x1006d5d9
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + 8]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call fcn.1000f140
add esp, 0x14
add esi, 4
mov dword [ebx + 8], esi
jmp 0x1006d5eb
mov eax, dword [ebx + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, ebx
call fcn.1000fa20
mov dword [esp + 0x128], 0xffffffff
mov esi, dword [esp + 0x10]
add esi, 0xfffffff8
lea eax, [esi + 4]
push eax
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x1006d613
push esi
call fcn.100569b3
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0x100
inc eax
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1006d550
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x110]
pop ebx
xor ecx, esp
call fcn.100571c6
add esp, 0x11c
ret 4
Function at 0x1006def0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012f5f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.10056f3c
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
add eax, 0xc
push eax
lea ecx, [esi + 0xc]
mov dword [esi], 0x10145408
call fcn.1006dd50
mov byte [esp + 0x1c], 1
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov byte [esp + 0x1c], 2
lea ecx, [esi + 0x38]
push ebx
call fcn.10001520
mov byte [esp + 0x1c], 3
mov ecx, 0x101a8494
mov dword [esp + 0x24], esi
call fcn.1006d940
mov edi, eax
mov ebx, dword [edi + 4]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.1006d850
push 1
mov ecx, edi
mov ebp, eax
call fcn.1006dbd0
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x1006e0c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1012f641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.10056f3c
xor ebx, ebx
mov dword [esp + 0x38], ebx
lea edi, [esi + 0xc]
mov dword [esi], 0x10145408
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [esp + 0x38], 1
mov ebp, 0xf
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov byte [esp + 0x38], 2
lea ecx, [esi + 0x38]
push ebx
call fcn.10001520
mov byte [esp + 0x38], 3
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x40]
mov eax, ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1006e140
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.100020c0
mov byte [esp + 0x38], 4
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.1003d4a0
mov byte [esp + 0x38], 3
cmp dword [esp + 0x2c], 0x10
jb 0x1006e17e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.101209d7
add esp, 4
mov ecx, 0x101a8494
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x40], esi
call fcn.1006d940
mov edi, eax
mov ebx, dword [edi + 4]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x40]
push edx
push eax
push ebx
mov ecx, edi
call fcn.1006d850
push 1
mov ecx, edi
mov ebp, eax
call fcn.1006dbd0
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x10072110
Capabilities:
Delete service

Disassembly:
mov eax, dword [ecx]
sub esp, 0x40
test eax, eax
je 0x1007211d
mov eax, dword [eax]
jmp 0x1007211f
xor eax, eax
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10072161
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x430
jne 0x1007213e
mov al, byte [esp + 0x44]
test al, al
jne 0x10072161
call sub.KERNEL32.dll_GetLastError
push eax
push 0x101455d8
lea ecx, [esp + 8]
call fcn.1006e6d0
push 0x10180678
lea eax, [esp + 4]
push eax
call fcn.10056f02
add esp, 0x40
ret 4

Function at 0x10072170
Capabilities:
Start service

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1007217a
mov eax, dword [eax]
jmp 0x1007217c
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push str.Startservice
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push eax
call fcn.1006e9e0
add esp, 8
ret 8

Function at 0x100721a0
Capabilities:
Query service status

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x100721aa
mov eax, dword [eax]
jmp 0x100721ac
xor eax, eax
mov ecx, dword [esp + 4]
push 0x101455f8
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push eax
call fcn.1006e9e0
add esp, 8
ret 4

Function at 0x100723b0
Capabilities:
Create service

Disassembly:
push 0xffffffffffffffff
push 0x1012ff41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [esp], 0
mov eax, dword [ecx]
test eax, eax
je 0x100723d9
mov eax, dword [eax]
jmp 0x100723db
xor eax, eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push 0xf01ff
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x10072448
call sub.KERNEL32.dll_GetLastError
push eax
push str.CreateService
lea ecx, [esp + 0xc]
call fcn.1006e6d0
push 0x10180678
lea edx, [esp + 8]
push edx
call fcn.10056f02
push esi
mov esi, dword [esp + 0x58]
push eax
mov ecx, esi
call fcn.10072090
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 0x30
Function at 0x100742c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101302cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], edi
call fcn.10074020
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov cl, byte [esp + 0x40]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x18], cl
mov dword [esp + 0x10], 0x1014571c
mov byte [esp + 0x38], 1
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10076aa0
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10074345
mov eax, dword [eax]
cmp eax, ebx
je 0x10074341
lea ecx, [esp + 0x18]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x10], ebx
mov byte [esp + 0x38], 3
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x10074358
mov eax, dword [ecx]
push 1
call dword [eax]
lea esi, [edi + 8]
mov ecx, esi
mov dword [esp + 0x40], esi
call fcn.10073f90
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov byte [esp + 0x38], 5
mov byte [esi + 0xc], bl
mov dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8

Function at 0x10074610
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x10130361
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
push 0
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
call fcn.10001520
mov dword [esp + 0x58], 1
mov eax, dword [esp + 4]
test eax, eax
mov dword [esp + 8], 0x10
lea ecx, [esp + 4]
jne 0x10074661
push 0xf
call fcn.10001520
jmp 0x1007468f
call fcn.10001b30
mov esi, dword [esp + 4]
push 0x18
add esi, 0xfffffff8
call fcn.10001220
push eax
push esi
call fcn.10056806
mov dword [eax], 0xf
add esp, 0xc
add eax, 8
mov dword [esp + 4], eax
mov byte [eax + 0xf], 0
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call sub.KERNEL32.dll_GetComputerNameA
test eax, eax
jne 0x100746e5
mov edx, dword [esp + 8]
dec edx
push edx
lea ecx, [esp + 8]
call fcn.10002260
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.dll_GetComputerNameA
test eax, eax
jne 0x100746e5
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetComputerName__
lea ecx, [esp + 0x18]
call fcn.1006e6d0
push 0x10180678
lea edx, [esp + 0x14]
push edx
call fcn.10056f02
mov eax, dword [esp + 4]
push edi
mov edi, dword [esp + 0x64]
mov dword [edi], eax
add eax, 0xfffffffc
push eax
call sub.KERNEL32.dll_InterlockedIncrement
mov dword [esp + 0x10], 1
mov byte [esp + 0x5c], 0
mov esi, dword [esp + 8]
add esi, 0xfffffff8
lea eax, [esi + 4]
push eax
call sub.KERNEL32.dll_InterlockedDecrement
test eax, eax
jg 0x10074723
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x10074c30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x58
xor eax, eax
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.10001070
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x10074d5a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x10074cae
call sub.KERNEL32.dll_GetLastError
push eax
push 0x10145758
lea ecx, [esp + 0x28]
call fcn.1006e6d0
push 0x10180678
lea eax, [esp + 0x24]
push eax
call fcn.10056f02
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.10001070
push eax
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x10074ce8
push 0x5b4
push 0x10145758
lea ecx, [esp + 0x28]
call fcn.1006e6d0
push 0x10180678
lea edx, [esp + 0x24]
push edx
call fcn.10056f02
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_GetOverlappedResult
test eax, eax
jne 0x10074d5a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e4
jne 0x10074d37
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CancelIo
call sub.KERNEL32.dll_GetLastError
push eax
push 0x10145758
lea ecx, [esp + 0x28]
call fcn.1006e6d0
push 0x10180678
lea ecx, [esp + 0x24]
push ecx
call fcn.10056f02
call sub.KERNEL32.dll_GetLastError
push eax
push 0x10145758
lea ecx, [esp + 0x28]
call fcn.1006e6d0
push 0x10180678
lea edx, [esp + 0x24]
push edx
call fcn.10056f02
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x58
ret 8