joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54bd71
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
push 0x396
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x56f8c0
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 0x396
mov dword [esp + 0x2c], 0x9e7fa5ff
call fcn.00507c0d
push 0x396
push 0
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x24], 1
call fcn.0050be90
add esp, 0x10
mov dword [esp + 0x38], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x395
mov ecx, edi
mov dword [esp + 0x10], 1
call fcn.004eca80
mov esi, dword [edi]
lea ecx, [esp + 0x14]
push 0x395
call fcn.004ecae0
push eax
push esi
call fcn.0050b730
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4ec8bb
push eax
call fcn.005074d4
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
add esp, 0x30
ret 4

Function at 0x4eebe0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x4eec92
cmp dword [esi + 0x7c], ebx
jbe 0x4eec92
push ebp
mov ebp, 0xffffff5c
lea ebx, [esi + 0xa4]
sub ebp, esi
lea ebx, [ebx]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
and eax, 0xff
mov edi, dword [esi + 0x100d8]
shr ecx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov dword [esi + 0x100d0], eax
movzx eax, al
add eax, dword [esi + 0x100d4]
imul ecx, eax, 0x8088405
mov eax, dword [esi + 0x100d8]
inc ecx
mov dword [esi + 0x100d4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [edx + ecx*4]
mov dword [esi + 0x100d8], eax
mov eax, edi
xor eax, 1
imul eax, edi
shr eax, 8
xor byte [ebx - 1], al
lea eax, [ebx + ebp]
cmp eax, dword [esi + 0x7c]
jb 0x4eec10
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, edi
je 0x4eecb2
or ebx, 0xffffffff
add dword [esi + 0x100c0], edi
mov eax, ebx
mov ecx, dword [esi + 0x48]
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x7c], 0
pop esi
pop ebx
ret
Function at 0x4f0580
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x124], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x138]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x10], edx
mov ebp, 3
mov dword [esp + 0x20], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 5
mov eax, 0x20019
jne 0x4f05cd
cmp dword [esp + 0x24], 0
je 0x4f05d2
mov eax, 0x20219
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push str.SoftwareMcAfeeSystemCore
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x14]
je 0x4f06d7
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20c
push eax
push edi
lea eax, [esp + 0x20]
push eax
push 0
push str.szInstallDir32
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
jne 0x4f06d0
test edi, edi
je 0x4f06d0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0634
push ebx
sub ecx, edx
mov ebx, 0x105
sar ecx, 1
mov eax, ebx
sub eax, ecx
je 0x4f0682
mov ecx, edi
xor eax, eax
mov word [edi + 0x20a], ax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0660
sub ecx, edx
mov eax, ebx
sar ecx, 1
sub eax, ecx
push eax
push 0x56a8e4
push edi
call fcn.005108e1
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x4f06cf
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0690
sub ecx, edx
mov eax, ebx
sar ecx, 1
sub eax, ecx
je 0x4f06cf
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f06b0
sub ecx, edx
sar ecx, 1
sub ebx, ecx
push ebx
push dword [esp + 0x14]
push edi
call fcn.005108e1
add esp, 0xc
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x130]
xor eax, eax
pop edi
test ebp, ebp
pop esi
sete al
pop ebp
xor ecx, esp
call fcn.00506c7d
add esp, 0x128
ret
Function at 0x4f29c0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
mov dword [esi + 0x8c], 0
lea eax, [esi + 0x2c]
push eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0xbb67ae85
mov dword [esi + 0xc], 0x3c6ef372
mov dword [esi + 0x10], 0xa54ff53a
mov dword [esi + 0x14], 0x510e527f
mov dword [esi + 0x18], 0x9b05688c
mov dword [esi + 0x1c], 0x1f83d9ab
mov dword [esi + 0x20], 0x5be0cd19
call fcn.0050be90
xor eax, eax
add esp, 0xc
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
pop esi
ret
Function at 0x4f2d80
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x12c
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x140]
inc edx
mov eax, dword [ebx + 4]
lea esi, [esp + 0x38]
mov dword [esp + 0x34], eax
mov edi, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
jmp 0x4f2df0
movzx ecx, byte [edx - 1]
lea esi, [esi + 4]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi - 4], ecx
dec edi
jne 0x4f2df0
lea eax, [esp + 0x3c]
lea ebp, [edi + 0x30]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
dec ebp
jne 0x4f2e21
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov ebx, dword [esp + 0x1c]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [esp + 0x18]
xor esi, eax
mov eax, ebx
mov edx, ebp
ror eax, 6
xor esi, eax
ror edx, 0xd
mov eax, dword [esp + 0x10]
and eax, ebx
xor ecx, eax
mov eax, ebp
rol eax, 0xa
add esi, ecx
add esi, dword [edi + 0x570030]
xor edx, eax
add esi, dword [esp + edi + 0x38]
mov eax, ebp
add esi, dword [esp + 0x28]
add edi, 4
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
and eax, ebp
xor ecx, ebp
and ecx, dword [esp + 0x14]
xor ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
add edx, ecx
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea ebp, [edx + esi]
mov eax, dword [esp + 0x14]
add ebx, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
cmp edi, 0x100
jl 0x4f2e63
mov eax, dword [esp + 0x34]
add eax, ebp
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
add dword [ebx + 8], ecx
mov ecx, dword [esp + 0x12c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 8]
add dword [ebx + 0xc], eax
mov eax, dword [esp + 0x18]
add dword [ebx + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [ebx + 0x14], eax
mov eax, dword [esp + 4]
add dword [ebx + 0x18], eax
mov eax, dword [esp + 0xc]
add dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x1c]
add dword [ebx + 0x20], eax
pop ebx
xor ecx, esp
call fcn.00506c7d
add esp, 0x12c
ret 4
Function at 0x4f3050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
push 0xf8
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], 0
call fcn.00483d00
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], esi
test eax, eax
je 0x4f30b9
push eax
call fcn.005074d4
add esp, 4
cmp esi, 0xffffffff
je 0x4f31b0
push ecx
lea ecx, [esp + 0x28]
call fcn.004f3420
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x57683c
call fcn.004f29c0
mov ebx, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0xc], 0
nop
push 0
lea eax, [esp + 0x10]
push eax
push 0xa000
push ebx
push esi
call edi
test eax, eax
je 0x4f3120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4f3165
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.004f2a50
cmp dword [esp + 0xc], 0
jne 0x4f30f0
jmp 0x4f3165
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f3165
test dword [eax + 0x1c], 0x100
je 0x4f3165
cmp byte [eax + 0x19], 2
jb 0x4f3165
push 2
push dword [eax + 0x14]
mov edx, 0x570020
mov ecx, 0xa
push dword [eax + 0x10]
call fcn.004f0d40
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.004f2f60
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x9c]
push dword [esp + 0x14]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4f3197
push ebx
call fcn.005074d4
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x596f88]
cmp ecx, 0x596f88
je 0x4f31e7
test dword [ecx + 0x1c], 0x100
je 0x4f31e7
cmp byte [ecx + 0x19], 2
jb 0x4f31e7
push 2
push dword [ecx + 0x14]
mov edx, 0x570020
push dword [ecx + 0x10]
mov ecx, 0xb
call fcn.004f0d40
add esp, 0xc
mov ecx, dword [esp + 0xc4]
mov eax, 2
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
Function at 0x4f3b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c361
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0
xor eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], 1
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
push 0x56a718
mov word [esi], ax
call fcn.0047c530
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
call fcn.004f38f0
test eax, eax
jne 0x4f3be9
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4f3bb8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
test eax, eax
js 0x4f3be9
add eax, 0x41
mov ecx, esi
movzx eax, ax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push 1
push eax
call fcn.00482560
push 2
push 0x576840
mov ecx, esi
call fcn.00482560
cmp dword [esp + 0x28], 8
jb 0x4f3c01
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4f3c01
push ecx
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00506c7d
add esp, 0x34
ret

Function at 0x4f3c20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x54c39b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x24]
mov dword [esp + 8], 0
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4f3cf3
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
cmp word [esp + 0x24], ax
jne 0x4f3c94
xor ecx, ecx
jmp 0x4f3caf
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
jmp 0x4f3ca0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3ca0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0047c530
push 0x5c
lea edx, [esp + 0x10]
mov dword [esp + 0x23c], 0
mov ecx, esi
call fcn.004ae950
add esp, 4
cmp dword [esp + 0x20], 8
jb 0x4f3d13
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4f3d13
push eax
call fcn.005074d4
add esp, 4
jmp 0x4f3d13
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x56a718
mov word [esi], ax
call fcn.0047c530
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00506c7d
add esp, 0x234
ret

Function at 0x4f3fa0
Capabilities:
Get file attributes

Disassembly:
sub esp, 8
push esi
push 0x104
push ecx
lea ecx, [esp + 0xc]
call fcn.00483d00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 8]
mov esi, eax
test ecx, ecx
je 0x4f3fce
push ecx
call fcn.005074d4
add esp, 4
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
add esp, 8
ret
Function at 0x4f4090
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x4f4107
xor eax, eax
mov word [esi], ax
cmp word [esp + 8], ax
jne 0x4f40e7
xor ecx, ecx
lea eax, [esp + 8]
push ecx
push eax
jmp 0x4f4112
lea ecx, [esp + 8]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f40f0
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
jmp 0x4f4112
xor eax, eax
push eax
mov word [esi], ax
push 0x56a718
mov ecx, esi
call fcn.0047c530
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00506c7d
add esp, 0x210
ret

Function at 0x4f4140
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push esi
push edi
push 0x104
mov edi, ecx
lea ecx, [esp + 0x14]
push edx
call fcn.00483d00
push 0x104
push edi
lea ecx, [esp + 0x10]
mov esi, dword [eax]
call fcn.00483d00
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test ecx, ecx
je 0x4f4183
push ecx
call fcn.005074d4
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f4194
push eax
call fcn.005074d4
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
add esp, 0x10
ret

Function at 0x4f41b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 8], eax
mov edx, ecx
test edx, edx
je 0x4f424e
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f41d0
sub ecx, esi
sar ecx, 1
pop esi
cmp ecx, 3
jb 0x4f424e
movzx eax, word [edx + 2]
mov cx, word [edx]
mov word [esp + 2], ax
movzx eax, word [edx + 4]
mov word [esp + 4], ax
xor eax, eax
mov word [esp + 6], ax
movzx eax, cx
push eax
mov word [esp + 4], cx
call fcn.0050a7d8
add esp, 4
test eax, eax
je 0x4f424e
cmp word [esp + 2], 0x3a
jne 0x4f424e
cmp word [esp + 4], 0x5c
jne 0x4f424e
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4f423a
cmp eax, 5
jne 0x4f424e
mov eax, 1
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00506c7d
add esp, 0xc
ret
mov ecx, dword [esp + 8]
xor eax, eax
xor ecx, esp
call fcn.00506c7d
add esp, 0xc
ret
Function at 0x4f4510
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4f4579
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f4572
test dword [eax + 0x1c], 0x100
je 0x4f4572
cmp byte [eax + 0x19], 2
jb 0x4f4572
push esi
push dword [eax + 0x14]
mov edx, 0x570130
mov ecx, 0xc
push dword [eax + 0x10]
call fcn.004f0d40
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x596f88]
cmp ecx, 0x596f88
je 0x4f45ae
test dword [ecx + 0x1c], 0x100
je 0x4f45ae
cmp byte [ecx + 0x19], 6
jb 0x4f45ae
push dword [ecx + 0x14]
mov edx, 0x570130
push dword [ecx + 0x10]
mov ecx, 0xd
call fcn.004f0d20
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f45c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4f4629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f4622
test dword [eax + 0x1c], 0x100
je 0x4f4622
cmp byte [eax + 0x19], 2
jb 0x4f4622
push esi
push dword [eax + 0x14]
mov edx, 0x570130
mov ecx, 0xe
push dword [eax + 0x10]
call fcn.004f0d40
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x596f88]
cmp ecx, 0x596f88
je 0x4f465e
test dword [ecx + 0x1c], 0x100
je 0x4f465e
cmp byte [ecx + 0x19], 6
jb 0x4f465e
push dword [ecx + 0x14]
mov edx, 0x570130
push dword [ecx + 0x10]
mov ecx, 0xf
call fcn.004f0d20
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f66b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54c5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
mov dword [esp + 0x44], esi
push eax
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4f671a
xor al, al
jmp 0x4f67b9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f674f
push eax
call fcn.004ea3a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
push eax
push esi
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4f674b
xor bl, bl
jmp 0x4f67aa
mov eax, dword [esp + 0x10]
mov bl, 1
test eax, eax
je 0x4f67aa
shr eax, 1
je 0x4f67aa
cmp word [esi + eax*2 - 2], 0
jne 0x4f6762
dec eax
xor ecx, ecx
mov dword [esp + 0x30], 7
push eax
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push esi
mov dword [esp + 0x34], 0
call fcn.0047c530
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.0047b0d0
cmp dword [esp + 0x30], 8
jb 0x4f67aa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f67aa
push eax
call fcn.005074d4
add esp, 4
test esi, esi
je 0x4f67b7
push esi
call fcn.005074d4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00506c7d
add esp, 0x38
ret
Function at 0x4f7820
Capabilities:
Acquire debug privileges

