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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560321
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
jne 0x4c74c8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4c74c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4c74c8
cmp byte [esi + 0x11], 0
jne 0x4c74c8
call fcn.004092a0
test eax, eax
je 0x4c7597
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4c7574
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
and ecx, 0xfffffffe
mov word [edx + ecx], di
test eax, eax
je 0x4c755c
cmp dword [ebp + 0x10], edi
je 0x4c755c
push dword [esi + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00415390
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00408ad0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7547
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c7597
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408f80
int3
Function at 0x4c75b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e459
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4c7625
call fcn.004092a0
test eax, eax
je 0x4c768d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c765c
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c768d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4c7602
push 1
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004c7450
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408f80
int3
Function at 0x4c7c50
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x5604d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x28], 0x57cb58
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4c7de1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c7de1
mov eax, dword [ebp + 0x78]
cmp ebx, eax
jbe 0x4c7de1
sub ebx, eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x10000
call fcn.004affb0
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x4c7d05
xor bl, bl
jmp 0x4c7dcb
xor edi, edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], edi
mov byte [ebp + 0x68], 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c7d79
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4c7d79
lea eax, [ecx + edi]
cmp eax, ebx
jbe 0x4c7d66
mov ecx, ebx
mov byte [ebp - 0xd], 1
sub ecx, edi
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.005197b0
add edi, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
je 0x4c7d34
lea ecx, [ebp]
call fcn.00519880
cmp byte [ebp + 0x68], 0
jne 0x4c7d8b
xor bl, bl
jmp 0x4c7dc8
mov esi, dword [ebp - 0x20]
xor edi, edi
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x4c7d90
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
push esi
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x4c7de3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x57cb58
test edi, edi
je 0x4c7e03
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.0051dacc
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x4cbd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561008
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
cmp dword [eax], 0
je 0x4cbde3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, dword [esi + 0x18]
je 0x4cbdd6
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x14]
call dword [edx + 4]
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x10]
push dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4cc110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x34], 0x57cb58
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4cbed7
mov ebx, dword [esi + 8]
xor ecx, ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [ebx + 4], ecx
jle 0x4cbe5f
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
nop word [eax + eax]
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4]
add edi, dword [eax + 0x250]
adc edx, dword [eax + 0x254]
inc ecx
cmp ecx, dword [ebx + 4]
jl 0x4cbe40
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edx
jmp 0x4cbe6b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov ebx, dword [esi]
xor ecx, ecx
movlpd qword [ebp - 0x2c], xmm0
mov edi, dword [ebp - 0x28]
mov edx, dword [eax + 4]
test edx, edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x2c]
jle 0x4cbebb
nop word [eax + eax]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x4cbf2a
cmp eax, dword [ebx + 0x7c]
jge 0x4cbf2a
shl eax, 5
add eax, dword [ebx + 0x78]
add edx, dword [eax + 0xc]
mov eax, dword [esi + 4]
adc edi, 0
inc ecx
cmp ecx, dword [ebp - 0x18]
jl 0x4cbe90
add edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
adc edi, dword [ebp - 0x10]
push edi
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0x57cb58
test ebx, ebx
je 0x4cbf14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.00411100
int3
Function at 0x4cc5a0
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5610b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.004cc120
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4cc65e
push eax
lea ecx, [ebp - 0x14]
call fcn.004affb0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x4cc611
mov edi, 8
jmp 0x4cc666
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4cc65e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x583bdc
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4cc666
cmp dword [ebp - 0x24], 0
je 0x4cc666
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x4cc650
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4cc666
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4cc666
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x4cc677
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0051e384
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc8f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d220
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], 0x58f668
test eax, eax
je 0x4cc968
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 8], 0xffffffff
je 0x4cc95f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4cc95f
cmp dword [ebp - 0x10], 0x103
jne 0x4cc95f
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ccc10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56120a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 4
lea edi, [esi + 0x38]
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0x57ece0
mov dword [esi + 0x24], 0x57ecdc
mov dword [esi + 0x28], 0x58f68c
mov dword [esi], 0x58f6d4
mov dword [esi + 0x20], 0x58f6e4
mov dword [esi + 0x24], 0x57ed48
mov dword [esi + 0x28], 0x58f6b0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [ebp + 8], edi
call fcn.004092a0
test eax, eax
je 0x4cce19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
lea edi, [esi + 0x3c]
mov dword [ebp + 8], edi
call fcn.004092a0
test eax, eax
je 0x4cce19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
lea ecx, [esi + 0x40]
mov dword [ebp + 8], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xb
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ecx + 0x20], eax
mov byte [ebp - 4], 0xd
lea edi, [ecx + 0x28]
mov dword [ecx], 0x58f67c
mov dword [ecx + 0x24], 0
mov dword [ebp - 0x14], edi
call fcn.004092a0
test eax, eax
je 0x4cce19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
lea edi, [esi + 0x94]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 1
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov byte [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [ebp + 8], edi
call fcn.004092a0
test eax, eax
je 0x4cce19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x98]
mov dword [ebp + 8], edi
call fcn.004092a0
test eax, eax
je 0x4cce19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0xa0]
call fcn.004d1930
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408f80
int3
Function at 0x4cf5d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
jne 0x4cf7da
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp ecx, 0x110
jne 0x4cf622
sub esp, 8
mov dword [edi + 0x40], 1
mov ecx, edi
call fcn.004cf980
mov dword [esi], eax
cmp dword [edi + 0x40], 0
je 0x4cf733
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x111
jne 0x4cf733
movzx ecx, bx
mov eax, 1
cmp ax, cx
jne 0x4cf6b7
sub esp, 0x10
lea eax, [edi + 0x44]
lea ecx, [edi + 0x40]
push eax
push 0x425
call fcn.004cfb40
sub esp, 0x10
lea eax, [edi + 0x48]
lea ebx, [edi + 0x40]
mov ecx, ebx
push eax
push 0x426
call fcn.004cfb40
mov ecx, 4
lea eax, [ebx - 0x3c]
test ebx, ebx
push 0x427
cmove eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 2
cmp ax, cx
jne 0x4cf6df
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, ebx
mov dword [esp + 0xc], 0x300
shr eax, 0x10
cmp word [esp + 0xc], ax
jne 0x4cf733
mov eax, 0x425
cmp cx, ax
jne 0x4cf72d
sub esp, 0x10
lea esi, [edi + 0x44]
lea ecx, [edi + 0x40]
push esi
push eax
call fcn.004cfb40
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [ebp + 0x18]
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
lea edx, [edi + 0x20]
cmp eax, 5
jne 0x4cf7a6
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x4cf777
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp ebx, 2
jne 0x4cf768
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4cf77c
test ebx, ebx
jne 0x4cf777
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4cf77c
cmp ebx, 1
je 0x4cf7c6
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.004d00c0
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x24
jne 0x4cf7da
cmp dword [edx + 0x14], 0xffffffff
je 0x4cf7c6
cmp dword [edx + 0x18], 0xffffffff
je 0x4cf7c6
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4cfb40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 1
push edi
push dword [ebp + 8]
lea eax, [esi - 0x40]
neg esi
sbb esi, esi
and esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
js 0x4cfc34
mov edi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or ecx, eax
jge 0x4cfba0
push ebx
mov ecx, edi
call fcn.00408d10
mov edx, dword [edi]
cmp ebx, dword [edx - 8]
jg 0x4cfc34
mov dword [edx - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
lea eax, [ebx + 1]
push eax
push edx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, eax
mov eax, dword [edi]
mov dword [esp + 0x14], edx
test eax, eax
jne 0x4cfbd3
xor ecx, ecx
jmp 0x4cfbe9
push dword [eax - 8]
push eax
call fcn.00525e01
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4cfc34
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4cfc34
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edi, edi
mov word [eax + ecx*2], di
cmp edx, ebx
jge 0x4cfc27
push 0xffffffffffffffff
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
lea ecx, [esi + 0x40]
neg ecx
sbb ecx, ecx
and ecx, esi
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80070057
call fcn.00408f80
int3
Function at 0x4d16b0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0x57cb58
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x24]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4d1761
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 - 0x20], 1
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d1761
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4d1761
mov bl, 1
jmp 0x4d1763
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x57cb58
test eax, eax
je 0x4d1786
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
Function at 0x4d8db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5627ba
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 3
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 5
mov dword [edi + 0x50], 0
mov byte [ebp - 4], 6
lea esi, [edi + 0x58]
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051db0e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 8
mov ecx, edi
call fcn.004d9030
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureInfoW]
cmp eax, 0xffffffff
jne 0x4d8ea4
push esi
lea ebx, [eax + 2]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
jmp 0x4d8ea6
xor ebx, ebx
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], ebx
cmp dword [edi + 0x48], 0
jne 0x4d8eb9
mov dword [edi + 0x54], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d8f40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56286a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 5
call fcn.004d9030
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4d8f93
cmp dword [edi + 0x4c], 0
je 0x4d8f93
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [edi + 0x48], 0
mov byte [ebp - 4], 4
lea esi, [edi + 0x58]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
push dword [eax + 4]
push esi
call fcn.004273a0
push 0x40
push dword [esi]
call fcn.0051dadd
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x50]
test eax, eax
je 0x4d8fcc
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc]
call fcn.004dad20
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.004dadd0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.0048e9e0
mov byte [ebp - 4], 0
lea ecx, [edi + 0x18]
call fcn.00406ba0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00407e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret