joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4351e5
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x4ed384]
push ebx
mov dword [ebp + 0x798], eax
push edi
lea eax, [ebp - 0x80]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
and word [ebp - 0x68], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x66]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
lea eax, [ebp - 0x68]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 2
mov dword [ebp - 0x6c], 0x20
je 0x435251
mov dword [ebp - 0x6c], 0x22
jmp 0x43525c
test al, 1
je 0x43525c
mov dword [ebp - 0x6c], 0x21
test ah, 2
je 0x435265
or dword [ebp - 0x6c], 4
push dword [esi + 0x24]
mov ebx, dword [ebp + 0x7a4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
push 1
push ebx
mov dword [ebp - 0x70], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esi + 0x28]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x70]
push ebx
call edi
mov ecx, dword [ebp + 0x798]
pop edi
pop ebx
call fcn.004c7b01
add ebp, 0x79c
leave
ret 4

Function at 0x435b49
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x4ed384]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x5c]
test ecx, ecx
push edi
mov dword [ebp + 0x798], eax
lea edi, [ebp - 0x68]
jne 0x435b83
push 0x400
mov eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x435b98
mov eax, dword [esi + 0x40]
test eax, eax
jl 0x435bcc
cmp eax, ecx
jge 0x435bcc
lea ecx, [esi + 0x58]
call fcn.0041484a
mov edi, dword [eax]
lea eax, [ebp - 0x78]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
lea edi, [ebp - 0x80]
mov eax, esi
call fcn.00435de0
mov ecx, dword [eax]
mov dword [esi + 0x44], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x78]
xor ecx, ecx
cmp dword [esi + 0x44], eax
setg cl
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp + 0x798]
pop edi
pop esi
call fcn.004c7b01
add ebp, 0x79c
leave
ret
Function at 0x4365a6
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 4], edi
jne 0x4365b2
mov eax, esi
cmp dword [esp + 0x10], ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], 7
mov dword [esi + 0x14], eax
je 0x4365e0
push 0x40
push dword [esp + 0x14]
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x436610
cmp dword [esi + 0x14], ebx
jne 0x4365fe
push ebx
push ebx
push 0x7f
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
cmp word [eax], bx
jne 0x436610
push 0x40
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
inc eax
pop ebx
ret 0xc

Function at 0x4366ed
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x118
mov eax, dword [0x4ed384]
push edi
push 0x44
mov dword [ebp + 0x74], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x436763
xor eax, eax
inc eax
cmp dword [ebp - 0x90], eax
jne 0x436747
cmp dword [ebp - 0x9c], 4
jb 0x436763
cmp dword [ebp - 0x98], 0x5a
jmp 0x436761
cmp dword [ebp - 0x90], 2
jne 0x436763
cmp dword [ebp - 0x9c], 5
ja 0x436765
jne 0x436763
cmp dword [ebp - 0x98], eax
jae 0x436765
xor eax, eax
mov ecx, dword [ebp + 0x74]
call fcn.004c7b01
add ebp, 0x78
leave
ret
Function at 0x4382e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x43830e
cmp word [edi], si
je 0x43830e
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], esi
jne 0x438317
call fcn.00403dd0
test eax, eax
je 0x43830e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
or dword [ebp - 0x40], 0xffffffff
push 0x80
push 2
push 1
push edi
mov eax, 0xc0000000
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x1000
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0040d8df
test eax, eax
je 0x43846f
push 3
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4f097c
call fcn.0041d408
mov eax, ebx
call fcn.00490a36
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x438469
mov eax, dword [0x4f0980]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], esi
push eax
lea ebx, [ebp - 0x18]
lea esi, [ebp - 0xc]
call fcn.0043341d
push dword [ebp - 0x18]
or eax, 0xffffffff
lea ecx, [ebp - 4]
call fcn.004016ba
pop ecx
mov ecx, dword [ebp - 4]
push dword [ecx - 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0041d408
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push str._d
push eax
call fcn.0040a7eb
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [ecx - 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0041d408
mov ebx, dword [ebp - 8]
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004016ba
mov edi, eax
pop ecx
lea eax, [ebp - 4]
call fcn.0040a7a8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x438404
push eax
call fcn.004013aa
mov esi, dword [ebp - 4]
push dword [esi - 8]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0041d408
push 2
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4d5004
call fcn.0041d408
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x438436
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x4f0984]
je 0x438447
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x43845b
push eax
call fcn.004013aa
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x438375
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], esi
xor esi, esi
inc esi
lea eax, [ebp - 0x40]
call fcn.0040d935
mov eax, esi
jmp 0x438310
Function at 0x43b778
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea esi, [ebx + 0x128]
push dword [esi]
call edi
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push ebx
call fcn.0044acc4
push 5
push dword [esi]
call edi
pop edi
pop esi
ret 8

Function at 0x43f6e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.0049dd24
test eax, eax
je 0x43f756
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43f752
push edi
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
pop edi
je 0x43f756
xor eax, eax
jmp 0x43f764
push 0x40000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x444109
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ed384]
push esi
xor esi, esi
mov dword [ebp - 4], eax
inc esi
push 0
lea eax, [esi + 0x7dc8]
push eax
push dword [ebp + 0xc]
call fcn.00430efe
add esp, 0xc
inc esi
cmp esi, 9
jle 0x44411e
push ebx
push edi
xor esi, esi
push 0xa
inc esi
pop ebx
mov eax, dword [0x4f0980]
push ebx
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push 0x81c7
push eax
call fcn.00405918
add esp, 0xc
cmp ebx, dword [0x4f2f68]
mov eax, 0x400
jne 0x444172
mov eax, 0x608
mov edi, dword [ebp - 0x11c]
push edi
lea ecx, [esi + 0x7dc8]
push ecx
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InsertMenuW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x44419c
push eax
call fcn.004013aa
add ebx, 0xa
inc esi
cmp ebx, 0x5a
jle 0x444140
cmp dword [0x4f2f68], 0
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
jne 0x4441c3
push 0x208
push 0x7dc8
push dword [ebp + 0xc]
call esi
cmp dword [0x4f2f64], 0
je 0x4441d8
push 8
push 0x7dd2
push dword [ebp + 0xc]
call esi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
pop edi
pop ebx
jne 0x444237
cmp dword [ebp - 0x114], 5
ja 0x44421b
jne 0x444237
cmp dword [ebp - 0x110], 1
jb 0x444237
push dword [ebp + 8]
call fcn.0044bfc7
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x7dde
push dword [ebp + 0xc]
call esi
jmp 0x444247
push 3
push 0x7dde
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004c7b01
leave
ret 8
Function at 0x448f7e
Capabilities:
Create process on windows

Disassembly:
movzx eax, ax
sub eax, 0x8070
js 0x448fb1
cmp eax, 4
jae 0x448fb1
push 1
push 0
push 0
push dword [eax*4 + 0x4edfa4]
mov eax, dword [esp + 0x14]
push 0x4d4218
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.0049ea35
xor eax, eax
ret 4