Disassembly:
push esi
mov esi, ecx
mov edx, str.SeTcbPrivilege
mov eax, esi
lea ebx, [ebx]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4f7856
test cx, cx
je 0x4f7852
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4f7856
add eax, 4
add edx, 4
test cx, cx
jne 0x4f7830
xor eax, eax
jmp 0x4f785b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f7866
mov eax, 0xa7f4022b
pop esi
ret
mov ecx, str.SeBackupPrivilege
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f7896
test dx, dx
je 0x4f7892
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f7896
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f7870
xor eax, eax
jmp 0x4f789b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f785f
mov ecx, str.SeRestorePrivilege
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f78cc
test dx, dx
je 0x4f78c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f78cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f78a6
xor eax, eax
jmp 0x4f78d1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f78dc
mov eax, 0xa7f4022d
pop esi
ret
mov ecx, str.SeTakeOwnershipPrivilege
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f7909
test dx, dx
je 0x4f7905
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f7909
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f78e3
xor eax, eax
jmp 0x4f790e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f7919
mov eax, 0xa7f4022e
pop esi
ret
mov eax, str.SeDebugPrivilege
mov edi, edi
mov cx, word [esi]
cmp cx, word [eax]
jne 0x4f7954
test cx, cx
je 0x4f7942
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x4f7954
add esi, 4
add eax, 4
test cx, cx
jne 0x4f7920
xor eax, eax
neg eax
pop esi
sbb eax, eax
and eax, 0x580bfdcc
add eax, 0xa7f40234
ret
sbb eax, eax
or eax, 1
neg eax
pop esi
sbb eax, eax
and eax, 0x580bfdcc
add eax, 0xa7f40234
ret
Function at 0x4fd320
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x54cc50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0
push eax
call fcn.004fcf90
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x20], esp
push 0xffffffffffffffff
push eax
push dword [esp + 0x4c]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.0047c410
sub esp, 0xc
mov byte [esp + 0x44], 1
lea eax, [esp + 0x30]
mov ecx, esp
push eax
call fcn.0048e580
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x44], 0
call fcn.00490480
mov esi, dword [esp + 0x30]
add esp, 0x24
test esi, esi
je 0x4fd3dc
push dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004802e0
push esi
call fcn.005074d4
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 8