joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073a1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a81
and dword [ebp - 4], 0
cmp dword [0x40e738], 0
mov ebx, eax
jne 0x407452
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407503
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407503
push eax
call fcn.00402a0f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e738], eax
call esi
push eax
call fcn.00402a0f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e73c], eax
call esi
push eax
call fcn.00402a0f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e740], eax
call esi
push eax
call fcn.00402a0f
pop ecx
mov dword [0x40e748], eax
test eax, eax
je 0x407452
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402a0f
pop ecx
mov dword [0x40e744], eax
mov eax, dword [0x40e744]
cmp eax, ebx
je 0x4074aa
cmp dword [0x40e748], ebx
je 0x4074aa
push eax
call fcn.00402a8a
push dword [0x40e748]
mov esi, eax
call fcn.00402a8a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4074aa
test edi, edi
je 0x4074aa
call esi
test eax, eax
je 0x4074a1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4074a1
test byte [ebp - 0xc], 1
jne 0x4074aa
or dword [ebp + 0x10], 0x200000
jmp 0x4074e3
mov eax, dword [0x40e73c]
cmp eax, ebx
je 0x4074e3
push eax
call fcn.00402a8a
pop ecx
test eax, eax
je 0x4074e3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4074e3
mov eax, dword [0x40e740]
cmp eax, ebx
je 0x4074e3
push eax
call fcn.00402a8a
pop ecx
test eax, eax
je 0x4074e3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e738]
call fcn.00402a8a
pop ecx
test eax, eax
je 0x407503
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407505
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001326
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10001413
mov eax, 0x94
call fcn.10003300
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10001488
mov ecx, dword [esi + 0x10]
mov dword [0x10009d44], ecx
mov eax, dword [esi + 4]
mov dword [0x10009d50], eax
mov edx, dword [esi + 8]
mov dword [0x10009d54], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10009d48], esi
je 0x10001391
or esi, 0x8000
mov dword [0x10009d48], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10009d4c], eax
call fcn.1000158e
test eax, eax
pop ecx
je 0x10001488
call fcn.1000289a
test eax, eax
jne 0x100013be
call fcn.100015df
jmp 0x10001488
call fcn.10003271
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000b3b8], eax
call fcn.1000314f
mov dword [0x10009bd8], eax
call fcn.10002c30
test eax, eax
jl 0x1000140c
call fcn.100030ad
test eax, eax
jl 0x10001407
call fcn.10002e7a
test eax, eax
jl 0x10001407
call fcn.10002a1d
test eax, eax
jne 0x10001407
inc dword [0x10009bd4]
jmp 0x10001499
call fcn.10002e2e
call fcn.1000268d
jmp 0x100013b4
test eax, eax
jne 0x10001443
cmp dword [0x10009bd4], eax
jle 0x10001488
dec dword [0x10009bd4]
cmp dword [0x10009d80], eax
jne 0x10001432
call fcn.10002b66
call fcn.10002e2e
call fcn.1000268d
call fcn.100015df
jmp 0x10001499
cmp eax, 2
jne 0x1000148c
push 0x88
push 1
call fcn.10002b75
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10001488
push esi
push dword [0x10009170]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10001482
call fcn.100026ab
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10001499
call section..text
pop ecx
xor eax, eax
jmp 0x1000149c
cmp eax, 3
jne 0x10001499
push 0
call fcn.1000272f
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10002a82
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10001790
xor esi, esi
inc esi
cmp dword [0x10009d84], esi
pop ecx
jne 0x10002aaa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10009d80], esi
mov byte [0x10009d7c], al
jne 0x10002b10
mov ecx, dword [0x1000b388]
test ecx, ecx
je 0x10002af1
mov eax, dword [0x1000b384]
sub eax, 4
cmp eax, ecx
jmp 0x10002aea
mov eax, dword [eax]
test eax, eax
je 0x10002adc
call eax
mov eax, dword [0x1000b384]
sub eax, 4
cmp eax, dword [0x1000b388]
mov dword [0x1000b384], eax
jae 0x10002ad4
mov eax, 0x10009020
mov esi, 0x10009028
cmp eax, esi
mov edi, eax
jae 0x10002b10
mov eax, dword [edi]
test eax, eax
je 0x10002b09
call eax
add edi, 4
cmp edi, esi
jb 0x10002b01
mov eax, 0x1000902c
mov esi, 0x10009030
cmp eax, esi
mov edi, eax
jae 0x10002b2f
mov eax, dword [edi]
test eax, eax
je 0x10002b28
call eax
add edi, 4
cmp edi, esi
jb 0x10002b20
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10002b40
push 8
call fcn.100016fc
jmp 0x10002b52
push dword [ebp + 8]
mov dword [0x10009d84], 1
call fcn.100029db
pop ecx
pop ebp
ret
Function at 0x10003343
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10009174]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100091b0]
je 0x10003370
inc eax
cmp eax, 0x12
jb 0x10003361
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100091b0]
jne 0x100034a4
mov eax, dword [0x10009be0]
cmp eax, 1
je 0x1000347f
cmp eax, edx
jne 0x100033a0
cmp dword [0x10009be4], 1
je 0x1000347f
cmp ecx, 0xfc
je 0x100034a4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100033d9
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10004840
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10002950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000341b
lea eax, [ebp - 0x10c]
push eax
call fcn.10002950
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10007570
push edi
call fcn.10004a40
add esp, 0x10
push edi
call fcn.10002950
push dword [esi + 0x100091b4]
mov ebx, eax
call fcn.10002950
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10003300
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10004840
push edi
push ebx
call fcn.10004850
push 0x10007550
push ebx
call fcn.10004850
push dword [esi + 0x100091b4]
push ebx
call fcn.10004850
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10004938
add esp, 0x2c
jmp 0x100034a4
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x100091b4]
push dword [esi]
call fcn.10002950
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.1000293a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004295
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10009174]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x100042be
xor eax, eax
jmp 0x1000442c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1000b280]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100042f1
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.100057c1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100043c3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x100043fe
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x1000434c
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000433d
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x10004320
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000438c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10004395
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10004311
jmp 0x10004397
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10004427
cmp dword [ebp - 8], edi
je 0x100043fe
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x100043f0
call fcn.1000358e
mov dword [eax], 9
call fcn.10003597
mov dword [eax], esi
jmp 0x100043f9
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100043e5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10004397
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10004397
push dword [ebp - 8]
call fcn.100035a0
pop ecx
or eax, 0xffffffff
jmp 0x1000442a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10004413
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x10004413
xor eax, eax
jmp 0x1000442a
call fcn.1000358e
mov dword [eax], 0x1c
call fcn.10003597
mov dword [eax], edi
jmp 0x100043f9
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.1000293a
leave
ret
Function at 0x10004938
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10009eb8], ebx
push esi
push edi
jne 0x100049b8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100049f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10009eb8], eax
je 0x100049f3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10009ebc], eax
call esi
cmp dword [0x10009d44], 2
mov dword [0x10009ec0], eax
jne 0x100049b8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10009ec8], eax
je 0x100049b8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10009ec4], eax
mov eax, dword [0x10009ec4]
test eax, eax
je 0x100049fd
call eax
test eax, eax
je 0x100049e4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10009ec8]
test eax, eax
je 0x100049e4
test byte [ebp - 8], 1
jne 0x100049fd
cmp dword [0x10009d50], 4
jb 0x100049f7
or byte [ebp + 0x12], 0x20
jmp 0x10004a1c
xor eax, eax
jmp 0x10004a2c
or byte [ebp + 0x12], 4
jmp 0x10004a1c
mov eax, dword [0x10009ebc]
test eax, eax
je 0x10004a1c
call eax
mov ebx, eax
test ebx, ebx
je 0x10004a1c
mov eax, dword [0x10009ec0]
test eax, eax
je 0x10004a1c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10009eb8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005c69
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10003300
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005cfe
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10009d44]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10005cfe
cmp eax, 1
je 0x10005d16
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005cfe
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10005cd3
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10005cfa
xor eax, eax
inc eax
jmp 0x10005d32
cmp esi, ebx
jae 0x10005d02
xor eax, eax
jmp 0x10005d32
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10009d44]
jmp 0x10005d18
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100023a0
Capabilities:
Create thread

