joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ebb
Capabilities:
Create service
Modify service

Disassembly:
mov eax, esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
push eax
mov eax, esi
neg eax
sbb eax, eax
xor ecx, ecx
not eax
and eax, dword [ebp + 0x10]
push eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push 0x10005b90
push eax
push eax
setne cl
inc ecx
push fcn.10001f6c
inc ecx
push 1
neg esi
sbb esi, esi
push ecx
and esi, 0x100
add esi, 0x10
push esi
push ebx
push 0x214
call fcn.10002c7c
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x10001f1c
xor eax, eax
jmp 0x10001f5a
push 0x272
call fcn.10002c7c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x10
push esi
call fcn.10005714
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push dword [ebp - 4]
call esi
test ebx, ebx
jne 0x10001f58
push edi
call fcn.10003a80
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10001f6c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 8]
push 6
xor esi, esi
push eax
push 2
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xf000c
call fcn.10002cc8
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x10002020
push edi
push ebx
xor ebx, ebx
cmp dword [ebp - 8], esi
jbe 0x10002000
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea esi, [eax + 0xc]
push 0x1000714d
push dword [esi + 4]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x10001ff7
push fcn.100069c4
push dword [esi]
call edi
pop ecx
test eax, eax
pop ecx
je 0x10001ff7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi - 8]
call fcn.10002d64
test eax, eax
je 0x10001ff7
push dword [ebp - 4]
call fcn.10002584
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call fcn.1000361c
inc ebx
add esi, 0x54
cmp ebx, dword [ebp - 8]
jb 0x10001fb1
cmp dword [ebp - 0xc], 0xffffffff
je 0x10002016
push 0x1fb
call fcn.10002c7c
push eax
call fcn.10002a94
push dword [ebp - 0x10]
call fcn.100052f4
pop ebx
pop edi
push 1
pop eax
pop esi
leave
ret
Function at 0x1000223c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push fcn.10007274
push 0x10006be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.1000540c
mov esi, eax
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp word [esi], 0x5c
je 0x10002281
add esi, 4
mov dword [ebp - 0x1c], esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc esi
inc esi
mov dword [ebp - 0x1c], esi
cmp word [esi], bx
je 0x100022c7
mov ax, word [esi]
cmp ax, bx
je 0x100022a6
cmp ax, 0x5c
je 0x100022a6
inc esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10002291
cmp word [esi], bx
jne 0x100022b7
push ebx
push dword [ebp - 0x20]
call edi
or dword [ebp - 4], 0xffffffff
jmp 0x100022d3
mov word [esi], bx
push ebx
push dword [ebp - 0x20]
call edi
mov word [esi], 0x5c
jmp 0x10002287
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.100052f4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100022e4
Capabilities:
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.10002d34
cmp dword [0x1002066c], 0
push ebx
push esi
push edi
je 0x10002302
call fcn.10003e0c
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov esi, 0x100205d4
mov ebx, 0x104
call edi
push eax
lea eax, [esi - 0x414]
push 0x40
push eax
push dword [esi - 0x418]
push dword [0x10020748]
call fcn.10001a38
call edi
push eax
lea eax, [esi - 0x208]
push 0x40
push eax
push dword [esi - 0x20c]
push dword [0x10020748]
call fcn.10001a38
cmp dword [esi], 0x261
jne 0x100023a5
call edi
push eax
lea eax, [ebp - 0x820]
push ebx
push eax
push 0x1fb
push dword [0x10020748]
call fcn.10001a38
push 0x29
call fcn.10002cc8
test eax, eax
mov ecx, 0x100068d9
jne 0x10002384
mov ecx, fcn.10002868
lea edx, [ebp - 0x820]
push 0x1000714d
push edx
lea eax, [esi + 4]
push ecx
push fcn.1000635b
push eax
call dword [pe_dos_header]
add esp, 0x14
jmp 0x100023ba
call edi
push eax
lea eax, [esi + 4]
push ebx
push eax
push dword [esi]
push dword [0x10020748]
call fcn.10001a38
call edi
push eax
lea eax, [esi + 0x210]
push ebx
push eax
push dword [esi + 0x20c]
push dword [0x10020748]
call fcn.10001a38
call edi
push eax
lea eax, [esi + 0x41c]
push ebx
push eax
push dword [esi + 0x418]
push dword [0x10020748]
call fcn.10001a38
call edi
push eax
lea eax, [esi + 0x638]
push ebx
push eax
push dword [esi + 0x634]
push dword [0x10020748]
call fcn.10001a38
mov eax, dword [esi + 0x624]
and eax, 1
push eax
lea eax, [esi - 0x414]
push eax
call dword [0x100205e8]
test byte [esi + 0x624], 0x10
je 0x1000247b
lea eax, [ebp - 0x208]
push eax
push 0x2e
call fcn.10006f30
test eax, eax
je 0x1000247b
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x618]
push eax
call dword [0x10017680]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x41c]
push eax
lea eax, [ebp - 0xc30]
push eax
call dword [0x10017680]
add esp, 0xc
jmp 0x100024aa
lea eax, [ebp - 0x618]
push 0x208
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc30]
push 0x208
push eax
lea eax, [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1040]
push 0x208
push eax
lea eax, [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test byte [esi + 0x624], 8
je 0x100024f8
cmp dword [ebp + 8], 0
je 0x100024f8
lea eax, [ebp - 0x618]
push 0x10005109
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
lea eax, [ebp - 0x618]
pop ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
pop ecx
test byte [esi + 0x624], 0x20
mov ecx, fcn.10003bb0
jne 0x1000250c
lea ecx, [ebp - 0xc30]
lea eax, [esi + 0x638]
push eax
mov ax, word [esi + 0x630]
push dword [esi + 0x62c]
push eax
push ecx
push dword [esi + 0x628]
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [esi - 0x208]
push eax
lea eax, [esi - 0x414]
push eax
push 0x17
call dword [0x100179a4]
add esi, 0xc58
cmp esi, 0x10020738
jb 0x10002312
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10002607
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
cmp dword [0x10020664], 0
je 0x1000265b
push dword [ebp + 0xc]
call fcn.10002c7c
push eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
add eax, 0x20c
push eax
call fcn.10002c7c
push eax
lea eax, [ebp - 0x200]
push 0x10001309
push eax
call dword [0x10017680]
add esp, 0x10
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x10002696
mov eax, dword [ebp + 0x10]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x40
or ecx, 0x10000
or ecx, dword [ebp + 0x14]
neg eax
sbb eax, eax
push ecx
add eax, 0x20c
push eax
call fcn.10002c7c
push eax
push dword [ebp + 0xc]
call fcn.10002c7c
push eax
push dword [ebp + 8]
call dword [0x10017a68]
leave
ret 0x10

Function at 0x10002804
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x3e8
push eax
push 0x10002c16
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000549c
xor eax, eax
leave
ret
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100011bf
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]
xor eax, eax
test esi, esi
setne al
pop esi
leave
ret

