joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49939b
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x50ca42
call fcn.004cea03
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x400
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0048a60a
test al, al
jne 0x4993da
push 3
pop esi
mov edi, esi
push dword [ebp - 0x10]
call fcn.004ce497
pop ecx
mov eax, edi
call fcn.004ce9cc
ret 4
push 2
mov ecx, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov eax, edi
mov edx, edi
pop esi
add eax, 0xa
sub edx, 0x400
mov dword [ebp - 0x18], eax
inc ecx
mov eax, edx
mov dword [ebp - 0x24], edx
cdq
mov dword [ebp - 0x1c], ecx
mov ecx, eax
cmp dword [ebp - 0x1c], 1
mov eax, edx
mov dword [ebp - 0x20], eax
jle 0x499417
mov eax, dword [ebp - 0x18]
cdq
add ecx, eax
mov eax, dword [ebp - 0x20]
adc eax, edx
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x49943b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4993c5
push edi
lea eax, [ebp - 0x14]
push eax
push 0x400
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4993c5
mov eax, 0x400
cmp dword [ebp - 0x14], eax
jne 0x4993c5
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.00471820
pop ecx
pop ecx
test eax, eax
jns 0x499487
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
jmp 0x4993e9
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffffc0
mov dword [ebp - 0x2c], edi
add eax, ecx
lea ecx, [ebp - 0x2c]
push edi
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4993c5
push edi
lea eax, [ebp - 0x14]
push eax
push 0x4a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4993c5
cmp dword [ebp - 0x14], 0
je 0x4993c5
push 0xa
lea eax, [ebx + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004cfe14
add esp, 0xc
test eax, eax
jne 0x4994ed
cmp dword [ebx + 0xc], 0x64
je 0x4994f4
push 5
jmp 0x4993c4
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x2c]
sbb eax, edi
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
jmp 0x4993c7
Function at 0x4995df
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x507538
call fcn.004cea03
mov ebx, ecx
cmp dword [ebx + 4], 0
mov edi, dword [ebp + 8]
mov dword [ebx + 0x10], edi
jne 0x499600
xor eax, eax
jmp 0x499682
xor ecx, ecx
test edi, edi
je 0x499625
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [ebx + 0x14]
call fcn.004251af
mov eax, dword [edi]
mov ecx, edi
push dword [ebx + 0x14]
call dword [eax + 0x20]
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push ebx
push 0x49968a
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
and dword [ebp - 0x10], 0
mov ebx, eax
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
test edi, edi
je 0x499650
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
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
test ebx, ebx
je 0x499680
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov eax, esi
call fcn.004ce9cc
ret 4
Function at 0x499ba2
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x50cb94
call fcn.004cea03
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x2e
push dword [esi]
call fcn.004d18c5
pop ecx
pop ecx
test eax, eax
je 0x499d3a
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x499d3a
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00447d83
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00406bd2
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 0x535a78
push eax
call fcn.00407aa5
mov ecx, dword [edi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x499c16
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.00490387
add esp, 0xc
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.00474fa0
test al, al
je 0x499c4c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x499d08
lea ecx, [ebp - 0x14]
call fcn.00406bd2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.00490c98
lea ecx, [ebp + 0xc]
call fcn.00406bd2
mov edx, 0xca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0048f4d4
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.004d18c5
pop ecx
pop ecx
test eax, eax
jne 0x499c9b
or eax, 0xffffffff
jmp 0x499ca0
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.00447dd4
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.00407aa5
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.004068c3
xor dl, dl
lea ecx, [ebp + 0xc]
call fcn.0048008f
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 3
call fcn.004068c3
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004068c3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004068c3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x499d1d
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
mov al, byte [ebp + 0xb]
jmp 0x499d3c
mov al, 1
call fcn.004ce9cc
ret 8
Function at 0x499e3e
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x50bde9
call fcn.004cea03
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 0x499e7d
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x14]
call fcn.004251af
push dword [esi + 0x14]
mov ecx, esi
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x49a0a9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x10]
cmp dword [ecx], edi
je 0x499ed8
mov ecx, esi
call fcn.00499f11
push dword [esi + 4]
mov ecx, dword [esi]
mov ebx, eax
mov edi, edx
call fcn.00488bdb
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 - 0x18]
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
test ebx, ebx
je 0x499f07
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
mov eax, esi
call fcn.004ce9cc
ret 4

Function at 0x49a0b5
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x50cbfd
call fcn.004cea37
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
push ecx
push ecx
call fcn.0046de10
pop ecx
mov ecx, eax
call fcn.0046e1b0
test al, al
je 0x49a19e
push edi
call fcn.0049a1ff
test al, al
je 0x49a19e
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.004cfc80
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.004cfc80
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.0049a281
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], ebx
call fcn.00497768
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec eax
neg eax
sbb al, al
add al, 1
mov byte [esi + 4], al
jne 0x49a18d
push edi
mov ecx, esi
call fcn.0049a281
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00497718
jmp 0x49a1aa
push edi
mov ecx, esi
call fcn.0049a281
mov byte [esi + 4], 0
mov eax, esi
call fcn.004ce9e1
ret 4
Function at 0x49a1ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.0046e910
mov ecx, edi
mov edx, eax
call fcn.0046e910
cmp eax, edx
jae 0x49a247
xor al, al
jmp 0x49a26f
test edx, edx
je 0x49a26d
lea eax, [ebp - 0x20c]
sub edi, eax
lea eax, [edi + esi*2]
mov ax, word [ebp + eax - 0x20c]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x49a243
inc esi
cmp esi, edx
jb 0x49a253
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cde67
mov esp, ebp
pop ebp
ret 4

Function at 0x49a35b
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x50cc3b
call fcn.004cea03
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.0049a0b5
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 0x49a3fc
push eax
lea ecx, [ebp - 0x10]
call fcn.0048a60a
mov esi, dword [ebp - 0x10]
test al, al
jne 0x49a3ad
push 8
pop edi
jmp 0x49a404
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 0x49a3fc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x52995c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x49a404
cmp dword [ebp - 0x20], 0
je 0x49a404
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x49a3ee
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49a404
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x49a404
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
je 0x49a417
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.004ce497
pop ecx
push esi
call fcn.004ce497
pop ecx
mov eax, edi
call fcn.004ce9cc
ret
Function at 0x49a42f
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x50cc6e
call fcn.004cea03
mov eax, ecx
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
push eax
call fcn.004071c5
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
jle 0x49a46d
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406708
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x49a572
push edi
lea ecx, [ebp - 0x18]
call fcn.0048a60a
test al, al
jne 0x49a497
mov esi, dword [ebp - 0x18]
jmp 0x49a572
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
jle 0x49a4ad
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406708
mov eax, dword [ebp - 0x14]
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 0x49a572
lea ecx, [ebp - 0x10]
call fcn.00406bd2
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 0x49a503
cmp dword [ebp - 0x20], 0
je 0x49a503
mov ecx, dword [ebp - 0x24]
push 0x528064
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x49a512
push 0x528064
push 0x4e2
push 0x409
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00407aa5
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x49a539
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406708
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x49a567
cmp dword [ebp - 0x28], 0
je 0x49a567
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00409e7d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004068c3
jmp 0x49a574
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004068c3
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004ce497
and dword [ebp - 0x18], 0
mov al, bl
pop ecx
call fcn.004ce9cc
ret

Function at 0x49a61d
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 0x49a6e8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x49a653
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49a676
cmp byte [ebp + 0x10], 0
je 0x49a674
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 0x49a676
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x49bacf
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x50cf56
call fcn.004cea37
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0xc
push 0
push eax
call fcn.004cfc80
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
jne 0x49bb09
xor al, al
jmp 0x49bb3e
cmp dword [ebp - 0x24], 0xa
jne 0x49bb05
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409ea5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push str._aiu_
call fcn.0044808a
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
inc bl
call fcn.004068c3
mov al, bl
call fcn.004ce9e1
ret 8