Disassembly:
push 0x37
mov edx, dword [0x1001601c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10002392
mov dword [ebp - 0x408], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x408]
push eax
push str.Start
lea ecx, [ebp - 0x404]
push ecx
push reloc.WS2_32.dll_bind
call fcn.1000a110
add esp, 0x10
lea edx, [ebp - 4]
push ebp
cld
push edx
push str.Start
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call fcn.1000a110
add esp, 0x10
cmp dword [ebp - 0x408], 2
jne 0x1000237b
cmp dword [ebp - 4], 2
je 0x1000238d
push 0x10015290
push 0x10015278
call fcn.1000ab50
add esp, 8
jmp 0x10002308
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x68], ecx
push eax
xor eax, eax
je 0x100023b8
jae 0x10002350
mov eax, dword [0xf03d8358]
push ebx
add dword [eax], edx
add byte [esp + edx - 0x75], dh
inc ebp
cwde
pop eax
cmp dword [0x100153f0], 0
je 0x100023d6
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0x100034f0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov word [ebp - 0x64], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x62]
rep stosd dword es:[edi], eax
push 0x62
lea ecx, [ebp - 0x64]
push ecx
push 0x10015906
call fcn.1000a3b0
add esp, 0xc
test eax, eax
je 0x1000240e
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.1000ffe0
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0x10002270
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x1f4c
push str.gdiplus.dll
call fcn.10009b60
add esp, 8
test eax, eax
jne 0x10002447
mov ecx, dword [0x10015004]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002422
mov edx, 1
test edx, edx
je 0x100024ef
mov ecx, dword [ebp - 0x68]
add ecx, 0x70
call fcn.10004c50
mov eax, dword [0x10015010]
push eax
push 0x1f40
mov ecx, dword [ebp - 0x68]
add ecx, 0x70
call fcn.10004ab0
test eax, eax
je 0x100024dd
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x184], 0
je 0x10002499
mov edx, dword [ebp - 0x68]
push edx
push 0
push 0x100034f0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov ecx, dword [ebp - 0x68]
call fcn.10002eb0
test eax, eax
je 0x100024ba
push 0
mov eax, dword [0x1001601c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100024dd
mov ecx, dword [ebp - 0x68]
add ecx, 0x70
call fcn.10004c50
push 0
push 0
push 0x5b6
mov ecx, dword [0x10016030]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x100024ef
mov edx, dword [0x10015004]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002447
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003110
Capabilities:
Create service
Persist via windows service

Disassembly:
das
add byte [eax], dl
pushal
das
add byte [eax], dl
xchg edx, eax
das
add byte [eax], dl
stosd dword es:[edi], eax
das
add byte [eax], dl
jns 0x10003100
add byte [eax], dl
invalid
xor byte [eax], al
adc byte [eax + 0x2f], ah
add byte [eax], dl
int3
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
je 0x10003128
jae 0x100030c0
mov eax, dword [0x6a006a58]
add byte [edx], ch
pop eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push 2
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003161
xor eax, eax
jmp 0x10003170
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10003180
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
add byte [edx], ch
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
je 0x10003198
jae 0x10003130
mov eax, dword [0x1ff6858]
str word [ebx - 0x74aff3bb]
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.dll_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100031b9
xor eax, eax
jmp 0x100031d7
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100031e0
Capabilities:
Start service

Disassembly:
test byte [ebx], al
add byte [eax], al
add byte [ebx - 0x67], dh
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x48], ecx
push eax
xor eax, eax
je 0x100031f8
jae 0x10003190
mov eax, dword [0xbc45c658]
add byte [ecx + 0xf], bh
pop eax
mov byte [ebp - 0x44], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push str.._s
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
Function at 0x10003280
Capabilities:
Stop service

Disassembly:
add byte [eax], al
add al, al
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000324b
xor eax, eax
jmp 0x1000326a
cmp dword [ebp + 0xc], 0
je 0x1000325b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x10003265
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push eax
xor eax, eax
je 0x10003298
jae 0x10003230
mov eax, dword [0x1ff6858]
str word [ebx - 0x74aff3bb]
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.dll_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100032b9
xor eax, eax
jmp 0x100032d9
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100032f0
Capabilities:
Delete service
Stop service

Disassembly:
or al, 0x50
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
je 0x10003308
jae 0x100032a0
mov eax, dword [0x1ff6858]
str word [ebx - 0x74aff3bb]
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.dll_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003329
xor eax, eax
jmp 0x10003343
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]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003350
Capabilities:
Delete service

Disassembly:
test byte [ebx], al
add byte [eax], al
add byte [ebx - 0x67], dh
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
je 0x10003368
jae 0x10003300
mov eax, dword [0x3f6858]
verw word [edx]
pop eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10003280
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
call fcn.100032f0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100036d0
Capabilities:
Shutdown system

Disassembly:
sal byte [edx + edx - 0x73], 0x95
in al, dx
invalid
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
push eax
xor eax, eax
je 0x100036e8
jae 0x10003680
mov eax, dword [0xe445c758]
add dword [eax], eax
add byte [eax], al
pop eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 2
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [ebp - 0x20]
push eax
push 1
push 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]

Function at 0x10003780
Capabilities:
Shutdown system

Disassembly:
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], 0
je 0x1000375f
push 4
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10003769
push 4
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x100123a4
push eax
xor eax, eax
je 0x1000379f
jae 0x10003737
mov eax, dword [0xfc4d8b58]
pop eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov ecx, 0x41
xor eax, eax
mov edi, dword [ebp - 4]
add edi, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x110], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret