joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40809f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.start
mov dword [esi + 0x14], eax
call fcn.00401f30
mov ecx, esi
call fcn.004052fa
xor edi, edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], edi
mov dword [esi + 0x50], ebx
mov dword [ebp - 8], edi
mov dword [esi + 0x48], edi
mov dword [ebp + 8], edi
cmp dword [esi + 0x48], edi
jne 0x408114
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x40808b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x48], eax
cmp eax, edi
jne 0x408111
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x4080dc
jmp 0x408114
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a3d4
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
mov esi, ecx
push esi
push 0x40a3c5
push eax
push eax
mov byte [esi + 0x48], al
call fcn.0042ce4c
add esp, 0x18
mov dword [esi + 0xe4], eax
pop esi
ret

Function at 0x40a4ba
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a526
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40a51d
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [0x4c648c]
pop esi
leave
ret

Function at 0x40a529
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x40a5f9
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40a558
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40a5f9
push esi
push esi
push 4
push esi
push esi
mov edi, bind
push edi
push ebx
mov dword [ebp - 4], 5
mov dword [ebp - 8], esi
call dword [0x4c6488]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a5aa
cmp dword [ebp - 4], esi
jle 0x40a5a3
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 4
push esi
push esi
push edi
push dword [ebp + 8]
call dword [0x4c6488]
dec dword [ebp - 4]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a57c
or eax, 0xffffffff
cmp ebx, eax
je 0x40a5fc
push esi
push ebx
call dword [0x4c6430]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0042d9d7
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
je 0x40a5f9
lea eax, [edi + 1]
push eax
push esi
push dword [ebp + 8]
call fcn.0042bc20
add esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call dword [0x4c6534]
cmp dword [ebp - 8], edi
je 0x40a601
push esi
call fcn.0042d8fa
pop ecx
push ebx
call dword [0x4c648c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
push ebx
call dword [0x4c648c]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp - 8]
jmp 0x40a5fc
Function at 0x40a612
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov al, byte [eax]
push ebx
mov ebx, dword [ebp + 0xc]
test al, al
je 0x40a6cf
push esi
push edi
cmp al, 0x24
je 0x40a658
cmp al, 0x26
je 0x40a658
cmp al, 0x2b
je 0x40a658
cmp al, 0x2c
je 0x40a658
cmp al, 0x2f
je 0x40a658
cmp al, 0x3a
je 0x40a658
cmp al, 0x3b
je 0x40a658
cmp al, 0x3d
je 0x40a658
cmp al, 0x3f
je 0x40a658
cmp al, 0x40
je 0x40a658
cmp al, 0x23
je 0x40a658
cmp al, 0x20
jne 0x40a6ba
movsx eax, al
push eax
push str.___02x
lea eax, [ebp + 0xc]
push 4
push eax
call fcn.0042dc4b
lea eax, [ebp + 0xc]
push eax
xor edi, edi
call fcn.0042b470
add esp, 0x14
test eax, eax
jbe 0x40a69d
lea esi, [ebp + edi + 0xc]
movsx eax, byte [esi]
push eax
call fcn.0042dc1f
mov byte [esi], al
lea eax, [ebp + 0xc]
push eax
inc edi
call fcn.0042b470
pop ecx
pop ecx
cmp edi, eax
jb 0x40a67e
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.0042daa1
lea eax, [ebp + 0xc]
push eax
call fcn.0042b470
add esp, 0x10
add ebx, eax
jmp 0x40a6bd
mov byte [ebx], al
inc ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
jne 0x40a628
pop edi
pop esi
mov byte [ebx], 0
pop ebx
pop ebp
ret
Function at 0x40a6d5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0xa8], eax
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xb4]
push ebx
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a7f6
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40a7ed
push edi
push 0xff
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.0042bc20
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x68], ebx
jbe 0x40a7ec
push 0x100
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x6c], 0x100
call fcn.0042bc20
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40a7e1
lea eax, [ebp - 0x58]
push eax
call fcn.0042b470
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x64]
add eax, edi
push eax
call fcn.0042c9b0
lea eax, [ebp - 0x58]
push eax
call fcn.0042b470
add edi, eax
mov eax, dword [ebp - 0x64]
push 2
add eax, edi
push 0x444e54
push eax
call fcn.0042c9b0
add esp, 0x20
inc edi
inc edi
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x68]
jb 0x40a771
pop edi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
pop ebx
call fcn.0042ba9a
add ebp, 0xac
leave
ret
Function at 0x40ac52
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0xb0], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0xbc]
push esi
mov esi, dword [ebp + 0xc4]
push edi
push 0
push 2
mov dword [ebp - 0x78], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40acf7
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x40aceb
lea eax, [ebp - 0x54]
push eax
push ebx
call fcn.0042e3d1
pop ecx
pop ecx
test eax, eax
jne 0x40ace1
and dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [ebp - 0x80]
cmp eax, 0x3e8
ja 0x40acd5
cmp eax, dword [ebp + 0xc0]
jne 0x40ace1
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x40aca3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xb0]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ba9a
add ebp, 0xb4
leave
ret

Function at 0x40ad81
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push eax
xor edi, edi
mov byte [ebp - 8], 0x6c
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 7], 0
mov byte [ebp - 0x24], 0x4e
mov byte [ebp - 0x1d], 0x6e
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x1f], 0x6d
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x54
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x20], 0x72
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40ae37
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x455570], eax
test eax, eax
je 0x40ae37
push edi
push esi
call eax
test eax, eax
jne 0x40ae37
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042ba9a
leave
ret
Function at 0x40b8b8
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c64c0]
sub esp, 0x34
test eax, eax
jne 0x40b8c9
leave
ret
push esi
xor esi, esi
inc esi
push esi
push 0
push 0
call eax
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b8de
pop esi
leave
ret
push ebx
push edi
lea eax, [ebp - 8]
push 0x444f68
push eax
call fcn.00408331
mov eax, dword [eax]
pop ecx
pop ecx
push 0xf003f
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004012b7
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x40b925
xor esi, esi
push dword [ebp - 4]
call edi
pop edi
mov eax, esi
pop ebx
jmp 0x40b8db
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
push 0x64
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 2
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push ebx
mov esi, eax
call edi
jmp 0x40b91a
Function at 0x40bf5f
Capabilities:
Initialize winhttp library
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push ebx
mov dword [ebp - 0x48], edi
call fcn.0042b470
mov esi, eax
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c91c
push esi
push ebx
push esi
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], edi
call fcn.0042e7f8
lea eax, [ebp - 0x50]
push 0x445088
push eax
call fcn.00408331
mov esi, dword [eax]
add esp, 0x24
cmp esi, edi
je 0x40bfd5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x40bfd9
xor eax, eax
jmp 0x40bfed
lea eax, [ebx + ebx]
call fcn.0042bbc0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.0040a3f6
push edi
push edi
push dword [ebp - 0x40]
push 3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
mov dword [ebp - 0x44], eax
call fcn.004012b7
push dword [ebp - 0x40]
call fcn.0041c911
pop ecx
cmp dword [ebp - 0x44], edi
je 0x40c136
push 0x70
pop eax
push 0x61
mov word [ebp - 0x2c], ax
pop eax
push 0x63
mov word [ebp - 0x30], ax
pop eax
push 0x69
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x10], ax
pop eax
push 0x6d
mov word [ebp - 0x22], ax
pop eax
push 0x74
mov word [ebp - 0x12], ax
pop eax
push 0x72
mov word [ebp - 0x3c], ax
pop eax
push 0x63
mov word [ebp - 0x1c], ax
pop eax
push 0x6d
mov word [ebp - 0x20], ax
pop eax
push 0x67
mov word [ebp - 0x2e], ax
pop eax
push 0x74
mov word [ebp - 0x24], ax
pop eax
push 0x69
mov word [ebp - 0x32], ax
pop eax
push 0x6f
mov word [ebp - 0x26], ax
pop eax
push 0x69
mov word [ebp - 0x14], ax
pop eax
push 0x2e
mov word [ebp - 0x3a], ax
pop eax
push 0x6d
mov word [ebp - 0x18], ax
mov word [ebp - 0x2a], ax
pop eax
push 0x65
mov word [ebp - 0x38], ax
pop eax
push 0x64
mov word [ebp - 0x36], ax
pop eax
push 0x73
mov word [ebp - 0x28], ax
pop eax
push 0x65
mov word [ebp - 0x34], ax
pop eax
push 0x74
mov word [ebp - 0x1e], ax
pop eax
push edi
mov word [ebp - 0x1a], ax
push 0x50
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
call dword [0x4c652c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
cmp esi, edi
je 0x40c131
push 0x47
pop eax
push 0x54
mov word [ebp - 0xc], ax
pop eax
push 0x45
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
pop eax
push 8
push edi
push edi
push edi
mov word [ebp - 0xa], ax
push 0x445080
lea eax, [ebp - 0xc]
push eax
push esi
call dword [0x4c6530]
mov dword [ebp - 0x40], eax
cmp eax, edi
je 0x40c12e
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [0x4c64a4]
cmp eax, edi
je 0x40c129
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x40]
call ebx
push esi
call ebx
push dword [ebp - 0x44]
call ebx
mov eax, dword [ebp - 0x48]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ba9a
leave
ret
Function at 0x40c14b
Capabilities:
Initialize winhttp library
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
push 0x445088
xor esi, esi
push eax
mov dword [ebp - 0x44], esi
call fcn.00408331
mov ebx, dword [eax]
pop ecx
pop ecx
cmp ebx, esi
je 0x40c18b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40c18f
xor eax, eax
jmp 0x40c1a3
lea eax, [edi + edi]
call fcn.0042bbc0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.0040a3f6
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], eax
call fcn.004012b7
cmp dword [ebp - 0x40], esi
je 0x40c2e4
push 0x65
pop eax
push 0x73
mov word [ebp - 0x36], ax
pop eax
push 0x63
mov word [ebp - 0x34], ax
pop eax
push 0x72
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x10], ax
pop eax
push 0x63
mov word [ebp - 0x1c], ax
pop eax
push 0x74
mov word [ebp - 0x16], ax
pop eax
push 0x6d
mov word [ebp - 0x1a], ax
pop eax
push 0x74
mov word [ebp - 0x12], ax
pop eax
push 0x67
mov word [ebp - 0x3c], ax
pop eax
push 0x69
mov word [ebp - 0x24], ax
pop eax
push 0x6d
mov word [ebp - 0x22], ax
pop eax
push 0x74
mov word [ebp - 0x38], ax
pop eax
push 0x2e
mov word [ebp - 0x32], ax
pop eax
push 0x70
mov word [ebp - 0x2a], ax
pop eax
push 0x69
mov word [ebp - 0x2c], ax
pop eax
push 0x2e
mov word [ebp - 0x26], ax
pop eax
push 0x64
mov word [ebp - 0x18], ax
pop eax
push 0x6d
mov word [ebp - 0x28], ax
pop eax
push 0x61
mov word [ebp - 0x2e], ax
pop eax
push 0x6f
mov word [ebp - 0x30], ax
pop eax
push 0x65
mov word [ebp - 0x14], ax
pop eax
push 0x69
mov word [ebp - 0x1e], ax
pop eax
push esi
mov word [ebp - 0x3a], ax
push 0x50
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
call dword [0x4c652c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
cmp edi, esi
je 0x40c2df
push 0x47
pop eax
push 0x54
mov word [ebp - 0xc], ax
pop eax
push 0x45
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
pop eax
push 8
push esi
push esi
push esi
mov word [ebp - 0xa], ax
push 0x445080
lea eax, [ebp - 0xc]
push eax
push edi
call dword [0x4c6530]
mov dword [ebp - 0x48], eax
cmp eax, esi
je 0x40c2dc
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call dword [0x4c64a4]
cmp eax, esi
je 0x40c2d7
push esi
push dword [ebp - 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x48]
call ebx
push edi
call ebx
push dword [ebp - 0x40]
call ebx
mov eax, dword [ebp - 0x44]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ba9a
leave
ret
Function at 0x40c361
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 8], esi
call dword [0x4c64c0]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40c400
push edi
lea eax, [ebp - 0xc]
push 0x444f68
push eax
call fcn.00408331
mov eax, dword [eax]
pop ecx
pop ecx
push 0x11
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004012b7
cmp edi, esi
je 0x40c3f6
push ebx
mov dword [ebp - 0x10], esi
mov esi, 0x1000
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40c3ee
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40c3e7
cmp dword [ebx + 4], 2
jne 0x40c3e7
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x40c406
Capabilities:
Create service
Modify service
Persist via windows service
Query service configuration
Query service status

