joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58a110
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6d2240]
je 0x58a12b
inc edi
cmp edi, 0x17
jb 0x58a11c
cmp edi, 0x17
jae 0x58a2ab
push ebp
push 3
call fcn.0059a0f4
cmp eax, 1
pop ecx
je 0x58a277
push 3
call fcn.0059a0f4
test eax, eax
pop ecx
jne 0x58a15f
cmp dword [0x6d1a30], 1
je 0x58a277
cmp ebx, 0xfc
je 0x58a2aa
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6e5080
push ebp
call fcn.0058742d
add esp, 0xc
test eax, eax
je 0x58a195
push esi
push esi
push esi
push esi
push esi
call fcn.0057d4d4
add esp, 0x14
push 0x104
mov esi, 0x6e5099
push esi
push 0
mov byte [0x6e519d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x58a1d9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0058742d
add esp, 0xc
test eax, eax
je 0x58a1d9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0057d4d4
add esp, 0x14
push esi
call fcn.00578a50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x58a21e
push esi
call fcn.00578a50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6e5394
push 0x656584
sub ecx, eax
push ecx
push eax
call fcn.005937f6
add esp, 0x14
test eax, eax
je 0x58a21e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0057d4d4
add esp, 0x14
jmp 0x58a220
xor esi, esi
push 0x630e28
push ebx
push ebp
call fcn.00593785
add esp, 0xc
test eax, eax
je 0x58a240
push esi
push esi
push esi
push esi
push esi
call fcn.0057d4d4
add esp, 0x14
push dword [edi*8 + 0x6d2244]
push ebx
push ebp
call fcn.00593785
add esp, 0xc
test eax, eax
je 0x58a262
push esi
push esi
push esi
push esi
push esi
call fcn.0057d4d4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00599f37
add esp, 0xc
jmp 0x58a2aa
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x58a2aa
cmp ebp, 0xffffffff
je 0x58a2aa
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6d2244]
push dword [esi]
call fcn.00578a50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x599f37
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00588377
xor ebx, ebx
cmp dword [0x6e566c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x59a00d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x59a0ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x59a0ed
push eax
call fcn.00588309
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6e566c], eax
call esi
push eax
call fcn.00588309
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6e5670], eax
call esi
push eax
call fcn.00588309
mov dword [0x6e5674], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00582baa
test eax, eax
pop ecx
pop ecx
je 0x599fdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0057d4d4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x59a00d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00588309
cmp eax, ebx
pop ecx
mov dword [0x6e567c], eax
je 0x59a00d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00588309
pop ecx
mov dword [0x6e5678], eax
mov eax, dword [0x6e5678]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x59a092
cmp dword [0x6e567c], ecx
je 0x59a092
push eax
call fcn.00588380
push dword [0x6e567c]
mov esi, eax
call fcn.00588380
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x59a092
cmp edi, ebx
je 0x59a092
call esi
cmp eax, ebx
je 0x59a05f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x59a05f
test byte [ebp - 0x18], 1
jne 0x59a092
lea eax, [ebp - 0x10]
push eax
call fcn.00582c59
test eax, eax
pop ecx
je 0x59a07a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0057d4d4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x59a089
or dword [ebp + 0x10], 0x200000
jmp 0x59a0cd
or dword [ebp + 0x10], 0x40000
jmp 0x59a0cd
mov eax, dword [0x6e5670]
cmp eax, dword [ebp - 8]
je 0x59a0cd
push eax
call fcn.00588380
cmp eax, ebx
pop ecx
je 0x59a0cd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x59a0cd
mov eax, dword [0x6e5674]
cmp eax, dword [ebp - 8]
je 0x59a0cd
push eax
call fcn.00588380
cmp eax, ebx
pop ecx
je 0x59a0cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6e566c]
call fcn.00588380
cmp eax, ebx
pop ecx
je 0x59a0ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x59a0ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a52d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
push str.computeGenericCrc32
lea ecx, [esp + 0x10]
call fcn.00567f27
cmp byte [esp + 0x24], 0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea eax, [ecx + edi]
je 0x5a5329
cmp ecx, eax
mov ebx, dword [esp + 0x14]
je 0x5a53a9
mov edx, dword [esp + 0x20]
movzx esi, byte [ecx]
movzx edi, bl
xor esi, edi
shr ebx, 8
xor ebx, dword [edx + esi*4]
add ecx, 1
cmp ecx, eax
jne 0x5a5304
lea ecx, [esp + 0xc]
call fcn.00566b7e
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, edi
and esi, 0xfffffffc
add esi, ecx
cmp ecx, esi
not eax
je 0x5a5381
mov edi, edi
xor eax, dword [ecx]
add ecx, 4
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
cmp ecx, esi
jne 0x5a5340
and edi, 3
add edi, ecx
mov esi, edi
cmp ecx, esi
je 0x5a53a5
lea esp, [esp]
movzx edi, byte [ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edx + edi*4]
add ecx, 1
cmp ecx, esi
jne 0x5a5390
not eax
mov ebx, eax
lea ecx, [esp + 0xc]
call fcn.00566b7e
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x5a53c0
Capabilities:
Hash data with crc32

Disassembly:
push ecx
push esi
push str.computeCrc32
lea ecx, [esp + 8]
call fcn.00567f27
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
jne 0x5a5405
push 0
push 0x6d32f8
push eax
push ecx
push edx
call fcn.005a52d0
add esp, 0x14
lea ecx, [esp + 4]
mov esi, eax
call fcn.00566b7e
mov eax, esi
pop esi
pop ecx
ret
push 0x6d32f8
push eax
push ecx
push edx
call fcn.005acab8
add esp, 0x10
lea ecx, [esp + 4]
mov esi, eax
call fcn.00566b7e
mov eax, esi
pop esi
pop ecx
ret
Function at 0x5acab8
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, ecx
xor eax, eax
shr ecx, 2
je 0x5acafc
xor edx, dword [edi]
add edi, 4
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
dec ecx
jne 0x5acad4
mov ecx, ebx
and ecx, 3
je 0x5acb11
xor dl, byte [edi]
inc edi
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
dec ecx
jne 0x5acb03
pop ebx
pop esi
pop edi
mov eax, edx
ret

Function at 0x5acb17
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x5c7cdc
Capabilities:
Get disk information

Disassembly:
push 0x60
mov eax, 0x61ecdb
call fcn.005793f3
push str.addDummyNT4CDAdapters
push dword [0x6d3e5c]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x38]
call fcn.00567f08
lea eax, [ebp - 0x4c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.005e6f9c
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
xor edi, edi
call fcn.004285cf
test eax, eax
jbe 0x5c7e36
push edi
lea ecx, [ebp - 0x4c]
call fcn.0047a657
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005c762b
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
jae 0x5c7d48
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5c7e16
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x6c]
push str.._
push eax
call fcn.0042dbb3
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00414d7e
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00414e93
mov eax, dword [ebp - 0x18]
dec eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.005c729a
cmp byte [eax], 0x5c
jne 0x5c7dcf
mov eax, dword [ebp - 0x18]
dec eax
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042c8fb
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00414d7e
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00414e93
push esi
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00414690
call fcn.005db063
add esp, 0x20
push eax
lea ecx, [ebp - 0x34]
call fcn.005c71db
cmp dword [ebp - 0x34], esi
mov byte [ebp - 4], 5
je 0x5c7e0a
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
add ecx, 4
call fcn.005c7bfb
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.005c61d5
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00414e93
lea ecx, [ebp - 0x4c]
inc edi
call fcn.004285cf
cmp edi, eax
jb 0x5c7d23
lea ecx, [ebp - 0x4c]
call fcn.00432429
lea ecx, [ebp - 0x38]
call fcn.00566b7e
call fcn.00579476
ret
Function at 0x5ce3b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6d15dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 3]
push eax
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0x41
mov byte [ebp - 7], 0x54
mov byte [ebp - 6], 0x52
mov byte [ebp - 5], 0x53
call fcn.0057bb4c
add esp, 0xc
test eax, eax
jne 0x5ce41f
push esi
call fcn.0054f6de
test al, al
pop ecx
je 0x5ce41f
xor eax, eax
inc eax
jmp 0x5ce421
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057937b
leave
ret
Function at 0x5d67f9
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x6209b2
call fcn.005793f3
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.00418815
lea eax, [ebp - 0x2c]
push eax
call fcn.005737c9
add esp, 0x20
xor ecx, ecx
cmp dword [edi + 0x18], 8
mov dword [ebp - 4], ecx
jb 0x5d6835
mov eax, dword [edi + 4]
jmp 0x5d6838
lea eax, [edi + 4]
push ecx
push 0x60000000
push 3
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x5d6861
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x5d6868
jmp 0x5d68cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0x10]
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x44]
call fcn.0041f041
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x34]
call fcn.0041f041
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
call fcn.0041f041
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call fcn.005c98ea
add esp, 0x18
mov ecx, eax
call fcn.0041f639
test al, al
je 0x5d68cd
push edi
mov ecx, ebx
call fcn.0051973f
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0051973f
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00418ad9
call fcn.00579476
ret 8

Function at 0x5db416
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x6e6e58
call fcn.0041c453
mov edi, eax
mov al, byte [esi + 4]
cmp al, byte [esi + 7]
jae 0x5db481
xor ebx, ebx
jmp 0x5db46b
cmp byte [esi + 6], 8
jae 0x5db465
movzx ecx, byte [esi + 6]
mov eax, dword [edi]
push ebx
push ecx
movzx ecx, byte [esi + 5]
push ecx
movzx ecx, byte [esi + 4]
push ecx
mov ecx, edi
call dword [eax + 0x14]
cmp ax, 0xffff
jne 0x5db489
mov al, byte [esi + 6]
cmp al, bl
je 0x5db465
inc al
cmp al, 8
mov byte [esi + 6], al
jb 0x5db438
inc byte [esi + 5]
mov byte [esi + 6], bl
mov al, byte [esi + 5]
cmp al, byte [esi + 8]
jb 0x5db432
inc byte [esi + 4]
mov byte [esi + 5], bl
mov al, byte [esi + 4]
cmp al, byte [esi + 7]
jb 0x5db46b
xor al, al
pop edi
pop esi
pop ebx
ret 0xc
mov al, byte [esi + 4]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov al, byte [esi + 5]
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
mov al, byte [esi + 6]
mov ecx, dword [esp + 0x18]
mov byte [ecx], al
mov al, byte [esi + 6]
cmp al, bl
jne 0x5db4d0
movzx ecx, byte [esi + 5]
mov eax, dword [edi]
push 0xe
push ebx
push ecx
movzx ecx, byte [esi + 4]
push ecx
mov ecx, edi
call dword [eax + 0x10]
test al, al
js 0x5db4cb
inc byte [esi + 5]
mov byte [esi + 6], bl
jmp 0x5db4d5
inc byte [esi + 6]
jmp 0x5db4d5
inc al
mov byte [esi + 6], al
mov al, 1
jmp 0x5db483
Function at 0x5e6f9c
Capabilities:
Get disk information

Disassembly:
push 0x50
mov eax, 0x623117
call fcn.005793f3
mov edi, dword [ebp + 8]
xor ebx, ebx
push str.getRootDirectories
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], ebx
call fcn.00567f27
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
mov byte [ebp - 4], 2
call esi
cmp eax, ebx
jmp 0x5e7000
mov eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], eax
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0047b96a
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
call esi
cmp eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
ja 0x5e6fdf
cmp eax, ebx
jne 0x5e706c
push 8
call fcn.00401012
pop ecx
mov dword [ebp - 0x38], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x5e702d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x38]
push eax
call fcn.0056d7e4
jmp 0x5e702f
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00522a78
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], str...RootDirectoryEnumerator.cpp
mov dword [ebp - 0x3c], 0x33
call fcn.0056a9e3
push 0x6856fc
lea eax, [ebp - 0x34]
push eax
call fcn.00578ed6
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], 1
jmp 0x5e70b6
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041466e
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.004360dc
mov ecx, edi
call fcn.00473570
mov eax, dword [eax + 0x14]
push ebx
push 1
lea ecx, [ebp - 0x2c]
lea esi, [esi + eax + 1]
mov byte [ebp - 4], 2
call fcn.00414e93
cmp byte [esi], bl
jne 0x5e7081
lea ecx, [ebp - 0x48]
call fcn.0047587a
lea ecx, [ebp - 0x4c]
call fcn.00566b7e
mov eax, edi
call fcn.00579476
ret
Function at 0x5e7a0f
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x6231b9
call fcn.0057938a
xor ebx, ebx
push str.make
mov dword [ebp - 0x10], ebx
push dword [0x6d4adc]
lea ecx, [ebp - 0x10]
call fcn.00567f08
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 4], ebx
lea edi, [esi + 4]
jb 0x5e7a46
mov eax, dword [edi]
jmp 0x5e7a48
mov eax, edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x5e7a6c
mov esi, dword [ebp + 8]
and dword [esi], eax
and dword [esi + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00566b7e
mov eax, esi
jmp 0x5e7aed
push ebx
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0047bd90
cmp dword [esi + 0x18], 0x10
mov byte [ebp - 4], 1
jb 0x5e7a88
mov edi, dword [edi]
push dword [ebp - 0x18]
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x5e7aab
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0047bdbf
jmp 0x5e7a5d
push 0xc
call fcn.00401012
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x5e7acb
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.005e7978
jmp 0x5e7acd
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.005e72e6
lea ecx, [ebp - 0x18]
call fcn.0047bdbf
lea ecx, [ebp - 0x10]
call fcn.00566b7e
mov eax, dword [ebp + 8]
call fcn.00579462
ret

Function at 0x5e8690
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push str.uninstall
push dword [0x6d4b14]
mov esi, ecx
lea ecx, [ebp - 8]
call fcn.00567f08
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x5e86d9
lea ecx, [ebp - 4]
call fcn.005e8608
lea ecx, [ebp - 8]
call fcn.00566b7e
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x38], 0x10
jb 0x5e86e4
mov esi, dword [esi + 0x24]
jmp 0x5e86e7
add esi, 0x24
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x5e8717
lea ecx, [ebp - 0xc]
call fcn.005e8608
lea ecx, [ebp - 4]
call fcn.005e8608
lea ecx, [ebp - 8]
call fcn.00566b7e
mov al, bl
jmp 0x5e86d5
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x5e86fb
Function at 0x5e8728
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push str.start
push dword [0x6d4b14]
mov esi, ecx
lea ecx, [ebp - 8]
call fcn.00567f08
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x5e8771
lea ecx, [ebp - 4]
call fcn.005e8608
lea ecx, [ebp - 8]
call fcn.00566b7e
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x38], 0x10
jb 0x5e877c
mov esi, dword [esi + 0x24]
jmp 0x5e877f
add esi, 0x24
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x5e879d
lea ecx, [ebp - 0xc]
call fcn.005e8608
jmp 0x5e875b
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x5e87d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x5e87d3
lea ecx, [ebp - 0xc]
call fcn.005e8608
lea ecx, [ebp - 4]
call fcn.005e8608
lea ecx, [ebp - 8]
call fcn.00566b7e
mov al, bl
jmp 0x5e876d
mov bl, 1
jmp 0x5e87b7

