joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425260
Capabilities:
Delete directory

Disassembly:
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esi + 0x418]
test eax, eax
je 0x425370
mov ecx, dword [esi + 0x41c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x425370
mov eax, dword [esi + 0x418]
test eax, eax
je 0x4252ca
mov ecx, dword [esi + 0x41c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4252cf
call fcn.00440a4f
mov eax, dword [esi + 0x418]
add eax, ebx
cmp dword [eax + 0x18], 0x10
jb 0x4252e2
mov eax, dword [eax + 4]
jmp 0x4252e5
add eax, 4
push 0x477810
push eax
call fcn.0042e5f0
add esp, 8
test al, al
je 0x425369
mov eax, dword [esi + 0x418]
test eax, eax
je 0x42531c
mov ecx, dword [esi + 0x41c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, 1
mov ecx, edi
test ecx, ecx
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
jge 0x425333
fadd qword [0x464180]
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x425345
fadd qword [0x464180]
fdivp st(1)
fmul qword [0x464178]
call fcn.00443070
mov edx, 0x1e
sub edx, eax
push edx
mov ecx, esi
call fcn.00424ca0
add ebx, 0x1c
jmp 0x425270
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
xor edi, edi
xor ebx, ebx
jmp 0x425380
mov eax, dword [esi + 0x438]
test eax, eax
je 0x425412
mov ecx, dword [esi + 0x43c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x425412
mov eax, dword [esi + 0x438]
test eax, eax
je 0x4253d6
mov ecx, dword [esi + 0x43c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4253db
call fcn.00440a4f
mov eax, dword [esi + 0x438]
add eax, ebx
cmp dword [eax + 0x18], 0x10
jb 0x4253ee
mov eax, dword [eax + 4]
jmp 0x4253f1
add eax, 4
push 0x477810
push eax
call fcn.0042e650
add esp, 8
test al, al
je 0x425369
add edi, 1
add ebx, 0x1c
jmp 0x425380
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor edi, edi
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esi + 0x428]
test eax, eax
je 0x4254a4
mov ecx, dword [esi + 0x42c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4254a4
mov eax, dword [esi + 0x428]
test eax, eax
je 0x425472
mov ecx, dword [esi + 0x42c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x425477
call fcn.00440a4f
mov eax, dword [esi + 0x428]
add eax, ebx
cmp dword [eax + 0x18], 0x10
jb 0x425493
mov eax, dword [eax + 4]
push eax
call ebp
add edi, 1
add ebx, 0x1c
jmp 0x425420
add eax, 4
push eax
call ebp
add edi, 1
add ebx, 0x1c
jmp 0x425420
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x428630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45fb18
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax], vtable.CUninstLog.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x42d1b0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jbe 0x42d22f
push edi
push esi
call fcn.00442964
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x42d225
push edi
push esi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42d225
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42d21c
mov edx, dword [esp + 0x10]
movzx eax, word [edx]
sub eax, 0x401
je 0x42d21a
sub eax, 0xc
jne 0x42d21c
mov bl, 1
push edi
call fcn.00440d83
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x42d240
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
mov byte [esp + 7], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42d366
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 2
push eax
mov dword [esp + 0x24], ebx
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00442964
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42d345
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x42d33c
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42d33c
xor edi, edi
cmp dword [esi], ebx
jbe 0x42d331
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push ebp
lea ebp, [esi + 4]
jmp 0x42d310
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call ebx
test eax, eax
jne 0x42d32b
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x42d310
jmp 0x42d330
mov byte [esp + 0x13], 1
pop ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00440d83
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004404d4
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004404d4
add esp, 0x1c
ret
Function at 0x42d380
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, edi
jl 0x42d53d
lea eax, [esp + 0x10]
push eax
push 0x468b78
push 1
push edi
push 0x468b98
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x42d4dd
cmp eax, edi
jl 0x42d4dd
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0x468b88
push ecx
mov ecx, dword [edx]
call ecx
cmp dword [esp + 0x14], edi
je 0x42d4d1
cmp eax, edi
jl 0x42d4d1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x42d490
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x42d423
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov esi, eax
cmp esi, edi
jl 0x42d490
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x42d43e
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov esi, eax
cmp esi, edi
jl 0x42d490
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x42d459
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov esi, eax
cmp esi, edi
jl 0x42d490
mov ecx, dword [esp + 0x30]
cmp ecx, edi
je 0x42d479
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
mov edx, dword [eax]
push esi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov esi, eax
cmp esi, edi
jl 0x42d490
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov esi, eax
mov ebx, dword [esp + 0x1c]
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebp, [eax + 1]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f872
mov edi, eax
add esp, 4
test edi, edi
jne 0x42d4e7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
push ebp
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42d501
mov esi, 0x80004005
jmp 0x42d516
test esi, esi
jl 0x42d516
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov esi, eax
push edi
call fcn.0042f877
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
test esi, esi
pop esi
pop ebp
setge al
pop ebx
add esp, 8
ret
Function at 0x42d5f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push ebx
push esi
lea ecx, [esp + 8]
push ecx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d64f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
test byte [esp + 0xc], 0x10
je 0x42d645
lea edx, [esp + 0xc]
push edx
push esi
call edi
test eax, eax
jne 0x42d630
jmp 0x42d647
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [esp + 0x148]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004404d4
add esp, 0x144
ret

Function at 0x42d670
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x148
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
mov esi, dword [esp + 0x150]
push esi
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x3a
jne 0x42d6b7
mov al, 1
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004404d4
add esp, 0x148
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d6f3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0xc], 0x10
jne 0x42d6e6
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
test eax, eax
jne 0x42d6d1
jmp 0x42d6eb
mov byte [esp + 0xb], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [esp + 0x148]
mov al, byte [esp + 7]
pop esi
xor ecx, esp
call fcn.004404d4
add esp, 0x148
ret

Function at 0x42d770
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x2c
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x42d7c5
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
push 0
push 0
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x42d7c5
mov ecx, dword [esp + 0xc]
cmp ecx, esi
ja 0x42d7c5
jb 0x42d7bd
mov edx, dword [esp + 8]
cmp edx, edi
jae 0x42d7c5
pop edi
xor al, al
pop esi
add esp, 0x2c
ret
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret

Function at 0x42d800
Capabilities:
Create service

Disassembly:
push ebx
push esi
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x42d862
mov cl, byte [esp + 0x18]
mov eax, dword [esp + 0x14]
push edi
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
neg cl
push eax
mov eax, dword [esp + 0x28]
push 1
sbb ecx, ecx
add ecx, 3
push ecx
push 0x10
push 0xf01ff
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x42d85e
push eax
call edi
mov bl, 1
push esi
call edi
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x42d870
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x34
push ebx
push esi
push 0xf003f
push 0
push 0
mov byte [esp + 0x17], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x42d990
mov eax, dword [esp + 0x40]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42d989
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x42d8c9
pop esi
xor al, al
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0x10]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42d8c1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
cmp dword [esp + 0x24], 2
mov edi, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jne 0x42d974
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xcccccccd
mul dword [esp + 0x38]
shr edx, 3
cmp edx, 0x3e8
jae 0x42d91e
mov edx, 0x3e8
jmp 0x42d92b
cmp edx, 0x2710
jbe 0x42d92b
mov edx, 0x2710
push edx
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42d970
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x34], eax
jbe 0x42d95f
call ebp
mov ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x14], ecx
jmp 0x42d969
call ebp
sub eax, edi
cmp eax, dword [esp + 0x38]
ja 0x42d970
cmp dword [esp + 0x24], 2
je 0x42d903
mov ebx, dword [esp + 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x24], 4
pop edi
pop ebp
jne 0x42d989
mov byte [esp + 0xb], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x42d9a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebx
push 0xf003f
push 0
push 0
mov byte [esp + 0x13], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x42da61
mov eax, dword [esp + 0x28]
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42da54
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42da2c
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x14]
push edx
push esi
call ebp
test eax, eax
je 0x42da2a
lea ecx, [ecx]
cmp dword [esp + 0x18], 3
jne 0x42da2a
push 0x3e8
call edi
lea eax, [esp + 0x14]
push eax
push esi
call ebp
test eax, eax
jne 0x42da10
pop edi
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x42da3c
mov byte [esp + 0xb], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x20
ret
push ebx
mov byte [esp + 0xf], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov al, byte [esp + 7]
pop ebx
add esp, 0x20
ret

Function at 0x42dac0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x42db1c
mov eax, dword [esp + 0x28]
push ebp
push edi
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x42db17
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42db14
cmp dword [esp + 0x14], 4
jne 0x42db14
mov bl, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x42db30
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 8
push ebx
push 0xf003f
push 0
push 0
mov byte [esp + 0x13], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x42dc00
mov eax, dword [esp + 0x10]
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42dbf8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jne 0x42dbf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42dbf0
mov edx, dword [esp + 0x10]
push edi
push edx
call fcn.0042f872
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push esi
call ebp
test eax, eax
je 0x42dbe6
mov eax, dword [esp + 0x20]
cmp dword [edi + 4], eax
je 0x42dbe1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x42dbe6
mov byte [esp + 0x13], 1
push edi
call fcn.0042f877
add esp, 4
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov al, byte [esp + 7]
pop ebx
add esp, 8
ret

Function at 0x42de80
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push 0
push eax
call fcn.00440b70
push edi
call fcn.0042d670
add esp, 0x10
test al, al
je 0x42ded2
mov al, 1
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004404d4
add esp, 0x108
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42deba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x42df69
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
test eax, eax
jle 0x42df4a
lea ebp, [esp + 0x10]
mov esi, edi
sub ebp, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x42df0f
test al, al
jne 0x42df31
lea ecx, [esp + 0x10]
push ecx
call fcn.0042d670
add esp, 4
test al, al
jne 0x42df31
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42df65
mov al, byte [esi]
mov byte [esi + ebp], al
push edi
add ebx, 1
add esi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
cmp ebx, eax
jl 0x42df05
mov al, 1
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004404d4
add esp, 0x108
ret
xor al, al
jmp 0x42df4c
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
xor al, al
call fcn.004404d4
add esp, 0x108
ret
Function at 0x42e5f0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42e64c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42e64c
cmp eax, 5
jne 0x42e64c
call fcn.0042dc10
test al, al
je 0x42e633
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42e64c
mov eax, dword [esp + 0xc]
mov byte [eax], 1
mov al, 1
pop esi
ret
push esi
push 0x464a84
call fcn.0042e2f0
add esp, 8
test al, al
je 0x42e64c
mov ecx, dword [esp + 0xc]
mov byte [ecx], 1
mov al, 1
pop esi
ret