Function at 0x44ca5a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
je 0x44caaa
lea eax, [ebx - 0x24]
neg ebx
sbb ebx, ebx
and ebx, eax
push 0xffffffffffffffe6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassLongW]
test eax, 0x20000
jne 0x44cac2
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add ebx, 0x24
push ebx
movsd dword es:[edi], dword [esi]
call fcn.00450faf
jmp 0x44cac2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44cac2
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
and dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x44cc77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x4f20a8]
push edi
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44ccfc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44ccfc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44ccfc
movzx ecx, word [edi + 2]
lea eax, [edi + 8]
mov dword [ebp - 0xc], eax
movzx eax, word [edi + 6]
mov dword [ebp - 8], eax
movzx eax, word [edi + 4]
mov esi, ebx
call fcn.0046f1bb
xor esi, esi
cmp dword [ebx + 0x48], esi
jne 0x44cd05
push dword [ebp + 8]
call fcn.0043397b
pop ecx
shl al, 5
lea ecx, [ebx + 0x85]
xor al, byte [ecx]
mov esi, ebx
and al, 0x20
xor byte [ecx], al
movzx eax, word [edi + 6]
push eax
call fcn.0046f142
test eax, eax
jne 0x44cd03
xor eax, eax
jmp 0x44cdc3
xor esi, esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x44cd29
push dword [ebp + 0x18]
movzx eax, word [ebp + 0x10]
push dword [ebp + 0x14]
push eax
movsx eax, word [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00450eb1
jmp 0x44cd62
test byte [ebx + 0x85], 0x20
je 0x44cd4e
push 0x2040
push esi
push esi
push esi
push dword [ebp + 8]
push dword [0x4f20a8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 4], eax
jmp 0x44cd62
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
lea eax, [ebp - 4]
mov dword [ebp + 0xc], esp
push eax
call fcn.0040583e
cmp dword [ebp - 4], esi
je 0x44cdb9
push dword [ebx + 0xa0]
push dword [ebp - 4]
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
je 0x44cdb9
mov eax, dword [ebp - 8]
cmp eax, esi
jle 0x44cda2
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
cmp word [edi], si
je 0x44cd9b
push edi
lea esi, [ebx + 0x4c]
call fcn.0040a721
xor esi, esi
inc edi
inc edi
dec dword [ebp + 0xc]
jne 0x44cd8b
push dword [ebx + 0x48]
mov esi, dword [ebx + 0x50]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, esi
je 0x44cdb6
xor esi, esi
jmp 0x44cdb9
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.00405825
mov eax, esi
pop edi
pop esi
leave
ret 0x14
Function at 0x44f4cd
Capabilities:
Log keystrokes via polling

Disassembly:
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x44f4f8
cmp eax, 0x79
jne 0x44f4ef
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x44f4f8
cmp dword [esi + 0xa8], 0x20
jne 0x44f56b
cmp dword [esp + 8], 0xf100
jne 0x44f56b
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x44f528
mov eax, esi
call fcn.0045303c
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x44f56b
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x44f56b
test byte [esi + 0x84], 0x40
jne 0x44f560
mov al, byte [esi + 0x85]
test al, 2
je 0x44f555
test al, 4
jne 0x44f555
test al, 8
je 0x44f555
mov al, 1
call fcn.004530b6
push edi
mov edi, esi
call fcn.00453017
pop edi
jmp 0x44f565
cmp eax, 0x20
je 0x44f56b
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
ret 4

Function at 0x450eed
Capabilities:
Capture webcam image

Disassembly:
push 0
push dword [esp + 8]
push 0x419
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4
Function at 0x452478
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
push edi
mov edi, dword [ebx + 0xdc]
and dword [ebx + 0xdc], 0
cmp dword [esp + 0x10], 0
jne 0x4524b5
test edi, edi
mov esi, dword [ebx + 0x60]
je 0x4524a8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
mov eax, 0xff
je 0x4524aa
mov eax, esi
push 5
push eax
call fcn.004326e2
mov dword [ebx + 0x60], esi
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x10], 0
je 0x4524f5
push dword [ebx + 4]
mov esi, dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_BringWindowToTop]
test edi, edi
mov eax, 0xff
jne 0x4524e8
mov eax, esi
push eax
push 5
call fcn.004326e2
mov dword [ebx + 0x60], esi
jmp 0x4524ff
push 0xffffffffffffffff
push dword [ebx + 0x60]
call fcn.004326e2
mov dword [ebx + 0xdc], edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x453189
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
push esi
push edi
lea esi, [ebx + 0x1c]
call fcn.004553e0
push esi
push 0x453d56
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, ebx
neg eax
sbb eax, eax
lea ecx, [ebx - 0xc0]
and eax, ecx
mov ecx, dword [eax + 0xc]
add eax, 8
dec ecx
push 0
pop esi
js 0x4531d4
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
cmp ecx, esi
je 0x4531d4
push 0x13
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ecx
call ebp
lea edi, [ebx + 0x18]
push 8
xor eax, eax
xor ecx, ecx
call fcn.00403c9b
push esi
push 1
push 0x401
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x13
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi]
call ebp
mov eax, dword [esp + 0x10]
pop edi
mov dword [ebx + 0x14], 1
mov dword [eax], esi
pop esi
xor eax, eax
pop ebp
ret 4

Function at 0x45326e
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esi + 0xdc]
and dword [esi + 0xdc], 0
cmp dword [esp + 8], 0
push edi
jne 0x4532a9
test ebx, ebx
mov edi, dword [esi + 0x60]
je 0x45329b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
mov eax, 0xff
je 0x45329d
mov eax, edi
push 5
push eax
push esi
call fcn.0045250b
mov dword [esi + 0x60], edi
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 0
je 0x4532ea
push dword [esi + 4]
mov edi, dword [esi + 0x60]
call dword [sym.imp.USER32.dll_BringWindowToTop]
test ebx, ebx
mov eax, 0xff
jne 0x4532dc
mov eax, edi
push eax
push 5
push esi
call fcn.0045250b
mov dword [esi + 0x60], edi
jmp 0x4532f5
push 0xffffffffffffffff
push dword [esi + 0x60]
push esi
call fcn.0045250b
pop edi
mov dword [esi + 0xdc], ebx
pop ebx
ret 4