Function at 0x5e87d7
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push str.stop
push dword [0x6d4b14]
mov esi, ecx
lea ecx, [ebp - 8]
call fcn.00567f08
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x5e8820
lea ecx, [ebp - 4]
call fcn.005e8608
lea ecx, [ebp - 8]
call fcn.00566b7e
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x38], 0x10
jb 0x5e882b
mov esi, dword [esi + 0x24]
jmp 0x5e882e
add esi, 0x24
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x5e885e
lea ecx, [ebp - 0xc]
call fcn.005e8608
lea ecx, [ebp - 4]
call fcn.005e8608
lea ecx, [ebp - 8]
call fcn.00566b7e
mov al, bl
jmp 0x5e881c
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x5e8842
Function at 0x5e8cd1
Capabilities:
Get disk information

Disassembly:
push 0x10
mov eax, 0x6237dc
call fcn.0057938a
push str.isValidFileName
push dword [0x6d4b14]
lea ecx, [ebp - 0x10]
call fcn.00567f08
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.00571eea
add esp, 0x20
cmp dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
jne 0x5e8d2a
call fcn.00522e57
jmp 0x5e8de2
call fcn.00522e57
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
mov dword [ebp + 8], eax
jb 0x5e8d3d
mov eax, dword [eax]
push esi
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push eax
call esi
mov edi, eax
cmp edi, 3
jb 0x5e8de2
push edi
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047b8ed
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
jb 0x5e8d73
mov eax, dword [eax]
push 0
push dword [ebp - 0x1c]
lea ecx, [edi + 1]
push ecx
push eax
call esi
inc eax
cmp eax, edi
jne 0x5e8dda
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 1], 0x3a
jne 0x5e8dda
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00414e10
push esi
mov byte [esi + 3], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x5e8dda
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebp + 8]
jb 0x5e8db1
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x5e8dda
cmp dword [ebp - 0x14], 0
jne 0x5e8dda
lea ecx, [ebp - 0x1c]
call fcn.0047587a
lea ecx, [ebp - 0x10]
call fcn.00566b7e
mov al, 1
jmp 0x5e8dec
lea ecx, [ebp - 0x1c]
call fcn.0047587a
lea ecx, [ebp - 0x10]
call fcn.00566b7e
xor al, al
call fcn.00579462
ret 8
Function at 0x5e8edb
Capabilities:
Create service

Disassembly:
push 0x30
mov eax, 0x62385d
call fcn.005793f3
push str.install
push dword [0x6d4b14]
mov esi, ecx
lea ecx, [ebp - 0x38]
call fcn.00567f08
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00415967
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 4]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005e8cd1
test al, al
jne 0x5e8f43
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00414e93
lea ecx, [ebp - 0x38]
call fcn.00566b7e
xor al, al
call fcn.00579476
ret
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x5e8f7a
mov byte [ebp - 0x2d], bl
lea ecx, [ebp - 0x3c]
call fcn.005e8608
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00414e93
lea ecx, [ebp - 0x38]
call fcn.00566b7e
mov al, byte [ebp - 0x2d]
jmp 0x5e8f3d
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x5e8f86
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x38], 0x10
jb 0x5e8f91
mov eax, dword [esi + 0x24]
jmp 0x5e8f94
lea eax, [esi + 0x24]
cmp dword [esi + 0x38], 0x10
jb 0x5e8f9f
mov esi, dword [esi + 0x24]
jmp 0x5e8fa2
add esi, 0x24
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 1
push 3
push 1
push 0xf01ff
push eax
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x5e8fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x5e8fe3
lea ecx, [ebp - 0x34]
call fcn.005e8608
mov byte [ebp - 0x2d], 1
jmp 0x5e8f5a
lea ecx, [ebp - 0x34]
call fcn.005e8608
jmp 0x5e8f57

Function at 0x5ece00
Capabilities:
Get file attributes

Disassembly:
push 0x24
mov eax, 0x623d32
call fcn.005793f3
mov esi, dword [ebp + 8]
mov eax, 0x8001
push eax
push eax
lea ecx, [ebp - 0x30]
call fcn.00574672
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.005ad451
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x5ece3a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00414e93
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005746b6
mov eax, esi
call fcn.00579476
ret