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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x10008
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4992b9
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x4992ce
test eax, eax
jne 0x4992ce
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.00499230
cmp eax, 1
je 0x499268
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4992b9
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4994b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
xor edi, edi
push ebx
push esi
call fcn.00499090
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x499594
lea eax, [ebp - 0x110]
push eax
push 0x20019
push dword [ebp + 0x18]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4995bb
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4995bb
push dword [ebp + 0x18]
push dword [ebp - 0x10c]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push dword [ebp - 0x110]
call fcn.004994b0
add esp, 0x14
cmp eax, 1
jne 0x4995b3
push dword [ebp - 0x10c]
inc edi
push dword [ebp + 0x10]
push ebx
push esi
call fcn.00499090
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x499501
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x110]
jmp 0x499599
xor edi, edi
jmp 0x499599
Function at 0x499980
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x499996
mov dword [esi], 0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4999a3
mov dword [ebx], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x4999ea
lea ecx, [eax + 0x800]
push ecx
call fcn.0049da2e
mov edi, eax
add esp, 4
test edi, edi
je 0x4999ea
mov ecx, dword [ebp - 8]
push edi
push ecx
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
je 0x4999f3
push 1
push edi
call fcn.0049da37
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5069c8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x499a40
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x499a37
mov eax, dword [ecx + 8]
mov dword [esi], eax
test ebx, ebx
je 0x499a40
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ebx, edi
test ecx, ecx
je 0x499a57
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x499a61
push 0x4e4
push 0x409
push str.StringFileInfo_04x_04x_
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
lea ecx, [ebx + eax]
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x14], esi
jle 0x499ac6
mov eax, dword [ebp + 0x18]
push dword [eax + esi*8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 4], 0
je 0x499abd
mov eax, dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [eax + esi*8 + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x499a84
push 1
push edi
call fcn.0049da37
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x410
mov dword [ebp - 0x64], eax
call fcn.0049da2e
mov esi, eax
add esp, 4
test esi, esi
jne 0x499da0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret 8
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x499e18
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x499e18
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x499e18
push 1
push esi
call fcn.0049da37
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x5c]
push eax
call fcn.00499f50
add esp, 4
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499e7e
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x499e7e
push eax
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0049a660
add esp, 0xc
cmp dword [ebp - 0x60], 0x400
jb 0x499e7e
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x499e42
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
call fcn.00499ec0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
call fcn.0049da37
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret 8