Function at 0x10002868
Capabilities:
Accept command line arguments
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x10002919
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, edi
je 0x1000291c
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 1
push ebx
call esi
test eax, eax
jne 0x100028d8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0xea
jne 0x1000291c
push dword [ebp - 0xc]
call fcn.10002ff8
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1000291c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push 1
push ebx
call esi
test eax, eax
je 0x1000291c
cmp dword [ebp - 8], edi
je 0x1000290f
cmp dword [ebp - 8], 0
jbe 0x1000290d
mov esi, dword [ebp - 4]
push dword [esi]
call fcn.10001c08
inc edi
add esi, 0x24
cmp edi, dword [ebp - 8]
jb 0x100028fd
xor edi, edi
push dword [ebp + 8]
call fcn.10001c08
jmp 0x1000291c
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], edi
je 0x10002929
push dword [ebp - 4]
call fcn.100052f4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x10002940
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
mov dword [ebp - 0xc], ebx
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1000354c
cmp eax, 2
jne 0x10002a48
cmp dword [ebp + 0x14], ebx
je 0x10003544
push dword [ebp + 0x14]
call fcn.10001f64
lea eax, [eax + eax + 2]
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne fcn.1000299e
mov dword [ebp - 4], 0x20
mov dword [ebp - 4], ebx
jmp 0x10002992
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x10002992
xor eax, eax
jmp 0x10002a5f

Function at 0x1000299e
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push dword [ebp - 4]
call fcn.10002ff8
mov edi, eax
cmp edi, ebx
je 0x10002a48
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push edi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x100029ee
cmp eax, 2
jne 0x10002a48
push dword [ebp + 0x14]
push edi
call fcn.10003614
pop ecx
pop ecx
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x10002a48
cmp dword [ebp + 0xc], 2
jne 0x10002a35
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edi
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10002a48
lea eax, [eax + eax + 2]
push eax
call fcn.10002ff8
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x10002a48
push dword [ebp + 8]
push eax
push edi
call esi
cmp eax, ebx
jne 0x10002a2c
push dword [ebp + 0x10]
call fcn.100052f4
jmp 0x10002a48
push edi
call fcn.100052f4
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x10002a48
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 0xc], ebx
jne 0x10002a5d
push edi
call fcn.100052f4
push dword [ebp + 0x14]
call fcn.10003624
jmp 0x10002a5f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10002a94
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push 6
push eax
xor esi, esi
push 2
push esi
mov dword [ebp - 0xc], 1
call fcn.10002cc8
cmp eax, esi
mov dword [ebp - 8], eax
mov ebx, 0x1000714d
je 0x10002af7
cmp dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
jbe 0x10002aef
lea edi, [eax + 0x10]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop ecx
test eax, eax
pop ecx
je 0x10003ba0
inc dword [ebp - 4]
add edi, 0x54
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jb 0x10002ace
push dword [ebp - 8]
call fcn.100052f4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x10002c5c
push eax
push 2
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x10007268
call fcn.10002a68
test eax, eax
jne 0x10002b29
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0xbbe
jne fcn.10002bb8
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x27c]
push 0x104
push eax
push 0x10005109
call edi
push 0x29
call fcn.10002cc8
test eax, eax
mov eax, 0x100068d9
jne fcn.10002b57
mov eax, fcn.10002868
push dword [ebp - 8]
call fcn.100052f4
push 1
pop eax
jmp 0x10002c07

Function at 0x10002b57
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
lea ecx, [ebp - 0x27c]
push ecx
push ebx
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x67c]
push 0x10001d55
push eax
call dword [pe_dos_header]
add esp, 0x18
lea eax, [ebp - 0xa7c]
push 0x200
push eax
lea eax, [ebp - 0x67c]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 8
push esi
push esi
lea eax, [ebp - 0xa7c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10002bbc
push 0x6b49d200
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10002bdb
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10002bf1
cmp dword [ebp - 0x14], esi
je 0x10002bf4
mov dword [ebp - 0xc], esi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp - 0xc]

Function at 0x10002ca0
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
ret 0xc
Function at 0x10002d84
Capabilities:
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [fcn.100076d0]
lea eax, [ebp - 0x108]
push 0x1000514e
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10002e3e
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push fcn.10006719
push eax
call esi
lea edi, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x40c]
push ecx
push eax
push 1
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop edi
jmp 0x10002e40
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x10002e48
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
je 0x10002f01
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]

Function at 0x10002ff8
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x10020774]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x1000300d
push dword [esp + 0xc]
call eax
jmp 0x1000303c
cmp dword [0x10017b4c], edi
jne 0x1000302a
push edi
push edi
push edi
push edi
call fcn.100016d0
cmp dword [0x10017b4c], edi
jne 0x1000302a
xor eax, eax
jmp 0x1000304c
push dword [esp + 0xc]
push 8
push dword [0x10017b4c]
call dword [fcn.100076d0]
mov esi, eax
cmp esi, edi
jne 0x1000304a
push 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x10003578
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100035e2
push 0
push 0
push 0
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 8], 0xc8
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100035d2
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 4]
call fcn.10003578
inc edi
jmp 0x10003598
push dword [ebp - 4]
cmp eax, 0x103
je 0x100035e6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100035fb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 1
pop eax
pop edi
leave
ret 8

Function at 0x100039e0
Capabilities:
Allocate or change rwx memory
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
push 0x10017de0
push 0x40
mov ecx, dword [0x10017030]
sub ecx, dword [0x10017034]
push ecx
mov edx, dword [0x10017034]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x10325476
pop ebp
ret

Function at 0x10003a80
Capabilities:
Accept command line arguments
Delete service

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 8], eax
jne 0x10003aa6
xor eax, eax
jmp 0x10003b3c
push edi
push esi
push ebp
push 0xf01ff
push dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x10003b1a
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push 1
pop ebp
push ebp
push edi
call esi
test eax, eax
jne 0x10003afc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0x41c
jne 0x10003afc
cmp ebx, 3
jae 0x10003b22
push 0x7d0
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
jmp 0x10003acf
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10003b14
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0x430
jne 0x10003b22
mov dword [esp + 0x10], ebp
jmp 0x10003b22
mov dword [esp + 0x10], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10003b2f
push edi
call esi
push dword [esp + 0x14]
call esi
pop ebp
pop esi
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x24
ret 4
Function at 0x10003aa6
Capabilities:
Accept command line arguments
Delete service

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 8], eax
jne 0x10003aa6
xor eax, eax
jmp 0x10003b3c
push edi
push esi
push ebp
push 0xf01ff
push dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x10003b1a
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push 1
pop ebp
push ebp
push edi
call esi
test eax, eax
jne 0x10003afc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0x41c
jne 0x10003afc
cmp ebx, 3
jae 0x10003b22
push 0x7d0
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
jmp 0x10003acf
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10003b14
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0x430
jne 0x10003b22
mov dword [esp + 0x10], ebp
jmp 0x10003b22
mov dword [esp + 0x10], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10003b2f
push edi
call esi
push dword [esp + 0x14]
call esi
pop ebp
pop esi
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x24
ret 4

Function at 0x10003c14
Capabilities:
Accept command line arguments
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x5c
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
call dword [fcn.100076d0]
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x10003c62
lea eax, [ebp - 0x120]
push ebx
push eax
mov word [esi], di
call dword [fcn.100076d0]
pop ecx
mov word [esi], 0x5c
pop ecx
jmp fcn.10003c72
lea eax, [ebp - 0x120]
push ebx
push eax
call dword [fcn.100076d0]
pop ecx
pop ecx