joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478e2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
mov esi, eax
mov eax, 0x4cfe48
call fcn.00461114
mov edi, eax
test edi, edi
je 0x478eb8
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
call sub.SHELL32.DLL_SHGetDesktopFolder
test eax, eax
jne 0x478ea5
xor ebx, ebx
push 0
push ebx
push 0x150
push dword [esi]
call sub.USER32.DLL_SendMessageA
cmp eax, 0xffffffff
je 0x478ea5
cmp dword [eax + 4], 0
je 0x478e9c
push dword [eax + 4]
push edi
push 0
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jne 0x478e9c
push 0
push ebx
push 0x14e
push dword [esi]
call sub.USER32.DLL_SendMessageA
jmp 0x478ea5
inc ebx
cmp ebx, 0x80
jl 0x478e5e
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x478f67
lea edx, [ebp - 0x410]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov byte [ebp - 5], 0
xor edi, edi
push 0
push edi
push 0x150
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478f33
cmp dword [ebx], 0
jne 0x478f2a
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.004a3e80
pop ecx
push eax
xor edx, edx
mov dl, byte [ebp - 0x410]
mov dword [ebp - 0x10], edx
push dword [ebp - 0x10]
call fcn.004a3e80
pop ecx
pop ecx
cmp ecx, eax
jne 0x478f2a
push 0
push edi
push 0x14e
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov byte [ebp - 5], 1
jmp 0x478f33
inc edi
cmp edi, 0x80
jl 0x478ecf
cmp byte [ebp - 5], 0
jne 0x478f4e
push 0
lea ecx, [ebp - 0x410]
lea edx, [ebp - 0x410]
mov eax, esi
call fcn.00479138
cmp dword [0x4d27d4], 0
je 0x478f60
mov eax, esi
call fcn.004793f8
jmp 0x478f67
mov eax, esi
call fcn.004793a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478f70
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
mov ebx, eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push dword [ebx]
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0x400]
call fcn.00480ed8
lea edx, [ebp - 0x400]
push edx
push 0xffffffffffffffff
push 0x158
push dword [ebx]
call sub.USER32.DLL_SendMessageA
cmp eax, 0xffffffff
je 0x478fe5
push 0
push eax
push 0x14e
push dword [ebx]
call sub.USER32.DLL_SendMessageA
mov eax, ebx
call fcn.0047904c
cmp dword [0x4d27d4], 0
je 0x478fdc
mov eax, ebx
call fcn.004793f8
jmp 0x479045
mov eax, ebx
call fcn.004793a8
jmp 0x479045
cmp dword [0x4d27d4], 0
je 0x479011
lea eax, [ebp - 0x400]
call fcn.0040d1dc
test al, al
jne 0x479011
lea edx, [ebp - 0x400]
mov eax, 0x4cfe48
xor ecx, ecx
call fcn.0045ec68
jmp 0x479045
lea edx, [ebp - 0x400]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47903a
test al, 0x10
jne 0x47903a
lea edx, [ebp - 0x400]
mov eax, 0x4cfe48
xor ecx, ecx
call fcn.0045eaf0
jmp 0x479045
lea eax, [ebp - 0x400]
call fcn.00486498
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479678
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd3c
cmp ecx, 0x4e
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
jne 0x479759
mov edx, eax
mov ecx, dword [edx + 8]
sub ecx, 0xfffffcdb
je 0x4796a7
sub ecx, 5
je 0x4796c1
jmp 0x479755
cmp dword [eax + 0x118], 2
jne 0x4796ba
mov eax, 0x4d03a8
call fcn.00478f70
xor eax, eax
jmp 0x479764
mov ebx, eax
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x2c]
cmp dword [eax], 4
jne 0x4796d3
mov edi, dword [eax + 4]
jmp 0x4796d6
lea edi, [eax + 8]
mov edx, 8
cmp dword [eax], 4
je 0x4796e3
add edx, 0xfffffff8
test esi, 1
mov dword [ebp - 4], edx
je 0x479718
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x164]
or eax, 0x200
push eax
push 0x160
push ecx
push 0
push edi
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x479718
lea eax, [ebp - 0x158]
mov dword [ebx + 0x14], eax
test esi, 6
je 0x47974a
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x2c4]
or edx, 0x4001
push edx
push 0x160
push ecx
push 0
push edi
call sub.SHELL32.DLL_SHGetFileInfoA
mov eax, dword [ebp - 0x2c0]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], eax
or dword [ebx + 0xc], 0x10000000
xor eax, eax
jmp 0x479764
xor eax, eax
jmp 0x479764
push eax
push dword [ebp + 0xc]
push ecx
push edx
call sub.USER32.DLL_DefWindowProcA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47989c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov byte [ebp - 1], cl
push dword [ebp + 8]
mov ebx, edx
call sub.USER32.DLL_GetSysColor
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4798ce
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [edx*8 + 0x4b4d4c]
jmp 0x4798dc
mov eax, ebx
shl eax, 3
sub eax, ebx
mov ecx, dword [eax*8 + 0x4b4d50]
cmp byte [ebp - 1], 0
mov ebx, ecx
jne 0x47991b
push 2
push ebx
push dword [0x4bb918]
call sub.KERNEL32.DLL_FindResourceA
push eax
push dword [0x4bb918]
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x479909
mov edx, 4
jmp 0x47990d
movzx edx, word [eax + 0xe]
mov eax, edx
cmp eax, 8
je 0x47991b
mov dword [ebp - 0xc], 0x800080
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [0x4bb918]
call sub.COMCTL32.DLL_CreateMappedBitmap
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47af14
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
mov ebx, eax
push esi
cmp dword [ebx + 4], 0
je 0x47af31
push dword [ebx + 4]
call sub.USER32.DLL_DestroyWindow
xor eax, eax
mov dword [ebx + 4], eax
mov edx, str.ViewSmall
mov eax, str.GeneralToolbar
mov ecx, 1
call fcn.00463dec
test eax, eax
je 0x47b087
mov esi, 0x56000944
push 0
push dword [0x4bb91c]
push 0xd
push dword [0x4cfe34]
push 0
push 0
push 0
push 0
push esi
push 0
push str.ToolbarWindow32
push 0
call sub.USER32.DLL_CreateWindowExA
mov dword [ebx + 4], eax
push 0
push 0x14
push 0x41e
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
push 0x100010
push 0
push 0x41f
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
push 0x100010
push 0
push 0x420
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
push 0
mov edx, str.FolderUp.bmp
mov eax, 0x4d0674
mov ecx, 0xf
call fcn.0047e064
test eax, eax
jne 0x47afd2
mov eax, dword [ebx + 0x1c]
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ecx
push 1
push 0x413
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
push 0x4b51a8
push 1
push 0x414
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
lea ecx, [ebp - 0x58]
mov edx, 2
mov eax, ebx
call fcn.0047b10c
mov dword [ebp - 0x58], 0x38
mov dword [ebp - 0x54], 0x173
cmp dword [ebp - 0x50], 0
jne 0x47b028
or dword [ebp - 0x50], 1
or dword [ebp - 0x50], 4
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x34], edx
push 0x12
call sub.USER32.DLL_GetSysColor
mov dword [ebp - 0x4c], eax
push 0xf
call sub.USER32.DLL_GetSysColor
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x2c], 0
jne 0x47b05f
mov dword [ebp - 0x2c], 0x28
mov eax, dword [0x4d03a8]
lea edx, [ebp - 0x68]
push edx
push eax
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x30], ecx
push eax
push 0xffffffffffffffff
push 0x401
push dword [ebx + 8]
call sub.USER32.DLL_SendMessageA
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47dcdc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp esi, 0xa8
jne 0x47dcff
mov eax, ebx
call fcn.0047e6c0
mov al, 1
jmp 0x47de18
cmp esi, 0xa9
jne 0x47dd2b
push 1
push 0x4b5594
push 0
mov eax, 0x4f7
call fcn.00413388
push eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteA
mov al, 1
jmp 0x47de18
mov eax, ebx
call fcn.0047db74
mov edi, eax
cmp esi, 0xaa
jne 0x47dd5f
mov dword [ebx + 0x114], 0xffffffff
mov ecx, 0x4b5594
mov edx, str.ActivePath
mov eax, str.InterfaceThemes
call fcn.004639f0
jmp 0x47dde7
cmp esi, 0x3e8
jl 0x47dd6f
cmp esi, 0x468
jl 0x47dd76
xor eax, eax
jmp 0x47de18
push 0x2c
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.0049fc54
mov dword [ebp - 0x2c], 0x2c
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x20
push ecx
push 0
push esi
push edi
call sub.USER32.DLL_GetMenuItemInfoA
test eax, eax
jne 0x47dda9
xor eax, eax
jmp 0x47de18
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebx + 0x10c]
jb 0x47ddb8
xor eax, eax
jmp 0x47de18
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x114], edx
imul eax, dword [ebx + 0x114], 0x584
add eax, dword [ebx + 0x108]
call fcn.0040c4d0
mov ecx, eax
mov edx, str.ActivePath
mov eax, str.InterfaceThemes
call fcn.004639f0
cmp dword [ebx + 0x518], 0xffffffff
je 0x47ddfe
push 0
push dword [ebx + 0x518]
push edi
call sub.USER32.DLL_CheckMenuItem
push 8
push esi
push edi
call sub.USER32.DLL_CheckMenuItem
mov dword [ebx + 0x518], esi
xor edx, edx
mov eax, ebx
call fcn.0047dee8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffbfc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp dword [0x4d27d4], 0
je 0x47f7be
mov edx, 0x4de98c
mov eax, 0x4d0b94
xor ecx, ecx
call fcn.00458d64
mov edx, 0x4ded8c
mov eax, 0x4d0b94
xor ecx, ecx
call fcn.00458d38
jmp 0x47f7d4
push 0x4de98c
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov byte [0x4ded8c], 0
mov byte [0x4df18c], 0
push 0
push 0x47e8b0
push esi
push str.FAVORITESDLG
push dword [0x4bb918]
call sub.USER32.DLL_DialogBoxParamA
test eax, eax
jne 0x47f7fb
xor eax, eax
jmp 0x47f85c
cmp byte [ebp - 1], 0
je 0x47f85a
lea edx, [ebp - 0x804]
mov eax, 0x4de98c
mov ecx, 0x1000000
call fcn.004111c4
lea edx, [ebp - 0x1004]
mov eax, 0x4ded8c
mov ecx, 0x1000000
call fcn.004111c4
lea edx, [ebp - 0x1404]
mov eax, 0x4df18c
mov ecx, 0x1000000
call fcn.004111c4
lea edx, [ebp - 0x1404]
lea ecx, [ebp - 0x1004]
push edx
lea edx, [ebp - 0x804]
mov eax, ebx
call fcn.0047fc10
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4804bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x480810
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
test esi, esi
je 0x480923
push esi
call fcn.0049fe04
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x480923
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x480847
xor eax, eax
jmp 0x480928
call sub.USER32.DLL_EmptyClipboard
mov edi, dword [ebp - 4]
inc edi
push edi
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x48088d
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 8], eax
test eax, eax
je 0x48088d
mov edx, dword [ebp - 4]
inc edx
push edx
push esi
push dword [ebp - 8]
call fcn.0049fbe4
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
push 1
call sub.USER32.DLL_SetClipboardData
push edi
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x4808d5
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 8], eax
test eax, eax
je 0x4808d5
mov edx, dword [ebp - 4]
inc edx
push edx
push esi
push dword [ebp - 8]
call fcn.0049fbe4
add esp, 0xc
push dword [ebp - 8]
push dword [ebp - 8]
call sub.USER32.DLL_CharToOemA
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
push 7
call sub.USER32.DLL_SetClipboardData
call fcn.0041113c
test eax, eax
je 0x48091e
mov ecx, edi
add ecx, ecx
push ecx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x48091e
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 8], eax
test eax, eax
je 0x48091e
push edi
push dword [ebp - 8]
push 0xffffffffffffffff
push esi
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
push 0xd
call sub.USER32.DLL_SetClipboardData
call sub.USER32.DLL_CloseClipboard
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x486498
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff79c
push ebx
push esi
mov ebx, eax
lea esi, [ebp - 0x864]
push ebx
mov eax, 0x6c
call fcn.00413388
push eax
lea edx, [ebp - 0x464]
push edx
call fcn.004a2e18
add esp, 0xc
jmp 0x486517
push 0x400
push esi
push ebx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
test eax, eax
je 0x4864f3
push esi
push ebx
call fcn.0049fd88
add esp, 8
test eax, eax
je 0x4864f3
mov eax, esi
xor edx, edx
call fcn.00466ea8
test al, al
jne 0x486524
push 0x15
mov eax, 0x66
call fcn.00413388
push eax
lea edx, [ebp - 0x464]
push edx
push dword [0x4cfe34]
call sub.USER32.DLL_MessageBoxA
cmp eax, 2
je 0x486540
xor edx, edx
mov eax, ebx
call fcn.00466ea8
test al, al
je 0x4864c8
mov eax, 0x4cfe48
call fcn.00460c2c
test al, al
je 0x486540
mov eax, 0x4cfe48
xor ecx, ecx
xor edx, edx
call fcn.0045b204
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x486548
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
lea edx, [ebp - 0xc]
push ebx
mov ebx, eax
push esi
push edi
mov eax, dword [ebx + 0x2c]
add eax, 0x41
push eax
push str._c:_
push edx
call fcn.004a2e18
add esp, 0xc
lea ecx, [ebp - 0x170]
lea eax, [ebp - 0xc]
push 0x301
push 0x160
push ecx
push 0
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
test byte [ebx + 0x10], 1
je 0x4865b5
push 0xd
call sub.USER32.DLL_GetSysColor
push eax
push dword [ebx + 0x18]
call sub.GDI32.DLL_SetBkColor
mov edi, eax
push 0xe
call sub.USER32.DLL_GetSysColor
push eax
push dword [ebx + 0x18]
call sub.GDI32.DLL_SetTextColor
mov dword [ebp - 0x10], eax
push 0
push 0
push 0x4b5e28
lea eax, [ebx + 0x1c]
push eax
push 2
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call sub.GDI32.DLL_ExtTextOutA
push 0x31
call sub.USER32.DLL_GetSystemMetrics
mov esi, eax
push 0x32
call sub.USER32.DLL_GetSystemMetrics
push 3
push 0
push 0
push eax
push esi
push dword [ebp - 0x170]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call sub.USER32.DLL_DrawIconEx
push dword [ebp - 0x170]
call sub.USER32.DLL_DestroyIcon
lea eax, [ebp - 0x164]
push eax
call fcn.0049fe04
pop ecx
push eax
lea edx, [ebp - 0x164]
push edx
mov ecx, dword [ebx + 0x20]
add ecx, 2
push ecx
add esi, dword [ebx + 0x1c]
add esi, 7
push esi
push dword [ebx + 0x18]
call sub.GDI32.DLL_TextOutA
test byte [ebx + 0x10], 1
je 0x48664e
push edi
push dword [ebx + 0x18]
call sub.GDI32.DLL_SetBkColor
push dword [ebp - 0x10]
push dword [ebx + 0x18]
call sub.GDI32.DLL_SetTextColor
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487430
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0041113c
test eax, eax
je 0x487459
mov eax, dword [ebp - 4]
call fcn.00481677
jmp 0x487576
xor ebx, ebx
xor esi, esi
mov eax, 0x4cfe48
xor ecx, ecx
xor edx, edx
call fcn.004607bc
jmp 0x4874bb
lea edx, [ebp - 0x1034]
lea eax, [ebp - 0xc34]
call fcn.0040adf8
lea ecx, [ebp - 0x1034]
push ecx
call fcn.0049fe04
pop ecx
mov edi, eax
inc edi
lea eax, [edi + esi + 1]
push eax
push ebx
call fcn.0049ebb8
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x487576
lea edx, [ebp - 0x1034]
push edx
lea ecx, [esi + ebx]
push ecx
call fcn.0049fdd4
add esp, 8
add esi, edi
lea edx, [ebp - 0xc34]
mov eax, 0x4cfe48
xor ecx, ecx
call fcn.004607bc
test al, al
jne 0x48746d
test esi, esi
jne 0x4874fa
push 0x30
mov eax, 0x65
call fcn.00413388
push eax
mov eax, 0x14c
call fcn.00413388
push eax
push dword [0x4cfe34]
call sub.USER32.DLL_MessageBoxA
jmp 0x487576
mov byte [ebx + esi], 0
push 0x1e
push 0
lea edx, [ebp - 0x1054]
push edx
call fcn.0049fc54
add esp, 0xc
mov ecx, dword [0x4cfe34]
mov dword [ebp - 0x1054], ecx
mov dword [ebp - 0x1050], 3
cmp dword [ebp - 4], 0
je 0x487536
mov word [ebp - 0x1044], 0x40
mov dword [ebp - 0x104c], ebx
lea eax, [ebp - 0x1054]
push eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
sete dl
and edx, 1
test ebx, ebx
je 0x48755b
push ebx
call fcn.0049eba8
pop ecx
mov eax, 0x4d0370
call fcn.00461440
mov edx, 0x4b5e28
mov eax, 0x4cfe48
xor ecx, ecx
call fcn.0045b204
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48af08
Capabilities:
Copy file
Get file attributes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff3f8
push ebx
push esi
push edi
mov esi, eax
cmp dword [0x4d27dc], 0
jne 0x48b1a2
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.SHELL32.DLL_DragQueryFileA
mov edi, eax
cmp edi, 1
jne 0x48b10a
mov word [ebp - 0xc08], 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.0041113c
test eax, eax
je 0x48af7b
push 0x400
lea edx, [ebp - 0xc08]
push edx
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileW
lea ecx, [ebp - 8]
push ecx
call sub.USER32.DLL_GetCursorPos
push dword [ebp - 4]
push dword [ebp - 8]
call sub.USER32.DLL_WindowFromPoint
cmp dword [0x4d27d4], 0
je 0x48afa8
cmp eax, dword [0x4cfe48]
je 0x48afd7
cmp eax, dword [0x4d0374]
je 0x48afd7
lea edx, [ebp - 0x408]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
test al, 0x10
jne 0x48afd7
push 1
lea ecx, [ebp - 0xc08]
lea edx, [ebp - 0x408]
mov eax, 0x4cfe48
call fcn.0045e458
dec eax
je 0x48b1a2
push 7
push str.rarreg.
lea eax, [ebp - 0x408]
call fcn.0040c4d0
push eax
call fcn.004a0004
add esp, 0xc
test eax, eax
jne 0x48b10a
push 0x400
lea edx, [ebp - 0x1008]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push str.rarreg.key
lea eax, [ebp - 0x1008]
call fcn.0040c4d0
push eax
call fcn.0049fdd4
add esp, 8
push 0
lea edx, [ebp - 0x1008]
push edx
lea ecx, [ebp - 0x408]
push ecx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x48b07e
lea eax, [ebp - 0x1008]
call fcn.0040cbd4
lea eax, [ebp - 0x1008]
call fcn.0040ca00
push str.rarreg.key
lea edx, [ebp - 0x1008]
push edx
call fcn.0049fcf8
add esp, 8
push 0
lea ecx, [ebp - 0x1008]
push ecx
lea eax, [ebp - 0x408]
push eax
call sub.KERNEL32.DLL_CopyFileA
push dword [0x4cfe34]
call sub.USER32.DLL_SetForegroundWindow
push 1
push dword [0x4cfe34]
call sub.USER32.DLL_FlashWindow
mov al, 1
call fcn.0040f3d0
mov byte [0x4bb8f4], al
push 0
push dword [0x4cfe34]
call sub.USER32.DLL_FlashWindow
cmp dword [0x4d27d4], 0
je 0x48b0c4
mov eax, 0x4cfe48
call fcn.0045cb14
jmp 0x48b0d5
mov edx, 0x4b5e28
mov eax, 0x4cfe48
xor ecx, ecx
call fcn.0045b204
cmp byte [0x4bb8f4], 0
je 0x48b1a2
push 0x30
mov eax, 0x368
call fcn.00413388
push eax
mov eax, 0x367
call fcn.00413388
push eax
push dword [0x4cfe34]
call sub.USER32.DLL_MessageBoxA
jmp 0x48b1a2
xor eax, eax
call fcn.0044b600
cmp dword [0x4d27d4], 0
je 0x48b124
mov dword [0x4c5a50], 1
mov eax, dword [0x4c8488]
call fcn.00410788
xor ebx, ebx
cmp edi, ebx
jle 0x48b187
mov word [ebp - 0x1c08], 0
push 0x400
lea eax, [ebp - 0x1408]
push eax
push ebx
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.0041113c
test eax, eax
je 0x48b16c
push 0x400
lea edx, [ebp - 0x1c08]
push edx
push ebx
push esi
call sub.SHELL32.DLL_DragQueryFileW
lea ecx, [ebp - 0x1c08]
lea edx, [ebp - 0x1408]
mov eax, dword [0x4c8488]
call fcn.004107c0
inc ebx
cmp edi, ebx
jg 0x48b134
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne al
and eax, 1
mov cl, 1
mov edx, eax
xor eax, eax
call fcn.0044c790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b1d4
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff2b0
push ebx
push esi
mov byte [ebp - 1], al
mov dword [0x4d27ec], 1
test dl, dl
je 0x48b333
lea eax, [ebp - 0x410]
mov edx, 0x400
call fcn.00466df0
lea eax, [ebp - 0x410]
call fcn.0040ca00
lea edx, [ebp - 0x410]
lea ecx, [ebp - 0x810]
push edx
push str._sRar_
push ecx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
lea edx, [ebp - 0x950]
push edx
lea ecx, [ebp - 0x810]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp eax, 0xffffffff
sete al
and eax, 1
jmp 0x48b31c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x410]
sub edx, dword [ebp - 0x948]
push eax
cmp edx, 8
lea edx, [ebp - 0xd50]
setae bl
and ebx, 1
push edx
call fcn.0049fdd4
add esp, 8
lea ecx, [ebp - 0x924]
push ecx
lea eax, [ebp - 0xd50]
push eax
call fcn.0049fcf8
add esp, 8
test byte [ebp - 0x950], 0x10
je 0x48b2fa
push 6
push str.Rar_DI
lea edx, [ebp - 0x924]
push edx
call fcn.0049fe60
add esp, 0xc
test eax, eax
jne 0x48b2c1
call fcn.0041113c
cmp eax, 4
jne 0x48b2c5
xor ecx, ecx
jmp 0x48b2ca
mov ecx, 1
mov byte [ebp - 0xd], cl
lea eax, [ebp - 0xd50]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x48b307
test bl, bl
je 0x48b2e7
cmp byte [ebp - 1], 0
je 0x48b2ed
cmp byte [ebp - 0xd], 0
je 0x48b307
lea eax, [ebp - 0xd50]
call fcn.004669fc
jmp 0x48b307
lea eax, [ebp - 0xd50]
xor edx, edx
call fcn.00466be8
lea ecx, [ebp - 0x950]
push ecx
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
sete al
and eax, 1
test eax, eax
jne 0x48b32d
cmp dword [0x4d27ec], 1
je 0x48b256
push esi
call sub.KERNEL32.DLL_FindClose
cmp byte [ebp - 1], 0
jne 0x48b370
cmp byte [0x4bb8f4], 0
je 0x48b370
push 0
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
mov al, 1
call fcn.0048b380
mov byte [0x4bb8f4], al
cmp byte [0x4bb8f4], 0
jne 0x48b370
mov eax, 0x4b685d
xor edx, edx
call fcn.00444b10
xor ecx, ecx
mov dword [0x4d27ec], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b51c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff7d0
push ebx
cmp dword [0x4d27d4], 0
je 0x48b6ca
lea edx, [ebp - 0x404]
mov eax, 0x4d0b94
xor ecx, ecx
call fcn.00458d64
mov edx, str.History
mov eax, 0x4b63b5
mov ecx, 1
call fcn.00463dec
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x48b58b
push 0x4b5e28
push 0x400
lea ecx, [ebp - 0x804]
mov edx, str.SaveArcFolder
mov eax, str.InterfaceMisc
call fcn.00463c14
cmp byte [ebp - 0x804], 0
jne 0x48b59f
lea eax, [ebp - 0x804]
call fcn.00465fa8
lea edx, [ebp - 0x804]
push edx
lea ecx, [ebp - 0x1008]
push ecx
call fcn.0049fdd4
add esp, 8
lea eax, [ebp - 0x1008]
call fcn.0040ca00
lea eax, [ebp - 0x404]
call fcn.0040c4d0
push eax
lea edx, [ebp - 0x1008]
push edx
call fcn.0049fcf8
add esp, 8
push 0
push 1
mov eax, 0x5af
call fcn.00413388
mov edx, eax
lea ecx, [ebp - 0x1008]
mov eax, dword [0x4cfe34]
call fcn.0044f828
test al, al
je 0x48b6ca
lea edx, [ebp - 0x804]
lea eax, [ebp - 0x1008]
mov ecx, 0x400
call fcn.0040ca48
test bl, bl
je 0x48b632
lea ecx, [ebp - 0x804]
mov edx, str.SaveArcFolder
mov eax, str.InterfaceMisc
call fcn.004639f0
lea eax, [ebp - 0x404]
push eax
call fcn.0049fe04
pop ecx
lea edx, [ebp - 0x1008]
mov byte [ebp + eax - 0x403], 0
push edx
call fcn.0049fe04
pop ecx
mov byte [ebp + eax - 0x1007], 0
push 0x1e
push 0
lea ecx, [ebp - 0x1830]
push ecx
call fcn.0049fc54
mov dword [ebp - 0x182c], 2
add esp, 0xc
lea eax, [ebp - 0x404]
mov dword [ebp - 0x1828], eax
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x1824], edx
lea ecx, [ebp - 0x1830]
push ecx
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je 0x48b6ca
push dword [ebp - 0x1824]
push dword [ebp - 0x1828]
mov eax, 0x5b0
call fcn.00413388
push eax
call fcn.0048a820
add esp, 0xc
mov eax, 0x4bb2e4
call fcn.0042ed78
pop ebx
mov esp, ebp
pop ebp
ret