Function at 0x499f50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x49a770
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
push 0
push 0
mov eax, ebx
xorps xmm0, xmm0
and eax, 4
movlpd qword [ebp - 0x50], xmm0
shl eax, 0x16
or eax, 0x20
movlpd qword [ebp - 0x48], xmm0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
movlpd qword [ebp - 0x40], xmm0
push 0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x49a839
test bl, 1
je 0x49a7f6
push 0x1d4c0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test bl, 2
je 0x49a806
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49a825
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49aae0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x49ab3d
cmp dword [ebp - 0x9c], 6
jb 0x49ab3d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x49abb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x49ac08
push 0x14
lea eax, [esi + 1]
push str.:WINDOWSSysnative_
push eax
call fcn.004d0ef7
add esp, 0xc
test eax, eax
jne 0x49ac08
lea eax, [esi + 0x15]
push eax
movsx eax, byte [esi]
push eax
lea eax, [ebp - 0x404]
push str._c:WINDOWSSystem32_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea esi, [ebp - 0x404]
push 0
push 0x4f57e8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004991c0
mov dword [ebp - 0x414], eax
test eax, eax
je 0x49ad6d
push ebx
push 0x9000
push 0
mov dword [ebp - 0x408], 0x8000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x40c], ebx
test ebx, ebx
je 0x49ad60
push dword [ebp - 0x408]
push 0xff
push ebx
call fcn.0049ef70
add ebx, dword [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x410], ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call fcn.004cb23e
mov eax, dword [ebp - 0x40c]
lea ecx, [ebp - 0x408]
add esp, 4
mov byte [eax], 0
push ecx
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x4f581c
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49ad4b
mov edi, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x408]
add eax, edi
mov dword [ebp - 0x418], eax
cmp edi, eax
jae 0x49ad49
push edi
call fcn.004d39be
lea esi, [eax + 1]
add esi, edi
push esi
call fcn.004d39be
lea ebx, [esi + 1]
add esp, 8
add ebx, eax
cmp dword [edi], 0x5c3f3f5c
jne 0x49acf6
add edi, 4
cmp dword [esi], 0x5c3f3f5c
jne 0x49ad01
add esi, 4
push edi
call fcn.004cb23e
push esi
call fcn.004cb23e
add esp, 8
cmp byte [esi], 0
push dword [ebp - 0x410]
jne 0x49ad2d
push edi
call fcn.004d38c2
add esp, 8
test eax, eax
jne 0x49ad3a
lea edi, [eax + 1]
jmp 0x49ad4b
push esi
call fcn.004d38c2
add esp, 8
test eax, eax
je 0x49ad7f
cmp byte [ebx], 0
je 0x49ad49
mov edi, ebx
cmp ebx, dword [ebp - 0x418]
jb 0x49acd2
xor edi, edi
push dword [ebp - 0x40c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
mov esp, ebp
pop ebp
ret
mov edi, 2
jmp 0x49ad4b
Function at 0x49b070
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x49b09d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x1000
push 8
mov dword [ebp - 0xc], 0
xor edi, edi
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x49b1db
lea eax, [ebp - 0x14]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49b1cb
lea eax, [ebp - 0x10]
push eax
push 0x1000
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x49b158
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49b158
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x49b1db
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x49b1cb
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x49b1cb
push esi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], edi
cmp dword [ebx], esi
jbe 0x49b1c1
lea edi, [ebx + 4]
nop dword [eax + eax]
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x49b1bc
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x49b1a0
mov edi, dword [ebp - 0x1c]
jmp 0x49b1c1
mov edi, 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x49b1f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov byte [eax], 2
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x49b226
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x1000
push 8
mov dword [ebp - 0xc], 0
xor edi, edi
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x49b393
lea eax, [ebp - 0x10]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49b383
lea eax, [ebp - 0x18]
push eax
push 0x1000
push ebx
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x49b2e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49b2e1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
add eax, 0x20
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x49b393
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x20
push eax
push ebx
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 2
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [ebp - 0x14]
test eax, eax
push dword [ebp - 0x10]
mov edx, 2
cmove ecx, edx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x49b383
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x49b383
push esi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], edi
cmp dword [ebx], esi
jbe 0x49b371
lea edi, [ebx + 4]
push dword [edi]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x49b36c
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x49b350
mov edi, dword [ebp - 0x20]
jmp 0x49b371
mov edi, 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 0x14]
pop esi
mov byte [ecx], al
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x49b400
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push SysReAllocString
mov dword [ebp - 0x90], eax
xor esi, esi
mov dword [eax], 0
call fcn.0049b3e0
add esp, 4
mov edi, eax
mov dword [ebp - 0x8c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x49b464
push eax
lea eax, [ebp - 0x84]
push str.OpenNTServiceManager_Failed:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49b53a
push 1
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x49b495
push eax
lea eax, [ebp - 0x84]
push str.OpenService_Failed:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49b533
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], esi
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x49b52c
add eax, 0x400
push eax
call fcn.0049da2e
mov edi, eax
add esp, 4
test edi, edi
je 0x49b526
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x88]
push eax
add ecx, 0x400
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x49b50b
push eax
lea eax, [ebp - 0x84]
push str.QueryServiceConfig_Failed:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49b51b
mov ecx, dword [ebp - 0x90]
mov esi, 1
mov eax, dword [edi + 4]
mov dword [ecx], eax
push 0x24
push edi
call fcn.0049da37
add esp, 8
mov edi, dword [ebp - 0x8c]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret 8

Function at 0x49b550
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push SysReAllocString
mov dword [ebp - 0x24], eax
call fcn.0049b3e0
mov esi, eax
add esp, 4
test esi, esi
je 0x49b595
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x49b5a9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret 8
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, eax
test ebx, ebx
je 0x49b5c8
mov ecx, dword [ebp - 0x24]
mov ebx, 1
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
mov esp, ebp
pop ebp
ret 8
Function at 0x49b6a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0049b9a0
test eax, eax
je 0x49b6bb
mov eax, 1
pop esi
pop ebp
ret 0x18
push edi
push 0xf003f
call fcn.0049b3e0
add esp, 4
mov edi, eax
push 0
test edi, edi
jne 0x49b6e6
push esi
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
push 0
push dword [ebp + 0x1c]
push 0
push 0
push dword [ebp + 0x10]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push 0xf01ff
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x49b72d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push esi
push str.Couldnt_create_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x18

Function at 0x49bb20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
call fcn.0049b3e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49bb5a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret 4
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x49bb8a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
test edi, edi
jne 0x49bba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49bbaa
mov edi, 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
mov esp, ebp
pop ebp
ret 4

Function at 0x49bcf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49bd1b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x51a040]
sub esi, 1
jne 0x49bd01
pop esi
pop ebp
ret 0xc