Function at 0x454445
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, eax
test ebx, ebx
je 0x454463
push 0
push dword [esi + 4]
call edi
push 0xffffffffffffffe6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClassLongW]
cmp dword [esp + 0xc], 0
je 0x45447c
or eax, 0x20000
jmp 0x454481
and eax, 0xfffdffff
push eax
push 0xffffffffffffffe6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetClassLongW]
test ebx, ebx
je 0x454498
push 5
push dword [esi + 4]
call edi
pop edi
pop ebx
ret 4
Function at 0x4565a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4c82ab
call fcn.004c7e20
sub esp, 0x210
mov eax, dword [0x4ed384]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, ecx
jne 0x4565e0
push dword [esi]
call ebx
cmp eax, 0xffffffff
jne 0x4565e0
xor eax, eax
jmp 0x456769
test al, 0x10
je 0x4565ec
push 5
pop eax
jmp 0x456769
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push eax
call edi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
je 0x456765
push str..lnk
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4566bc
and dword [ebp + 8], eax
and dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp + 8]
call fcn.0045624d
test eax, eax
je 0x4566ab
push 2
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
xor ecx, ecx
call fcn.004562a4
test eax, eax
je 0x4566ab
lea eax, [ebp - 0x218]
push eax
mov eax, esi
call fcn.00402fb6
push dword [esi]
call ebx
cmp eax, 0xffffffff
jne 0x45667f
or dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x456678
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x456768
test al, 0x10
je 0x45669c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x456694
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
pop eax
jmp 0x456768
mov esi, dword [esi]
push 0x2e
push esi
call edi
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4566bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x21c], 0
je 0x456765
push dword [ebp - 0x21c]
lea edi, [ebp + 8]
call fcn.00402f03
mov esi, dword [ebp + 8]
push 0x4d34cc
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x456701
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x4566fd
push eax
call fcn.004013aa
push 3
jmp 0x456696
mov edi, 0x4f3508
push esi
mov eax, edi
call fcn.004a8e85
test eax, eax
je 0x45672a
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x456723
push eax
call fcn.004013aa
push 4
jmp 0x456696
cmp dword [ebp + 0xc], 0
je 0x456754
push esi
mov eax, edi
call fcn.004a8e73
test eax, eax
je 0x456754
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x45674d
push eax
call fcn.004013aa
push 2
jmp 0x456696
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x456765
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c7b01
leave
ret
Function at 0x4578f1
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4cd7a3
call fcn.004c7e20
sub esp, 0x26c
mov eax, dword [0x4ed384]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 0x14]
mov eax, edi
mov dword [ebx + 0x2c], 1
call fcn.00402fb6
and dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push dword [ebp + 8]
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
je 0x457b07
push str..ttbl
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x457967
push eax
push dword [ebp + 8]
push ebx
call fcn.00458770
jmp 0x457b09
push str..m3u
push dword [ebp - 0x220]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x457981
push eax
jmp 0x45799d
push str..m3u8
push dword [ebp - 0x220]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4579b6
push 0xfde9
mov ecx, dword [ebp + 8]
push ebx
call fcn.0045a4bc
jmp 0x457b09
and dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x4579fc
and word [eax + 2], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebx + 0x10]
lea esi, [ebp - 0x220]
call fcn.00402eaa
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 2
call fcn.004a39d8
push 0
mov ecx, ebx
lea eax, [ebp - 0x278]
call fcn.00457202
mov edi, dword [edi]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x224]
push 0
push eax
mov eax, edi
call fcn.00401754
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x250]
call fcn.004a39ec
test al, al
mov eax, dword [ebp - 0x224]
sete byte [ebp + 0xb]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x457a7f
push eax
call fcn.004013aa
lea esi, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.00457b22
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], 0x4d1010
call fcn.004a3441
cmp byte [ebp + 0xb], 0
mov eax, dword [ebp - 0x220]
jne 0x457af6
cmp dword [eax - 8], 0
je 0x457ac7
lea edi, [ebp - 0x220]
lea eax, [ebx + 0x10]
call fcn.00402f73
mov esi, ebx
call fcn.004ab264
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x457ae5
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x457b09
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x457b07
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004c7b01
pop edi
pop esi
pop ebx
leave
ret 4