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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x11c], bl
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
je 0x100c181
call fcn.0100dece
push eax
push esi
lea eax, [ebp - 0x11c]
push 0x1003c08
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push 6
push 0x8000
call fcn.0100e994
jmp 0x100c2a5
push 0x1003bf0
push 6
mov edi, 0x8000
push edi
call fcn.0100e994
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
mov esi, eax
lea eax, [ebp - 0x11c]
push 0x1003bc0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 6
push edi
call fcn.0100e994
cmp esi, ebx
jne 0x100c297
cmp dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
jbe 0x100c297
mov esi, 0x104
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x324], bl
lea edi, [ebp - 0x323]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
stosb byte es:[edi], al
pop ecx
xor eax, eax
mov byte [ebp - 0x220], bl
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100c288
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push 0x1003bb4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push 6
push 0x8000000
call fcn.0100e994
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x100c1f8
cmp dword [ebp - 4], ebx
je 0x100c2a5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100c2ac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
mov byte [ebp - 0x11c], bl
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
stosb byte es:[edi], al
pop ecx
xor eax, eax
mov byte [ebp - 0x21c], bl
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push closesocket
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
je 0x100c347
call fcn.0100dece
push eax
push esi
lea eax, [ebp - 0x21c]
push 0x1003c08
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
push 6
push 0x4000000
call fcn.0100e994
jmp 0x100c3c5
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100c3b7
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x100c3b7
push 0x104
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x100c3b1
lea eax, [ebp - 0x11c]
push eax
push 6
push 0x8000000
call fcn.0100e994
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
call fcn.0100c0fb
inc esi
cmp esi, dword [ebp - 8]
jb 0x100c375
cmp dword [ebp - 4], ebx
je 0x100c3c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100c3cc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
xor eax, eax
mov byte [ebp - 0x10c], bl
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x100c483
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100c475
lea eax, [ebp - 4]
push eax
push 0x10008
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x100c461
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x100c469
cmp esi, ebx
jne 0x100c475
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0100c3cc
mov esi, eax
cmp esi, ebx
je 0x100c424
jmp 0x100c475
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x100c483
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x100c5ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0x10], edi
je 0x100c75f
mov eax, dword [ebp + 0xc]
mov dword [0x101ef2c], 1
cmp byte [eax], bl
jne 0x100c60e
push 0x4b
call fcn.01013f80
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x100c60e
push 0x1003da8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
call fcn.01013f80
mov eax, dword [ebp + 8]
dec eax
pop ecx
push 2
je 0x100c6db
dec eax
je 0x100c656
dec eax
je 0x100c686
pop ecx
sub eax, ecx
je 0x100c655
sub eax, ecx
jne 0x100c759
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x1003da4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x100c74e
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, 0x1003da4
jmp 0x100c746
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x1003da0
push esi
call edi
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call esi
push ebx
lea eax, [ebp - 4]
push eax
push 0x1003da0
call edi
push eax
push 0x1003d9c
push dword [ebp + 0x10]
call esi
jmp 0x100c67c
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x1003d94
push esi
call edi
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push ebx
lea eax, [ebp - 4]
push eax
push 0x1003d90
call edi
push eax
push 0x1003d90
push dword [ebp + 0x10]
call esi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call esi
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x1003da4
push esi
call edi
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push esi
call edi
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp + 0x10]
xor esi, esi
inc esi
cmp edi, ebx
je 0x100c76a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100cf33
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100cf58
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100cf88
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x100cf85
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Locate_DevNodeA]
test eax, eax
jne 0x100cf88
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call fcn.0100cc03
test eax, eax
jne 0x100cf88
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x100d03c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push edi
push 0x3f
mov byte [ebp - 0x128], 0x30
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x100d0a8
cmp dword [0x101f598], ebx
je 0x100d256
push 0x1003ea0
push 6
push 0x1000000
call fcn.0100e994
jmp 0x100d256
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0xc], ebx
mov edi, 0x8000000
mov eax, dword [ebp - 0x28]
test dword [ebp - 4], eax
je 0x100d188
mov al, byte [ebp - 0xc]
push dword [ebp - 4]
and byte [ebp - 5], 0
add al, 0x41
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x128]
push 0x1003e80
push eax
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
call esi
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 6
push edi
call fcn.0100e994
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 0
je 0x100d171
dec eax
je 0x100d164
dec eax
je 0x100d146
dec eax
je 0x100d13e
dec eax
je 0x100d136
dec eax
je 0x100d12e
dec eax
je 0x100d126
push 0x1003ff0
jmp 0x100d17c
mov eax, dword [ebp - 4]
or dword [ebp - 0x20], eax
jmp 0x100d188
mov eax, dword [ebp - 4]
or dword [ebp - 0x18], eax
jmp 0x100d188
mov eax, dword [ebp - 4]
or dword [ebp - 0x10], eax
jmp 0x100d188
mov eax, dword [ebp - 4]
or dword [ebp - 0x24], eax
jmp 0x100d188
push dword [ebp - 4]
or ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x128]
push 0x1003fbc
push eax
call esi
add esp, 0x14
jmp 0x100d188
mov eax, dword [ebp - 4]
or dword [ebp - 0x14], eax
push 0x1003f9c
jmp 0x100d17c
mov eax, dword [ebp - 4]
or dword [ebp - 0x1c], eax
push 0x1003f80
push 6
push 0x1000000
call fcn.0100e994
inc dword [ebp - 0xc]
shl dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0x20
jbe 0x100d0b7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
push ebx
push ebx
push ecx
push ecx
mov dword [0x101ef40], edx
mov edx, dword [ebp - 0x20]
push eax
mov dword [0x101ef44], edx
mov edx, dword [ebp - 0x14]
push eax
mov dword [0x101ef34], eax
mov dword [0x101ef48], edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x128]
push 0x1003f38
push eax
mov dword [0x101ef30], ecx
mov dword [0x101ef3c], ebx
mov dword [0x101ef38], edx
call esi
add esp, 0x20
lea eax, [ebp - 0x128]
push eax
push 6
push edi
call fcn.0100e994
mov eax, dword [0x101ef44]
push eax
push eax
mov eax, dword [0x101ef40]
push eax
push eax
lea eax, [ebp - 0x128]
push 0x1003f00
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
push 6
push edi
call fcn.0100e994
mov eax, dword [0x101ef38]
push eax
push eax
mov eax, dword [0x101ef48]
push eax
push eax
lea eax, [ebp - 0x128]
push 0x1003ecc
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
push 6
push edi
call fcn.0100e994
pop esi
pop edi
pop ebx
leave
ret
Function at 0x100d25a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push edi
and byte [ebp - 0x31c], 0
xor eax, eax
push 0x3f
and byte [ebp - 0x21c], 0
pop ecx
mov byte [ebp - 0x11c], 0x30
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 0x3f
pop ecx
lea edi, [ebp - 0x31b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 0x3f
pop ecx
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jne 0x100d2e2
cmp dword [0x101f598], eax
je 0x100d3e4
push 0x10040dc
push 6
push 0x1000000
call fcn.0100e994
jmp 0x100d3e4
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov dword [ebp - 0xc], eax
mov esi, 0x8000000
mov eax, dword [ebp + 8]
test dword [ebp - 8], eax
je 0x100d3d2
mov al, byte [ebp - 0xc]
push dword [ebp - 8]
and byte [ebp - 1], 0
add al, 0x41
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x11c]
push 0x10040b4
push eax
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
call edi
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push 6
push esi
call fcn.0100e994
push 1
call ebx
mov dword [ebp - 0x1c], eax
mov eax, 0x100
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x11c]
push 0x1004080
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push 6
push esi
call fcn.0100e994
cmp dword [ebp - 0x10], 0
je 0x100d3c5
lea eax, [ebp - 0x21c]
push eax
push 0x1004078
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100d3d2
push 0x1004060
jmp 0x100d3ca
push 0x1004010
push 6
push esi
call fcn.0100e994
inc dword [ebp - 0xc]
shl dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0x20
jbe 0x100d2f8
pop esi
pop ebx
mov eax, dword [ebp - 0x10]
pop edi
leave
ret 4
Function at 0x100d791
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 6
pop ecx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x1004200
push esi
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
call fcn.0100bef0
push 0x100451c
push ebx
call fcn.0100bef0
add esp, 0x10
cmp dword [ebp + 8], ebx
jne 0x100d7e1
mov dword [ebp + 8], 0x101ef50
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100d43e
lea eax, [ebp - 0x1c]
push eax
push 0x10043d4
push ebx
call fcn.0100bef0
push dword [ebp + 8]
push 0x10043c0
push ebx
call fcn.0100bef0
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x100d844
call fcn.0100bf99
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10044dc
push ebx
call fcn.0100bef0
mov edi, dword [ebp - 8]
add esp, 0x10
jmp 0x100d8d6
push 0xf01ff
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
jne 0x100d87a
call fcn.0100bf99
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x100449c
push ebx
call fcn.0100bef0
add esp, 0x14
jmp 0x100d8d6
lea eax, [ebp - 0x38]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
cmp eax, ebx
lea eax, [ebp - 0x1c]
push eax
je 0x100d8c8
push 0x1004484
push ebx
call fcn.0100bef0
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x100d8d6
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100d8be
lea eax, [ebp - 0x1c]
push eax
push 0x100446c
jmp 0x100d8cd
push dword [ebp + 8]
push 0x100444c
jmp 0x100d8cd
push 0x100442c
push ebx
call fcn.0100bef0
add esp, 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 0xc]
call edi
push 0x100440c
push ebx
call fcn.0100bef0
push esi
push ebx
call fcn.0100bef0
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100d903
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 0x1004200
xor ebx, ebx
push ebx
mov byte [ebp - 1], 1
call fcn.0100bef0
push 0x10046cc
push ebx
call fcn.0100bef0
add esp, 0x10
cmp dword [ebp + 8], ebx
jne 0x100d93f
push ebx
push 0x4a
push 0x10041ac
push 0x10046bc
call fcn.0100bf40
call fcn.01012fb1
test eax, eax
jne 0x100d963
push 0x10
push 0x10046b4
push 0x100467c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 1], bl
jmp 0x100da75
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
add eax, 0x14
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
jne 0x100d99f
push ebx
push 0x5e
push 0x10041ac
push 0x1004670
call fcn.0100bfe3
jmp 0x100da11
push dword [ebp - 8]
push edi
call esi
test eax, eax
je 0x100da11
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1004664
push edi
call esi
push 0x1004658
push edi
call esi
push edi
push 0x101ef50
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x100462c
push ebx
call fcn.0100bef0
add esp, 0xc
push 0xa
push 0x1f45
push edi
call fcn.01012e80
test eax, eax
jne 0x100d9f8
call fcn.0100bf99
push eax
push 0x10045f4
jmp 0x100da2d
push edi
push ebx
push ebx
call fcn.0100d4ee
test eax, eax
jne 0x100da16
push 0x10045cc
push ebx
call fcn.0100bef0
pop ecx
pop ecx
mov byte [ebp - 1], bl
jmp 0x100da56
push dword [ebp + 8]
push 0x10045c0
call fcn.0100d3ec
test eax, eax
push edi
jne 0x100da38
push 0x1004598
push ebx
call fcn.0100bef0
mov byte [ebp - 1], bl
jmp 0x100da53
call fcn.01012fa1
test eax, eax
jne 0x100da56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004560
push ebx
call fcn.0100bef0
add esp, 0xc
cmp edi, ebx
je 0x100da69
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 1], bl
pop edi
pop esi
mov eax, 0x10032f0
jne 0x100da7a
mov eax, 0x10032e8
push eax
push 0x100453c
push ebx
call fcn.0100bef0
add esp, 0xc
cmp byte [ebp - 1], bl
pop ebx
jne 0x100daa8
push 0x100420c
push 0x97
push 0x10041ac
push 0x1004204
call fcn.0100bf40
mov al, byte [ebp - 1]
leave
ret 4

Function at 0x100df18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1004a88
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100df91
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1004a7c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100df75
push 0x1004a5c
jmp 0x100df7a
push 0x1004a2c
push 6
push 0x4000000
call fcn.0100e994
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100dfa2
push 0x10049f8
push 6
push 0x4000000
call fcn.0100e994
mov eax, dword [ebp - 8]
leave
ret
Function at 0x100e8d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x101f270], ebx
mov dword [ebp - 0xc], eax
je 0x100e8fb
cmp dword [0x101f5bc], ebx
je 0x100e8fb
push 4
jmp 0x100e907
mov dword [0x101f270], 1
push 2
cmp dword [0x101ec90], ebx
pop eax
push ebx
push 0x90000000
je 0x100e91a
push 4
jmp 0x100e91b
push eax
push ebx
push 2
push 0x40000000
push 0x101f278
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100e98f
cmp dword [ebp + 0xc], ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x10050bc
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
je 0x100e950
cmp dword [ebp + 8], ebx
jne 0x100e962
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
lea esi, [ebp - 0x2c]
jmp 0x100e965
mov esi, dword [ebp - 0xc]
push 2
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8