Function at 0x42e650
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x34c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x348], eax
push esi
mov esi, dword [esp + 0x354]
test esi, esi
push edi
mov edi, dword [esp + 0x35c]
je 0x42e7b6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42e7b6
push ebx
push esi
push str._s.
lea eax, [esp + 0x258]
push 0x104
push eax
call fcn.00408330
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42e752
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea esp, [esp]
push 0x462c70
lea eax, [esp + 0x40]
push eax
call ebp
test eax, eax
je 0x42e73a
push 0x462c6c
lea ecx, [esp + 0x40]
push ecx
call ebp
test eax, eax
je 0x42e73a
test byte [esp + 0x10], 0x10
lea edx, [esp + 0x3c]
push edx
push esi
push str._s_s
lea eax, [esp + 0x15c]
push 0x104
push eax
je 0x42e724
call fcn.00408330
lea ecx, [esp + 0x164]
push edi
push ecx
call fcn.0042e650
jmp 0x42e737
call fcn.00408330
lea ecx, [esp + 0x164]
push edi
push ecx
call fcn.0042e5f0
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42e6d0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebx
jne 0x42e79d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42e79d
cmp eax, 0x91
jne 0x42e79d
call fcn.0042dc10
test al, al
je 0x42e788
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jmp 0x42e798
push esi
push str.DIRNUL
call fcn.0042e2f0
add esp, 8
test al, al
je 0x42e79d
mov byte [edi], 1
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.004404d4
add esp, 0x34c
ret
mov ecx, dword [esp + 0x350]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004404d4
add esp, 0x34c
ret
Function at 0x42f6c0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x460322
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x24], ebp
mov byte [ebp + 4], bl
push 0x104
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x248], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42f7f3
push ebx
lea ecx, [esp + 0x2c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x42f7f3
push edi
call fcn.00442964
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42f7f3
push esi
push edi
push ebx
lea edx, [esp + 0x34]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
je 0x42f7ea
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x42f7ea
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xCompanyName
lea ecx, [esp + 0x138]
push 0x104
push ecx
call fcn.00408330
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x134]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x42f7ea
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.004031a0
push esi
call fcn.00440d83
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004404d4
add esp, 0x22c
ret