joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a67bd
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x515a88
call fcn.004db753
mov edi, ecx
cmp dword [edi + 4], 0
mov esi, dword [ebp + 8]
mov dword [edi + 0x10], esi
jne 0x4a67de
xor eax, eax
jmp 0x4a6866
xor ebx, ebx
test esi, esi
je 0x4a6801
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [edi + 0x14]
call fcn.0040e076
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0x18]
call dword [eax + 0x20]
lea eax, [ebp + 8]
push eax
push ebx
push edi
push 0x4a686e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 0x14], 0x533e68
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
test esi, esi
je 0x4a682e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e68
test edi, edi
je 0x4a6864
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, esi
call fcn.004db71c
ret 4
Function at 0x4a6e26
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x51af85
call fcn.004db753
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x2e
push dword [esi]
call fcn.004dee47
pop ecx
pop ecx
test eax, eax
je 0x4a6fc0
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x4a6fc0
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00406d83
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040ce6d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi]
push dword [ebx]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00411714
mov ecx, dword [edi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x4a6e9a
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
push 0
lea eax, [ebp - 0x24]
push 0x8000008
push eax
lea ecx, [edi + 0xc]
lea edx, [ebp - 0x18]
call fcn.0049c365
add esp, 0xc
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.0047a2d0
test al, al
je 0x4a6ed0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a6f8e
lea ecx, [ebp - 0x14]
call fcn.0040ce6d
push ecx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.0049cd72
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0040ce6d
mov edx, 0xca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0049b1d6
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
mov ecx, dword [eax - 0xc]
mov dword [ebp + 8], ecx
call fcn.004dee47
pop ecx
pop ecx
test eax, eax
jne 0x4a6f21
or eax, 0xffffffff
jmp 0x4a6f26
sub eax, dword [ebp - 0x10]
sar eax, 1
mov ecx, dword [ebp + 8]
sub ecx, eax
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406de8
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.00411714
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.0040d133
xor dl, dl
lea ecx, [ebp + 0xc]
call fcn.0048916a
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 3
call fcn.0040d133
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040d133
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d133
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4a6fa3
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov al, byte [ebp + 0xb]
jmp 0x4a6fc2
mov al, 1
call fcn.004db71c
ret 8
Function at 0x4a7354
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x51afee
call fcn.004db753
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], eax
cmp dword [eax], edi
je 0x4a7391
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x14]
call fcn.0040e076
mov eax, dword [esi + 0x10]
push dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4a75ef
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x1c], 0x533e68
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x10]
cmp dword [ecx], edi
je 0x4a73f3
mov ecx, esi
call fcn.004a7433
push dword [esi + 4]
mov ecx, dword [esi]
mov ebx, eax
mov edi, edx
call fcn.0049340b
mov ecx, dword [esi + 0x10]
add ebx, eax
adc edi, edx
push edi
mov ecx, dword [ecx]
push ebx
mov esi, dword [ecx]
call dword [esi]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x14]
xor edi, edi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e68
test ebx, ebx
je 0x4a7429
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
mov eax, esi
call fcn.004db71c
ret 4
Function at 0x4a75fb
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x51b037
call fcn.004db787
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
push ecx
push ecx
call fcn.00473c90
pop ecx
mov ecx, eax
call fcn.00474150
test al, al
je 0x4a7718
push edi
call fcn.004a7777
test al, al
je 0x4a7718
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.004de9a0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004de9a0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push str.shim_clone
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.004a781a
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 4], ebx
call fcn.004a4591
mov eax, dword [0x57f328]
test eax, eax
je 0x4a76c8
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], 1
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x4a76e5
push edi
mov ecx, esi
call fcn.004a781a
mov dword [ebp - 4], 1
cmp byte [ebp - 0x428], 0
je 0x4a7712
call fcn.004a4591
mov eax, dword [0x57f324]
test eax, eax
je 0x4a7712
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], bl
or dword [ebp - 4], 0xffffffff
jmp 0x4a7724
push edi
mov ecx, esi
call fcn.004a781a
mov byte [esi + 4], 0
mov eax, esi
call fcn.004db731
ret 4

Function at 0x4a7777
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, esi
mov ecx, ebx
cmp word [esi], bx
je 0x4a77b5
lea eax, [eax + 2]
inc ecx
cmp word [eax], bx
jne 0x4a77ac
mov eax, ebx
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x4a77d3
lea edx, [edx + 2]
inc eax
cmp word [edx], bx
jne 0x4a77c6
cmp ecx, eax
jb 0x4a7804
mov ecx, ebx
mov eax, ebx
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x4a7808
lea edx, [edx + 2]
inc eax
cmp word [edx], bx
jne 0x4a77e6
cmp ecx, eax
jae 0x4a7808
mov ax, word [esi + ecx*2]
cmp ax, word [ebp + ecx*2 - 0x20c]
jne 0x4a7804
inc ecx
jmp 0x4a77d5
xor al, al
jmp 0x4a780a
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004dab44
leave
ret 4
Function at 0x4a7914
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x51b06f
call fcn.004db753
mov dword [ebp - 0x24], edx
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004a75fb
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4a79b5
push eax
lea ecx, [ebp - 0x10]
call fcn.004950d4
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4a7966
push 8
pop edi
jmp 0x4a79bd
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a79b5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x539998
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a79bd
cmp dword [ebp - 0x20], 0
je 0x4a79bd
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a79a7
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4a79bd
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4a79bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
je 0x4a79d0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.004db29c
pop ecx
push esi
call fcn.004db29c
pop ecx
mov eax, edi
call fcn.004db71c
ret
Function at 0x4a79e8
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x51b0a2
call fcn.004db753
mov eax, ecx
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], esi
lea ecx, [ebp - 0x10]
push eax
call fcn.0040713a
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x4a7a26
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d64d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4a7b37
push edi
lea ecx, [ebp - 0x18]
call fcn.004950d4
test al, al
jne 0x4a7a50
mov esi, dword [ebp - 0x18]
jmp 0x4a7b37
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x4a7a66
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d64d
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a7b37
lea ecx, [ebp - 0x14]
call fcn.0040ce6d
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x4a7ab5
cmp dword [ebp - 0x20], 0
je 0x4a7ab5
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
jmp 0x4a7abf
mov ecx, 0x409
mov eax, 0x4e2
push 0x5380ac
push eax
push ecx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00411714
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x4a7aed
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d64d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x4a7b2c
cmp dword [ebp - 0x28], 0
je 0x4a7b2c
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x4a7b0e
xor eax, eax
jmp 0x4a7b15
push edi
call fcn.004e0c46
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push edi
call fcn.0040d89e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040d133
jmp 0x4a7b39
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040d133
xor bl, bl
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db29c
and dword [ebp - 0x18], 0
mov al, bl
pop ecx
call fcn.004db71c
ret

Function at 0x4a7be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x4a7cb7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x4a7c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a7c39
cmp byte [ebp + 0x10], 0
je 0x4a7c37
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x4a7c39
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4a9371
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x51b35e
call fcn.004db787
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0xc
push 0
push eax
call fcn.004de9a0
add esp, 0xc
lea eax, [ebp - 0x24]
push 0
push eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a93de
cmp dword [ebp - 0x24], 0xa
jne 0x4a93de
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d91c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push str._aiu_
call fcn.00407037
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
inc bl
call fcn.0040d133
mov al, bl
jmp 0x4a93e0
xor al, al
call fcn.004db731
ret 8

Function at 0x4a93e8
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x51b38b
call fcn.004db787
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 6
push 0
push eax
call fcn.004de9a0
add esp, 0xc
lea eax, [ebp - 0x20]
push 0
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a9455
cmp dword [ebp - 0x20], 5
jne 0x4a9455
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004890a7
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str._aiu_
call fcn.00407037
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.0040d133
mov al, bl
jmp 0x4a9457
xor al, al
call fcn.004db731
ret 8

Function at 0x4a975e
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x51812e
call fcn.004db753
mov ebx, ecx
mov edx, dword [0x57e2d8]
lea edi, [ebx + 4]
push ecx
mov ecx, dword [edi]
call fcn.00475bb0
mov ecx, edi
call fcn.0042dec5
mov eax, dword [ebx + 0x28]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x10]
call fcn.0040ce6d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.0040d58d
push 0x40a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi]
lea ecx, [ebx + 0x40]
call fcn.004ab904
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push ebx
push 0x4a9801
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x30], eax
call fcn.0040d133
xor eax, eax
call fcn.004db71c
ret 0x10

Function at 0x4aa1be
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4aa1f7
push 0xe801
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4aa1e7
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4aa1fe
cmp dword [esp + 0xc], 0
jne 0x4aa1f7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x4aa214
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.004aa21a
xor eax, eax
pop edi
ret 0x10
Function at 0x4aac32
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push edi
push 1
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4aac5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aacbc
push ebx
push esi
push 0x14
push 0x5451f8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
push edi
call ebx
test esi, esi
je 0x4aacad
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4aacaa
cmp dword [esp + 0x14], 4
je 0x4aacb5
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4aacb5
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aacba
push esi
call ebx
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
xor ecx, esp
call fcn.004dab44
add esp, 0x20
ret

Function at 0x4ab655
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x51b6c1
call fcn.004db787
and dword [ebp - 0x24], 0
mov esi, 0x533e68
mov dword [ebp - 0x28], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ab6d4
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
mov dword [ebp - 0x14], 2
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
push ecx
push dword [ebp - 0x24]
inc ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ab6d4
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4ab6d6
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
je 0x4ab6f0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004db731
ret

Function at 0x4abb1d
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
push 2
pop ecx
mov edx, dword [eax]
xor eax, eax
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
push 0
push edi
push 0x4abb87
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4abb69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4abb65
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004abc88
mov eax, esi
jmp 0x4abb82
cmp byte [edi + 0x1c], 0
je 0x4abb80
cmp byte [edi + 0x1d], 0
je 0x4abb80
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.004abc67
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4acc75
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x51ba9e
call fcn.004db753
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], 0x533e68
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4acca2
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e076
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push ecx
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.00477a10
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4acd1b
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4acce4
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00477ab0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x533e68
test esi, esi
je 0x4acd47
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
mov al, bl
call fcn.004db71c
ret

Function at 0x4b59f5
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x51d814
call fcn.004db787
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x4b5a14
mov al, 1
jmp 0x4b5aa3
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.00405726
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004b5ed5
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x1d]
test al, al
je 0x4b5a6a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
mov ecx, 0x400
push 0x1388
push ecx
push ecx
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x4b5a8f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x4b5a95
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040569b
mov al, bl
call fcn.004db731
ret 8
Function at 0x4b5c57
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x51d91f
call fcn.004db787
mov edi, ecx
mov bl, byte [ebp + 0x10]
xor eax, eax
and dword [ebp - 0x30], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ecx
test bl, bl
jne 0x4b5ca2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4b5c8f
xor eax, eax
inc eax
jmp 0x4b5c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x18], 0
xor edx, edx
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
inc edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4b5cdf
test bl, bl
jne 0x4b5cdf
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], al
jmp 0x4b5dbf
xor ebx, ebx
mov dword [ebp - 0x3c], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b5cf1
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x40]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4b5d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b5da5
mov ecx, dword [ebp - 0x40]
mov eax, edi
add ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x4b5d2b
mov eax, dword [edi]
shr ecx, 1
xor edx, edx
mov dword [ebp - 0x38], edi
mov word [eax + ecx*2], dx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b5d43
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
push eax
call fcn.004e0c46
pop ecx
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00412200
lea eax, [ebp - 0x3c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x2c]
ja 0x4b5ce7
cmp dword [ebp - 0x34], 0
je 0x4b5da5
test ebx, ebx
je 0x4b5da5
xor ebx, ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x34], bl
mov ecx, esi
push dword [ebp - 0x34]
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.00405342
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], bl
jmp 0x4b5dbf
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.0040569b
mov eax, esi
call fcn.004db731
ret 0xc