Function at 0x49bb46
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x50cf83
call fcn.004cea37
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 6
push 0
push eax
call fcn.004cfc80
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
jne 0x49bb80
xor al, al
jmp 0x49bbb5
cmp dword [ebp - 0x20], 5
jne 0x49bb7c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047ffcc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str._aiu_
call fcn.0044808a
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.004068c3
mov al, bl
call fcn.004ce9e1
ret 8

Function at 0x49be59
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x509b3f
call fcn.004cea03
mov ebx, ecx
lea edi, [ebx + 4]
mov ecx, dword [edi]
call fcn.0046fa70
push ecx
mov ecx, edi
call fcn.0042361c
mov eax, dword [ebx + 0x28]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x10]
call fcn.00406bd2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.00409d16
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.0049ddf4
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push ebx
push 0x49bef6
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.004068c3
xor eax, eax
call fcn.004ce9cc
ret 0x10

Function at 0x49c86b
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea eax, [ecx - 0x20]
neg esi
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x49c8ad
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x49c89d
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49c8b4
cmp dword [esp + 0xc], 0
jne 0x49c8ad
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x49c8cb
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [esi + 0x20]
push eax
call fcn.0049c8d1
xor eax, eax
pop esi
ret 0x10
Function at 0x49db44
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x50d304
call fcn.004cea37
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x49db6f
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49dbd4
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 2
push eax
push 0
push dword [ebp - 0x28]
xor ebx, ebx
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 0x49dbd4
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x49dbd6
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x49dbed
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x28], 0
mov al, bl
call fcn.004ce9e1
ret

Function at 0x49dff6
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 0x49e060
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x49e042
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x49e03e
push ecx
push esi
push ecx
mov ecx, edi
call fcn.0049e13c
mov eax, esi
jmp 0x49e05b
cmp byte [edi + 0x1c], 0
je 0x49e059
cmp byte [edi + 0x1d], 0
je 0x49e059
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.0049e121
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4a0ad5
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x50dda1
call fcn.004cea03
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a0afe
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.004251af
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.004725c0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
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 0x4a0b76
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 0x4a0b3f
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00472960
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a0b9b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004ce9cc
ret

Function at 0x4a77fe
Capabilities:
Create pipe

Disassembly:
push 0x1c
mov eax, 0x4f85f8
call fcn.004cea37
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4a781c
mov al, 1
jmp 0x4a78ad
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.0040405c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004a7d34
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x4a7870
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
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
cmp byte [esi + 0x1d], bl
jne 0x4a7895
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
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 0x4a789b
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004048ce
mov al, bl
call fcn.004ce9e1
ret 8
Function at 0x4a7a86
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x50f3a6
call fcn.004cea37
mov edi, ecx
mov bl, byte [ebp + 0x10]
xor edx, edx
mov esi, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
test bl, bl
jne 0x4a7ad4
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4a7abf
xor eax, eax
inc eax
jmp 0x4a7acf
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
xor edx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
inc edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4a7b12
test bl, bl
jne 0x4a7b12
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov word [esi], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], cl
push ecx
push edx
jmp 0x4a7bf2
xor ebx, ebx
mov dword [ebp - 0x34], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
jb 0x4a7b24
mov eax, dword [edi]
jmp 0x4a7b26
mov eax, edi
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4a7b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4a7bd8
mov ecx, dword [ebp - 0x3c]
add ebx, ecx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], ebx
jb 0x4a7b63
mov eax, dword [edi]
jmp 0x4a7b65
mov eax, edi
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [edi + 0x14], 8
jb 0x4a7b77
mov ebx, dword [edi]
jmp 0x4a7b79
mov ebx, edi
xor eax, eax
cmp word [ebx], ax
je 0x4a7b87
push ebx
call fcn.004d3ded
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004090dc
lea eax, [ebp - 0x34]
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 - 0x34], 0
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
ja 0x4a7b1a
cmp dword [ebp - 0x40], 0
je 0x4a7bd8
test ebx, ebx
je 0x4a7bd8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040ca5c
xor ecx, ecx
inc ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], al
push eax
push ecx
jmp 0x4a7bf2
xor ecx, ecx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [esi], ax
inc eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], cl
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004048ce
mov eax, esi
call fcn.004ce9e1
ret 0xc