Disassembly:
push ebp
sub esp, 0x110
lea ebp, [esp - 4]
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0x110], eax
push 0x3c
mov eax, 0x44170f
call fcn.0042baa9
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [0x4c64c0]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40c5c5
mov esi, 0x444f68
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00408331
mov eax, dword [eax]
pop ecx
pop ecx
push 0xf01ff
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004012b7
cmp edi, ebx
je 0x40c4da
mov esi, 0x1000
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40c4c3
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40c4ba
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 2
je 0x40c4ba
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1c]
push eax
push 0x24
lea eax, [ebp - 0x48]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
jmp 0x40c5b7
push 0x10c
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0042bc20
add esp, 0xc
mov edi, 0x10d
push edi
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.__service
lea eax, [ebp]
push edi
push eax
call fcn.0042e818
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00408331
mov edi, eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00408331
add esp, 0x1c
mov ecx, dword [edi]
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004012b7
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
cmp edi, ebx
jne 0x40c579
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40c5c5
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00408331
pop ecx
pop ecx
xor esi, esi
inc esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00402dff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], eax
call fcn.004012b7
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.0042ba9a
add ebp, 0x114
leave
ret
Function at 0x40d9a1
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push 0x103
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.0042bc20
lea eax, [ebp - 0x7c]
push 0x104
push eax
call fcn.0040c749
add esp, 0x14
test eax, eax
je 0x40da12
lea eax, [ebp - 0x80]
push 0x445540
push eax
call fcn.00408331
pop ecx
pop ecx
push dword [eax]
push 0x4c7188
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp + 0x88]
xor ecx, ebp
call fcn.0042ba9a
add ebp, 0x8c
leave
ret