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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbf4
mov esi, eax
mov eax, 0x4c4e38
call fcn.0045e664
mov edi, eax
test edi, edi
je 0x4754bb
xor eax, eax
mov dword [esp], eax
push esp
call sub.SHELL32.DLL_SHGetDesktopFolder
test eax, eax
jne 0x4754a8
xor ebx, ebx
push 0
push ebx
push 0x150
push dword [esi]
call sub.USER32.DLL_SendMessageA
cmp eax, 0xffffffff
je 0x4754a8
mov edx, dword [eax + 4]
test edx, edx
je 0x47549f
push edx
push edi
push 0
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x47549f
push 0
push ebx
push 0x14e
push dword [esi]
call sub.USER32.DLL_SendMessageA
jmp 0x4754a8
inc ebx
cmp ebx, 0x80
jl 0x475461
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x475561
lea ecx, [esp + 0xc]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov byte [esp + 4], 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 0x475530
cmp dword [ebx], 0
jne 0x475527
movzx ebp, byte [ebx + 8]
push ebp
call fcn.0049bc44
pop ecx
push eax
xor eax, eax
mov al, byte [esp + 0x10]
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
call fcn.0049bc44
pop ecx
pop edx
cmp edx, eax
jne 0x475527
push 0
push edi
push 0x14e
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov byte [esp + 4], 1
jmp 0x475530
inc edi
cmp edi, 0x80
jl 0x4754d1
cmp byte [esp + 4], 0
jne 0x475548
push 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
mov eax, esi
call fcn.00475708
cmp dword [0x4c77c4], 0
je 0x47555a
mov eax, esi
call fcn.004759c8
jmp 0x475561
mov eax, esi
call fcn.0047597c
add esp, 0x40c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
push dword [ebx]
call sub.USER32.DLL_GetWindowTextA
mov eax, esp
call fcn.0047d364
mov edx, esp
push edx
push 0xffffffffffffffff
push 0x158
push dword [ebx]
call sub.USER32.DLL_SendMessageA
cmp eax, 0xffffffff
je 0x4755d4
push 0
push eax
push 0x14e
push dword [ebx]
call sub.USER32.DLL_SendMessageA
mov eax, ebx
call fcn.00475628
cmp dword [0x4c77c4], 0
je 0x4755cb
mov eax, ebx
call fcn.004759c8
jmp 0x47561e
mov eax, ebx
call fcn.0047597c
jmp 0x47561e
cmp dword [0x4c77c4], 0
je 0x4755f8
mov eax, esp
call fcn.0040c890
test al, al
jne 0x4755f8
mov edx, esp
mov eax, 0x4c4e38
xor ecx, ecx
call fcn.0045c1f8
jmp 0x47561e
push esp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x475617
test al, 0x10
jne 0x475617
mov edx, esp
mov eax, 0x4c4e38
xor ecx, ecx
call fcn.0045c088
jmp 0x47561e
mov eax, esp
call fcn.00482784
add esp, 0x400
pop ebx
ret
Function at 0x475c7c
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 0x475d5d
mov edx, eax
mov ecx, dword [edx + 8]
sub ecx, 0xfffffcdb
je 0x475cab
sub ecx, 5
je 0x475cc5
jmp 0x475d59
cmp dword [eax + 0x118], 2
jne 0x475cbe
mov eax, 0x4c5398
call fcn.0047556c
xor eax, eax
jmp 0x475d68
mov ebx, eax
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x2c]
cmp dword [eax], 4
jne 0x475cd7
mov edi, dword [eax + 4]
jmp 0x475cda
lea edi, [eax + 8]
mov edx, 8
cmp dword [eax], 4
je 0x475ce7
add edx, 0xfffffff8
test esi, 1
mov dword [ebp - 4], edx
je 0x475d1c
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 0x475d1c
lea eax, [ebp - 0x158]
mov dword [ebx + 0x14], eax
test esi, 6
je 0x475d4e
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 0x475d68
xor eax, eax
jmp 0x475d68
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 0x475e94
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 0x475ec6
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [edx*8 + 0x4ab5fc]
jmp 0x475ed4
mov eax, ebx
shl eax, 3
sub eax, ebx
mov ecx, dword [eax*8 + 0x4ab600]
cmp byte [ebp - 1], 0
mov ebx, ecx
jne 0x475f13
push 2
push ebx
push dword [0x4b2108]
call sub.KERNEL32.DLL_FindResourceA
push eax
push dword [0x4b2108]
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x475f01
mov edx, 4
jmp 0x475f05
movzx edx, word [eax + 0xe]
mov eax, edx
cmp eax, 8
je 0x475f13
mov dword [ebp - 0xc], 0x800080
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [0x4b2108]
call sub.COMCTL32.DLL_CreateMappedBitmap
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x477434
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff98
mov ebx, eax
lea edi, [esp + 8]
mov eax, dword [ebx + 4]
test eax, eax
je 0x477453
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
mov edx, str.ViewSmall
mov eax, str.GeneralToolbar
mov ecx, 1
call fcn.0046136c
test eax, eax
je 0x4775a6
mov esi, 0x56000944
push 0
push dword [0x4b210c]
push 0xd
push dword [0x4c4e24]
push 0
push 0
push 0
push 0
push esi
push 0
push str.ToolbarWindow32
push 0
call sub.USER32.DLL_CreateWindowExA
mov ebp, eax
mov dword [ebx + 4], ebp
push 0
push 0x14
push 0x41e
push ebp
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, 0x4c5664
mov ecx, 0xf
call fcn.0047a524
test eax, eax
jne 0x4774f4
mov eax, dword [ebx + 0x1c]
xor edx, edx
mov ecx, esp
mov dword [esp], edx
mov dword [esp + 4], eax
push ecx
push 1
push 0x413
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
push 0x4aba58
push 1
push 0x414
push dword [ebx + 4]
call sub.USER32.DLL_SendMessageA
mov ecx, edi
mov edx, 2
mov eax, ebx
call fcn.0047762c
mov dword [edi], 0x38
mov dword [edi + 4], 0x173
cmp dword [edi + 8], 0
jne 0x477548
or dword [edi + 8], 1
or dword [edi + 8], 4
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x34], 2
mov dword [edi + 0x24], edx
push 0x12
call sub.USER32.DLL_GetSysColor
mov dword [edi + 0xc], eax
push 0xf
call sub.USER32.DLL_GetSysColor
mov dword [edi + 0x10], eax
cmp dword [edi + 0x2c], 0
jne 0x47757f
mov dword [edi + 0x2c], 0x28
mov eax, dword [0x4c5398]
lea edx, [esp + 0x58]
push edx
push eax
call sub.USER32.DLL_GetClientRect
mov ecx, dword [esp + 0x64]
mov dword [edi + 0x28], ecx
push edi
push 0xffffffffffffffff
push 0x401
push dword [ebx + 8]
call sub.USER32.DLL_SendMessageA
add esp, 0x68
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47a1a4
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov esi, edx
mov ebx, eax
cmp esi, 0xa8
jne 0x47a1c5
mov eax, ebx
call fcn.0047ab68
mov al, 1
jmp 0x47a2d6
cmp esi, 0xa9
jne 0x47a1f1
push 1
push 0x4abe44
push 0
mov eax, 0x4f7
call fcn.004125b4
push eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteA
mov al, 1
jmp 0x47a2d6
mov eax, ebx
call fcn.0047a05c
mov edi, eax
cmp esi, 0xaa
jne 0x47a225
mov dword [ebx + 0x114], 0xffffffff
mov ecx, 0x4abe44
mov edx, str.ActivePath
mov eax, str.InterfaceThemes
call fcn.00460f78
jmp 0x47a2a8
cmp esi, 0x3e8
jl 0x47a235
cmp esi, 0x468
jl 0x47a23c
xor eax, eax
jmp 0x47a2d6
push 0x2c
push 0
lea edx, [esp + 8]
push edx
call fcn.00497ae0
add esp, 0xc
mov dword [esp], 0x2c
mov dword [esp + 4], 0x20
push esp
push 0
push esi
push edi
call sub.USER32.DLL_GetMenuItemInfoA
test eax, eax
jne 0x47a26e
xor eax, eax
jmp 0x47a2d6
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x10c]
jb 0x47a27e
xor eax, eax
jmp 0x47a2d6
mov ebp, eax
mov dword [ebx + 0x114], ebp
imul eax, ebp, 0x584
add eax, dword [ebx + 0x108]
call fcn.0040bd0c
mov ecx, eax
mov edx, str.ActivePath
mov eax, str.InterfaceThemes
call fcn.00460f78
mov eax, dword [ebx + 0x518]
cmp eax, 0xffffffff
je 0x47a2bc
push 0
push eax
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.0047a3a4
mov al, 1
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47bc10
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffff004
mov esi, edx
mov ebx, eax
push eax
add esp, 0xfffffbfc
cmp dword [0x4c77c4], 0
mov byte [esp], cl
je 0x47bc53
mov edx, 0x4d30b0
mov eax, 0x4c5b84
xor ecx, ecx
call fcn.00457568
mov edx, 0x4d34b0
mov eax, 0x4c5b84
xor ecx, ecx
call fcn.0045753c
jmp 0x47bc69
push 0x4d30b0
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov byte [0x4d34b0], 0
mov byte [0x4d38b0], 0
push 0
push 0x47ad48
push esi
push str.FAVORITESDLG
push dword [0x4b2108]
call sub.USER32.DLL_DialogBoxParamA
test eax, eax
jne 0x47bc90
xor eax, eax
jmp 0x47bcf1
cmp byte [esp], 0
je 0x47bcef
lea edx, [esp + 4]
mov eax, 0x4d30b0
mov ecx, 0x1000000
call fcn.00410498
lea edx, [esp + 0x804]
mov eax, 0x4d34b0
mov ecx, 0x1000000
call fcn.00410498
lea edx, [esp + 0x1004]
mov eax, 0x4d38b0
mov ecx, 0x1000000
call fcn.00410498
lea edx, [esp + 0x1004]
mov eax, ebx
push edx
lea edx, [esp + 8]
lea ecx, [esp + 0x808]
call fcn.0047c0ac
mov al, 1
add esp, 0x1404
pop esi
pop ebx
ret

Function at 0x47c94c
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x47cbfc
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
mov eax, ebx
call fcn.00463b80
test al, al
jne 0x47cc14
xor eax, eax
jmp 0x47cc4f
push 0
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
push ebx
call fcn.0049a824
pop ecx
push ebx
lea edx, [esp + 4]
push edx
call fcn.00497c60
add esp, 8
push 0x5c
lea ecx, [esp + 4]
push ecx
call fcn.00497d45
add esp, 8
mov ebx, eax
test eax, eax
je 0x47cc49
mov byte [ebx], 0
push esp
call sub.KERNEL32.DLL_RemoveDirectoryA
add esp, 0x400
pop ebx
ret

Function at 0x47ccb4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
test esi, esi
je 0x47cdb6
push esi
call fcn.00497c90
pop ecx
mov dword [esp], eax
test eax, eax
je 0x47cdb6
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x47cce7
xor eax, eax
jmp 0x47cdbb
call sub.USER32.DLL_EmptyClipboard
mov edi, dword [esp]
inc edi
push edi
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x47cd2a
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov ebp, eax
test eax, eax
je 0x47cd2a
mov edx, dword [esp]
inc edx
push edx
push esi
push ebp
call fcn.00497a70
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 0x47cd6b
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov ebp, eax
test eax, eax
je 0x47cd6b
mov edx, dword [esp]
inc edx
push edx
push esi
push ebp
call fcn.00497a70
add esp, 0xc
push ebp
push ebp
call sub.USER32.DLL_CharToOemA
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
push 7
call sub.USER32.DLL_SetClipboardData
call fcn.00410420
test eax, eax
je 0x47cdb1
mov ecx, edi
add ecx, ecx
push ecx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x47cdb1
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov ebp, eax
test eax, eax
je 0x47cdb1
push edi
push ebp
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 edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482784
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffff79c
mov ebx, eax
lea esi, [esp + 0x464]
push ebx
mov eax, 0x6c
call fcn.004125b4
push eax
lea edx, [esp + 8]
push edx
call fcn.0049abc0
add esp, 0xc
jmp 0x4827fd
push 0x400
push esi
push ebx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
test eax, eax
je 0x4827db
push esi
push ebx
call fcn.00497c14
add esp, 8
test eax, eax
je 0x4827db
mov eax, esi
xor edx, edx
call fcn.00463e3c
test al, al
jne 0x48280a
push 0x15
mov eax, 0x66
call fcn.004125b4
push eax
lea edx, [esp + 8]
push edx
push dword [0x4c4e24]
call sub.USER32.DLL_MessageBoxA
cmp eax, 2
je 0x482824
xor edx, edx
mov eax, ebx
call fcn.00463e3c
test al, al
je 0x4827b0
mov eax, 0x4c4e38
call fcn.0045e180
test al, al
je 0x482824
mov eax, 0x4c4e38
xor edx, edx
call fcn.00458834
add esp, 0x864
pop esi
pop ebx
ret

Function at 0x482830
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
add esp, 0xfffffe94
mov eax, dword [ebx + 0x2c]
add eax, 0x41
push eax
push str._c:_
lea edx, [esp + 8]
push edx
call fcn.0049abc0
add esp, 0xc
push 0x301
push 0x160
lea ecx, [esp + 0x14]
push ecx
push 0
lea eax, [esp + 0x10]
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
test byte [ebx + 0x10], 1
je 0x48289a
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 ebp, eax
push 0
push 0
push 0x4ac6d8
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 [esp + 0x20]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call sub.USER32.DLL_DrawIconEx
push dword [esp + 0xc]
call sub.USER32.DLL_DestroyIcon
lea eax, [esp + 0x18]
push eax
call fcn.00497c90
pop ecx
push eax
lea edx, [esp + 0x1c]
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 0x482929
push edi
push dword [ebx + 0x18]
call sub.GDI32.DLL_SetBkColor
push ebp
push dword [ebx + 0x18]
call sub.GDI32.DLL_SetTextColor
add esp, 0x16c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4836d8
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
push eax
add esp, 0xffffffb0
mov ebp, eax
call fcn.00410420
test eax, eax
je 0x4836fd
mov eax, ebp
call fcn.0047da9f
jmp 0x483817
xor ebx, ebx
xor esi, esi
mov eax, 0x4c4e38
xor ecx, ecx
xor edx, edx
call fcn.0045dd34
jmp 0x48375e
lea edx, [esp + 0xc30]
mov eax, esp
call fcn.0040abb0
lea ecx, [esp + 0xc30]
push ecx
call fcn.00497c90
pop ecx
mov edi, eax
inc edi
lea eax, [edi + esi + 1]
push eax
push ebx
call fcn.00496a10
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x483817
lea edx, [esp + 0xc30]
push edx
lea ecx, [esi + ebx]
push ecx
call fcn.00497c60
add esp, 8
add esi, edi
mov edx, esp
mov eax, 0x4c4e38
xor ecx, ecx
call fcn.0045dd34
test al, al
jne 0x483711
test esi, esi
jne 0x483799
push 0x30
mov eax, 0x65
call fcn.004125b4
push eax
mov eax, 0x14c
call fcn.004125b4
push eax
push dword [0x4c4e24]
call sub.USER32.DLL_MessageBoxA
jmp 0x483817
mov byte [ebx + esi], 0
push 0x1e
push 0
lea edx, [esp + 0x1038]
push edx
call fcn.00497ae0
add esp, 0xc
mov ecx, dword [0x4c4e24]
mov dword [esp + 0x1030], ecx
mov dword [esp + 0x1034], 3
test ebp, ebp
je 0x4837d7
mov word [esp + 0x1040], 0x40
mov dword [esp + 0x1038], ebx
lea eax, [esp + 0x1030]
push eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
sete dl
and edx, 1
test ebx, ebx
je 0x4837fe
push ebx
call fcn.00496a00
pop ecx
mov eax, 0x4c5360
call fcn.0045e978
mov edx, 0x4ac6d8
mov eax, 0x4c4e38
call fcn.00458834
add esp, 0x1050
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x487004
Capabilities:
Copy file
Get file attributes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
mov esi, eax
push eax
add esp, 0xfffff3f8
cmp dword [0x4c77cc], 0
jne 0x48729e
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.SHELL32.DLL_DragQueryFileA
mov edi, eax
cmp edi, 1
jne 0x4871ff
mov word [esp + 0x408], 0
push 0x400
lea eax, [esp + 0xc]
push eax
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.00410420
test eax, eax
je 0x487075
push 0x400
lea edx, [esp + 0x40c]
push edx
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileW
push esp
call sub.USER32.DLL_GetCursorPos
push dword [esp + 4]
push dword [esp + 4]
call sub.USER32.DLL_WindowFromPoint
cmp dword [0x4c77c4], 0
je 0x4870a1
cmp eax, dword [0x4c4e38]
je 0x4870cd
cmp eax, dword [0x4c5364]
je 0x4870cd
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
test al, 0x10
jne 0x4870cd
push 1
lea ecx, [esp + 0x40c]
lea edx, [esp + 0xc]
mov eax, 0x4c4e38
call fcn.0045b9fc
dec eax
je 0x48729e
push 7
push str.rarreg.
lea eax, [esp + 0x10]
call fcn.0040bd0c
push eax
call fcn.00497e90
add esp, 0xc
test eax, eax
jne 0x4871ff
push 0x400
lea edx, [esp + 0xc0c]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push str.rarreg.key
lea eax, [esp + 0xc0c]
call fcn.0040bd0c
push eax
call fcn.00497c60
add esp, 8
push 0
lea edx, [esp + 0xc0c]
push edx
lea ecx, [esp + 0x10]
push ecx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x487175
lea eax, [esp + 0xc08]
call fcn.0046442c
lea eax, [esp + 0xc08]
call fcn.0040c210
push str.rarreg.key
lea edx, [esp + 0xc0c]
push edx
call fcn.00497b84
add esp, 8
push 0
lea ecx, [esp + 0xc0c]
push ecx
lea eax, [esp + 0x10]
push eax
call sub.KERNEL32.DLL_CopyFileA
push dword [0x4c4e24]
call sub.USER32.DLL_SetForegroundWindow
push 1
push dword [0x4c4e24]
call sub.USER32.DLL_FlashWindow
mov al, 1
call fcn.0040e96c
mov byte [0x4b20e4], al
push 0
push dword [0x4c4e24]
call sub.USER32.DLL_FlashWindow
cmp dword [0x4c77c4], 0
je 0x4871bb
mov eax, 0x4c4e38
call fcn.0045a124
jmp 0x4871ca
mov edx, 0x4ac6d8
mov eax, 0x4c4e38
call fcn.00458834
cmp byte [0x4b20e4], 0
je 0x48729e
push 0x30
mov eax, 0x368
call fcn.004125b4
push eax
mov eax, 0x367
call fcn.004125b4
push eax
push dword [0x4c4e24]
call sub.USER32.DLL_MessageBoxA
jmp 0x48729e
xor eax, eax
call fcn.00449adc
cmp dword [0x4c77c4], 0
je 0x487219
mov dword [0x4bba40], 1
mov eax, dword [0x4be478]
call fcn.0040fba8
xor ebx, ebx
cmp edi, ebx
jle 0x487283
mov word [esp + 0x1408], 0
push 0x400
lea eax, [esp + 0x100c]
push eax
mov ebp, ebx
push ebp
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.00410420
test eax, eax
je 0x487266
push 0x400
lea eax, [esp + 0x140c]
push eax
push ebp
push esi
call sub.SHELL32.DLL_DragQueryFileW
lea ecx, [esp + 0x1408]
lea edx, [esp + 0x1008]
mov eax, dword [0x4be478]
call fcn.0040fbe0
inc ebx
cmp edi, ebx
jg 0x487229
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.0044a894
add esp, 0x1c08
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4872d4
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebx
push esi
add esp, 0xfffff2b0
mov byte [esp], al
mov dword [0x4c77dc], 1
test dl, dl
je 0x487468
lea eax, [esp + 0x10]
mov edx, 0x400
call fcn.00463d8c
lea eax, [esp + 0x10]
call fcn.0040c210
lea edx, [esp + 0x10]
push edx
push str._sRar_
lea ecx, [esp + 0x418]
push ecx
call fcn.0049abc0
add esp, 0xc
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
lea edx, [esp + 0x810]
push edx
lea ecx, [esp + 0x414]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp eax, 0xffffffff
sete al
and eax, 1
jmp 0x487451
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
sub edx, dword [esp + 0x818]
push eax
cmp edx, 8
lea edx, [esp + 0x954]
setae bl
and ebx, 1
push edx
call fcn.00497c60
add esp, 8
lea ecx, [esp + 0x83c]
push ecx
lea eax, [esp + 0x954]
push eax
call fcn.00497b84
add esp, 8
test byte [esp + 0x810], 0x10
je 0x487420
push 6
push str.Rar_DI
lea edx, [esp + 0x844]
push edx
call fcn.00497cec
add esp, 0xc
test eax, eax
jne 0x4873c5
call fcn.00410420
cmp eax, 4
jne 0x4873c9
xor ecx, ecx
jmp 0x4873ce
mov ecx, 1
mov byte [esp + 0xc], cl
lea eax, [esp + 0x950]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x48743b
test bl, bl
je 0x4873ed
cmp byte [esp], 0
je 0x4873f4
cmp byte [esp + 0xc], 0
je 0x48743b
lea eax, [esp + 0x950]
call fcn.00463b80
test al, al
je 0x48743b
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040ab3c
lea eax, [esp + 0x950]
call fcn.00463370
jmp 0x48743b
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040ab3c
lea ecx, [esp + 0x950]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [esp + 0x810]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
sete al
and eax, 1
test eax, eax
jne 0x487462
cmp dword [0x4c77dc], 1
je 0x487351
push esi
call sub.KERNEL32.DLL_FindClose
cmp byte [esp], 0
jne 0x4874a3
cmp byte [0x4b20e4], 0
je 0x4874a3
push 0
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
mov al, 1
call fcn.004874b4
mov ebx, eax
mov byte [0x4b20e4], bl
test bl, bl
jne 0x4874a3
mov eax, 0x4ad0ec
xor edx, edx
call fcn.0044319c
xor ecx, ecx
mov dword [0x4c77dc], ecx
add esp, 0xd50
pop esi
pop ebx
ret
Function at 0x487650
Capabilities:
Copy file

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffff7d0
cmp dword [0x4c77c4], 0
je 0x4877fa
mov edx, esp
mov eax, 0x4c5b84
xor ecx, ecx
call fcn.00457568
mov edx, str.History
mov eax, 0x4acc65
mov ecx, 1
call fcn.0046136c
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x4876b9
push 0x4ac6d8
push 0x400
lea ecx, [esp + 0x40c]
mov edx, str.SaveArcFolder
mov eax, str.InterfaceMisc
call fcn.00461194
cmp byte [esp + 0x404], 0
jne 0x4876cf
lea eax, [esp + 0x404]
call fcn.00463300
lea edx, [esp + 0x404]
push edx
lea ecx, [esp + 0x808]
push ecx
call fcn.00497c60
add esp, 8
lea eax, [esp + 0x804]
call fcn.0040c210
mov eax, esp
call fcn.0040bd0c
push eax
lea edx, [esp + 0x808]
push edx
call fcn.00497b84
add esp, 8
push 0
push 1
mov eax, 0x5af
call fcn.004125b4
mov edx, eax
lea ecx, [esp + 0x80c]
mov eax, dword [0x4c4e24]
call fcn.0044d4d0
test al, al
je 0x4877fa
lea edx, [esp + 0x404]
lea eax, [esp + 0x804]
mov ecx, 0x400
call fcn.0040c258
test bl, bl
je 0x487766
lea ecx, [esp + 0x404]
mov edx, str.SaveArcFolder
mov eax, str.InterfaceMisc
call fcn.00460f78
push esp
call fcn.00497c90
pop ecx
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x804]
push eax
call fcn.00497c90
pop ecx
mov byte [esp + eax + 0x805], 0
push 0x1e
push 0
lea edx, [esp + 0x1818]
push edx
call fcn.00497ae0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x1814], 2
mov dword [esp + 0x1818], ecx
lea eax, [esp + 0x804]
mov dword [esp + 0x181c], eax
lea edx, [esp + 0x1810]
push edx
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je 0x4877fa
push dword [esp + 0x181c]
push dword [esp + 0x181c]
mov eax, 0x5b0
call fcn.004125b4
push eax
call fcn.00486908
add esp, 0xc
mov eax, 0x4b1ad4
call fcn.0042d778
add esp, 0x1830
pop ebx
ret