joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52eed0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x26
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x52ef1c
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x52ef1c
mov ecx, dword [ebp + 8]
push dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
test esi, esi
pop esi
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x52ef30
Capabilities:
Check if file exists
Create directory
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x52efba
push edi
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x52efba
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005746e6
push str.Canon_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00574a48
push str.InstTemp_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00574a48
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
add esp, 0x24
push eax
call ebx
push str.Canon_
push 0x104
push edi
mov esi, eax
call fcn.00574a48
add esp, 0xc
test esi, esi
jne 0x52f05c
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x52f03c
push 0
push edi
call esi
push str.InstTemp_
push 0x104
push edi
call fcn.00574a48
add esp, 0xc
push edi
call ebx
test eax, eax
jne 0x52f06f
push eax
push edi
call esi
jmp 0x52f06f
push str.InstTemp_
push 0x104
push edi
call fcn.00574a48
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x535d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae530
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
xor eax, eax
push eax
push 0x5c6930
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004035d0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x5c6930
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004035d0
push 0x30
push 0x400
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x535e1e
mov ebx, dword [ebx]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
cmovae edx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x535e3f
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x535e47
mov edi, dword [edi]
push ebx
push 0x400
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040aa10
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x535e9c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x535e92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x535f14
push edx
push ecx
call fcn.0056deb6
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x535ea4
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00574f99
mov edx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
cmp edx, 8
jb 0x535ef5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x535eeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x535f19
push edx
push ecx
call fcn.0056deb6
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
call fcn.00574908
int3
Function at 0x535f20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae578
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
xor eax, eax
push eax
push 0x5c6930
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004035d0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x5c6930
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004035d0
push 0x30
push 0x400
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x535fbe
mov ebx, dword [ebx]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
cmovae edx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x535fdf
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x535fe7
mov esi, dword [esi]
push ebx
push 0x400
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040aa10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x536040
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x536036
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5360e0
push edx
push ecx
call fcn.0056deb6
add esp, 8
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.005355a0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x54]
cmp esi, dword [ebp - 0x50]
je 0x536086
nop dword [eax]
mov eax, dword [edi + 4]
push esi
cmp dword [edi + 8], eax
je 0x536076
mov ecx, eax
call fcn.00402f40
add dword [edi + 4], 0x18
jmp 0x53607e
push eax
mov ecx, edi
call fcn.00478930
add esi, 0x18
cmp esi, dword [ebp - 0x50]
jne 0x536060
lea ecx, [ebp - 0x54]
call fcn.0044ffc0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5360c4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5360ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5360e5
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
call fcn.00574908
int3
Function at 0x5360f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x29]
mov byte [ebp - 0x29], 0
push eax
push 0x7fff
call fcn.005362c0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x536149
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x536151
mov esi, dword [esi]
push edi
mov edi, dword [ebp - 0x40]
push 0x7fff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x536262
cmp word [edi], 0
mov dword [ebp - 0x30], 0
je 0x53625b
mov esi, edi
nop dword [eax]
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5361a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004035d0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x5361ea
movups xmm0, xmmword [ebp - 0x28]
xor edx, edx
mov word [ebp - 0x28], dx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
mov eax, 7
add dword [ecx + 4], 0x18
jmp 0x5361f7
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.00404650
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x536232
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x536228
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5362ae
push edx
push ecx
call fcn.0056deb6
add esp, 8
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x536235
mov eax, dword [ebp - 0x30]
sub esi, ecx
sar esi, 1
inc eax
add eax, esi
cmp word [edi + eax*2], 0
mov dword [ebp - 0x30], eax
lea esi, [edi + eax*2]
jne 0x536180
mov esi, 1
jmp 0x536264
xor esi, esi
test edi, edi
je 0x536291
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x536287
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5362ae
push ecx
push edi
call fcn.0056deb6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
int3
Function at 0x536710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae636
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
test esi, esi
jne 0x53674e
lea eax, [ecx + 0x57]
jmp 0x53694f
push str.GetMonitorFile___Start
call fcn.0054c5b0
add esp, 4
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x53676c
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x2f
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x230]
push str.SystemCurrentControlSetControlPrintMonitors
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004035d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
cmp ecx, edx
jae 0x5367d5
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [eax + ecx*2], 0x5c
jmp 0x5367f0
push 0x5c
mov byte [ebp - 0x238], 0
push dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0041b230
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5367f5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.0040dc80
xor esi, esi
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x234], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x5368f8
mov esi, dword [ebp - 0x234]
mov dword [ebp - 0x238], esi
test edi, edi
jne 0x5368f8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x410
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
push str.Driver
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x5368f8
cmp dword [ebp - 0x23c], 1
je 0x5368ae
lea edi, [eax + 0xd]
jmp 0x5368f8
xor edi, edi
test edi, edi
jne 0x5368f8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5368c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004035d0
sub esp, 8
mov ecx, ebx
call fcn.0053ad10
cmp eax, 0xffffffff
je 0x5368f8
inc eax
mov ecx, ebx
push eax
push 0
call fcn.004874a0
push edi
push str.GetMonitorFile___End__d_
call fcn.0054c5b0
add esp, 8
lea ecx, [ebp - 0x238]
call fcn.00536680
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x53694d
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x536943
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53696b
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
int3
Function at 0x543030
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.DoGetDriverSetSize_Start
mov dword [ebp - 0x894], edx
mov esi, ecx
mov dword [ebp - 0x890], eax
call fcn.0054c5b0
add esp, 4
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x878], eax
xor edi, edi
mov dword [ebp - 0x88c], ebx
lea eax, [ebp - 0x624]
mov dword [ebp - 0x880], ebx
push 0x208
push edi
push eax
mov dword [ebp - 0x87c], ebx
mov dword [ebp - 0x888], ebx
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x208
push edi
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x208
push edi
push eax
call fcn.00571c00
add esp, 0xc
test esi, esi
je 0x543277
push 0x5c6930
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x543277
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x214]
push eax
push str._s.
push 0x104
push eax
call fcn.0041e030
add esp, 0x10
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x884], esi
cmp esi, 0xffffffff
je 0x543277
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop word [eax + eax]
test byte [ebp - 0x874], 0x10
jne 0x5431ff
push 0x5cafc8
lea eax, [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x5431ff
push 0x5cafcc
lea eax, [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x5431ff
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push 0x5c70f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x88c]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoW]
mov ebx, eax
test ebx, ebx
jne 0x54321a
mov eax, dword [ebp - 0x878]
add eax, dword [ebp - 0x87c]
add edi, dword [ebp - 0x880]
mov dword [ebp - 0x878], eax
lea eax, [ebp - 0x874]
push eax
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x543160
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x884]
cmp eax, 0x12
mov ecx, 0x57
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x54327c
mov ecx, dword [ebp - 0x890]
test ecx, ecx
je 0x54325b
mov eax, dword [ebp - 0x878]
push eax
push str.DoGetDriverSetSize_End__d
mov dword [ecx], eax
call fcn.0054c5b0
add esp, 8
mov eax, dword [ebp - 0x894]
test eax, eax
je 0x54327c
push edi
push str.DoGetDriverSetSize_End__d
mov dword [eax], edi
call fcn.0054c5b0
add esp, 8
jmp 0x54327c
mov ebx, 0x57
push str.DoGetDriverSetSize_End
call fcn.0054c5b0
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x54acc0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af9cb
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0xa54], 7
push eax
xor edi, edi
mov word [ebp - 0xa68], ax
push 0x5c6930
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa58], edi
call fcn.004035d0
xor eax, eax
mov dword [ebp - 4], edi
push eax
push 0x5c6930
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa40], edi
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
call fcn.004035d0
test esi, esi
jne 0x54ad55
lea edi, [esi + 0x57]
jmp 0x54ae47
push 0x410
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push esi
lea eax, [ebp - 0x628]
push 0x208
push eax
call fcn.005746e6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x628]
add esp, 0x18
xor esi, esi
push eax
call ebx
test eax, eax
je 0x54ae47
nop word [eax + eax]
cmp word [ebp + esi*2 - 0x628], 0x5c
jne 0x54ae35
push 0x410
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xa38]
push 0x208
push eax
call fcn.0057f4bc
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005746e6
add esp, 0x34
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x54ae35
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, 0x52
cmove edi, eax
lea eax, [ebp - 0x628]
inc esi
push eax
call ebx
cmp esi, eax
jne 0x54ada0
mov edx, dword [ebp - 0xa3c]
xor ebx, ebx
test edi, edi
sete bl
cmp edx, 8
jb 0x54ae8a
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54ae80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54aee4
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0xa54]
cmp edx, 8
jb 0x54aec6
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54aebc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54aee9
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
call fcn.00574908
int3
Function at 0x54ba70
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push esi
push eax
push ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x54bb43
cmp dword [ebp - 0x1c], 1
je 0x54bb5b
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x54bb43
push edi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov edi, 0xfffffc18
nop dword [eax]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x54bb04
cmp dword [ebp - 0x1c], 1
je 0x54bb2e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
inc ebx
sub edi, 0x3e8
add eax, 0x7530
jne 0x54bad0
jmp 0x54bb0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x1c], 1
je 0x54bb2e
test esi, esi
jne 0x54bb2e
pop edi
pop esi
mov eax, 0x5b4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8

Function at 0x54bb70
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push esi
push eax
push ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x54bc3b
cmp dword [ebp - 0x1c], 4
je 0x54bc53
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x54bc3b
push edi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov edi, 0xfffffc18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x54bbfc
cmp dword [ebp - 0x1c], 4
je 0x54bc26
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
inc ebx
sub edi, 0x3e8
add eax, 0x7530
jne 0x54bbc8
jmp 0x54bc04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x1c], 4
je 0x54bc26
test esi, esi
jne 0x54bc26
pop edi
pop esi
mov eax, 0x5b4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x54be30
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afb10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x608554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebx], 0
mov dword [eax], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x54beed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xea
jne 0x54beef
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0055074c
mov edi, eax
add esp, 4
test edi, edi
je 0x54bf28
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x54bf01
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebx], edi
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
push edi
mov esi, eax
call fcn.00550747
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret