joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f620
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.0046f410
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x46f660
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x46f660
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x46f6c6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x46f743
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x46f6f0
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x46f6e0
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x46f729
add byte [edi + 3], 0xff
jne 0x46f729
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.0046f3d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x46f763
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4

Function at 0x472f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fde2e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0x10], 1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [esp + 0x10], 2
mov dword [eax + 0x10], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x4785e0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
push 0x1008
mov dword [esp + 0x38], ecx
call fcn.004e76fb
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.00468fe0
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x478635
mov ebx, dword [esp + 0x300]
cmp byte [esp + 0x310], cl
jne 0x478698
cmp ebx, 0xffffffff
je 0x47865f
test ebp, ebp
jne 0x478698
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x478673
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x478690
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x478698
lea ebp, [esp + 0x44]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x4786d6
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2e0
ret 0x20
Function at 0x479230
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x479361
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push eax
call esi
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x4792d3
mov edx, dword [esp + 0xc]
push 0x4209
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
mov eax, dword [edi]
push 0
push 0x402
push eax
call esi
mov eax, dword [0x572b3c]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
push 0
mov eax, ecx
push 1
push eax
mov ecx, edi
call fcn.004785e0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x4792fc
mov edx, dword [esp + 8]
push eax
push eax
push edx
mov ecx, edi
call fcn.00478a70
test al, al
jne 0x479359
push ebx
push ebp
call fcn.004b3c10
mov ebp, eax
xor esi, esi
mov ebx, 1
lea esp, [esp]
test ebp, ebx
je 0x47934f
lea eax, [esi + 0x41]
push eax
lea ecx, [esp + 0x2d0]
push str._c:_
push ecx
mov edx, 0xa
call fcn.004a63e0
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x2e8]
push edx
mov ecx, edi
call fcn.004785e0
inc esi
rol ebx, 1
cmp esi, 0x20
jl 0x479310
pop ebp
pop ebx
mov ecx, edi
call fcn.00478f80
pop esi
mov ecx, dword [esp + 0x2d4]
pop edi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2d4
ret
Function at 0x479380
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov eax, 0x1004
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
push 0x800
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
push edx
call fcn.004974d0
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push 0x158
push ecx
call edi
cmp eax, 0xffffffff
je 0x47942c
mov edx, dword [esi]
push 0
push eax
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.00479100
cmp byte [0x53d329], 0
mov ecx, esi
je 0x479410
call fcn.00478dc0
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1004
ret
call fcn.004789d0
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1004
ret
cmp byte [0x53d329], 0
je 0x47944c
lea eax, [esp + 8]
push eax
call fcn.004530a0
test al, al
jne 0x47944c
push 1
lea ecx, [esp + 0xc]
push ecx
jmp 0x479497
lea edx, [esp + 8]
push edx
call fcn.004690a0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x479490
test al, 0x10
jne 0x479490
lea ecx, [esp + 8]
push ecx
mov ecx, 0x549cb8
call fcn.00495770
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1004
ret
push 1
lea edx, [esp + 0xc]
push edx
mov ecx, 0x549cb8
call fcn.00495890
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1004
ret
Function at 0x4794c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2b8], eax
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2c0]
push edi
mov edi, dword [esp + 0x2d0]
cmp ecx, 0x4e
jne 0x4795d4
mov eax, dword [edi + 8]
cmp eax, 0xfffffcd9
je 0x479531
cmp eax, 0xfffffcda
jne 0x479517
cmp dword [edi + 0x21c], 2
jne 0x479517
mov ecx, 0x549cb0
call fcn.00479380
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2bc
ret 0x10
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [edi + 0xc]
push ebx
push ebp
push esi
mov dword [esp + 0x10], edx
cmp eax, 4
jne 0x47954a
mov ebp, dword [ecx + 4]
jmp 0x47954d
lea ebp, [ecx + 8]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor ecx, ecx
cmp eax, 4
setne cl
dec ecx
and ecx, 8
mov esi, ecx
test dl, 1
je 0x479589
mov edx, esi
or edx, 0x200
push edx
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call ebx
test eax, eax
je 0x479589
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], ecx
test byte [esp + 0x10], 6
je 0x4795b0
or esi, 0x4001
push esi
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
call ebx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
or dword [edi + 0xc], 0x10000000
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2bc
ret 0x10
mov edx, dword [esp + 0x2cc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2bc]
pop edi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2bc
ret 0x10

Function at 0x47e9d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
mov ebx, dword [esp + 0x80c]
push esi
xor eax, eax
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x400
lea ecx, [esp + 0x10]
push ecx
push eax
xor edi, edi
call fcn.004696c0
mov esi, eax
test esi, esi
je 0x47ea65
test edi, edi
jne 0x47ea1c
mov edi, 1
jmp 0x47ea47
movzx edx, word [esp + 0xc]
push edx
mov ecx, 0x54f7e8
call fcn.00438660
test al, al
jne 0x47ea47
cmp edi, 1
jne 0x47ea46
mov ax, word [esp + 0xc]
mov cx, word [esp + 0xe]
mov word [ebx], ax
mov word [ebx + 2], cx
inc edi
push 0x400
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004696c0
mov esi, eax
test esi, esi
jne 0x47ea11
cmp edi, 2
jne 0x47ea65
mov word [ebx], ax
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x804
ret 4
Function at 0x47ef60
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x100c], eax
push esi
xor esi, esi
cmp dword [0x55bc10], esi
je 0x47f154
push esi
push 1
push 0x55abfa
mov ecx, 0x54be08
call fcn.0047c7b0
cmp eax, 1
jne 0x47f154
cmp dword [0x553800], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x47efce
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x54be08
call fcn.0047baf0
jmp 0x47efe2
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
mov ecx, 0x54be08
call fcn.0047ba00
cmp dword [esp + 4], esi
je 0x47f154
push 0x800
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x55bbfc
call fcn.00469af0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47f062
push esi
push esi
push SysReAllocString
push SysReAllocString
push 0x800
lea eax, [esp + 0x24]
push eax
push 0x54f7e8
call fcn.0046b3c0
cmp eax, 6
je 0x47f03f
cmp eax, 1
je 0x47f03f
cmp eax, 3
jne 0x47f062
mov ecx, dword [esp + 8]
push ecx
call fcn.004e6904
add esp, 4
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1010
ret
push edi
push 0x503b68
lea edx, [esp + 0x18]
push edx
call fcn.004452a0
mov edi, eax
cmp edi, esi
jne 0x47f0b6
lea eax, [esp + 0x14]
push eax
push 0x1f6
call fcn.00463400
push eax
push 0x55abfa
call fcn.004c3030
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e6904
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1010
ret
mov eax, dword [0x553800]
cmp eax, 3
jne 0x47f10b
push edi
push 0xff
call fcn.004eb0cb
push edi
push 0xfe
call fcn.004eb0cb
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x47f136
nop
mov edx, dword [esp + 0x10]
movzx eax, word [edx + esi*2]
push edi
push eax
call fcn.004eb0cb
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + esi*2 + 1]
push edi
push edx
call fcn.004eb0cb
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x47f0e0
jmp 0x47f136
cmp eax, 2
jne 0x47f121
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edi
push ecx
push 1
push edx
call fcn.004eb049
add esp, 0x10
push edi
call fcn.004eae6b
mov eax, dword [esp + 0x10]
push eax
call fcn.004e6904
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e6904
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x1010]
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1010
ret
Function at 0x481800
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x3024
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x3020], eax
push esi
push str.winrar_config_integration
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x48193a
push ebp
push 0x10000
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x48186d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
mov ecx, dword [esp + 0x3020]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3024
ret
cmp byte [ebp], 0x49
push ebx
push edi
mov ebx, ebp
jne 0x4818d4
cmp byte [ebp + 1], 0x1a
jne 0x4818d4
lea esi, [ebp + 2]
mov ecx, 6
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1030]
movsw word es:[edi], word [esi]
push eax
lea edi, [ebp + 0x1c]
mov ebx, 0x400
call fcn.004817b0
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
call fcn.004817b0
mov ebx, eax
test ebx, ebx
je 0x4818d0
push 0
lea edx, [esp + 0x18]
push edx
call fcn.0048f4e0
lea edi, [esp + 0x30]
lea esi, [esp + 0x1030]
call fcn.004816b0
mov esi, dword [esp + 0x10]
cmp byte [ebx], 0x54
jne 0x481929
lea eax, [esp + 0x2030]
lea edi, [ebx + 1]
push eax
mov ebx, 0x800
call fcn.004817b0
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
call fcn.004817b0
lea edx, [esp + 0x1030]
push edx
mov edi, eax
call fcn.004817b0
test eax, eax
je 0x481929
push 0
lea eax, [esp + 0x1034]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x203c]
push edx
call fcn.0048f5a0
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x3024]
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3024
ret
Function at 0x484790
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4fe6f6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x53e3dc], ebx
jne 0x484957
push str.WinRAR_DragDrop
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push ebx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x484815
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b9
call fcn.00463400
push eax
call fcn.004c2ab0
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [0x53c30d], al
jne 0x484835
mov byte [esp + 0x14], bl
cmp byte [0x53d329], bl
je 0x48483a
mov byte [esp + 0x14], 1
push 8
call fcn.004e76fb
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x484861
mov dword [eax], 0x504634
mov dword [eax + 4], 1
mov edi, eax
jmp 0x484863
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
push 0xd5f8
call fcn.004e76fb
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 1
cmp eax, ebx
je 0x484898
mov ecx, dword [esp + 0x14]
push ebx
push ecx
mov ecx, eax
call fcn.004844a0
mov esi, eax
jmp 0x48489a
xor esi, esi
mov dword [esp + 0x2c], ebp
xor eax, eax
cmp byte [esp + 0x14], bl
lea edx, [esp + 0x20]
setne al
push edx
mov byte [0x53c30e], bl
mov byte [0x53c30f], 1
mov byte [0x53c30c], bl
lea eax, [eax + eax + 1]
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_DoDragDrop]
mov byte [0x53c30f], bl
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
mov ebp, eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp byte [0x53c30d], bl
je 0x48490b
cmp byte [0x53d329], bl
je 0x48490b
cmp ebp, 0x40100
jne 0x48490b
call fcn.004bd210
mov ecx, 0x549cb8
call fcn.00496040
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0x40100
je 0x484957
cmp byte [0x53c30c], bl
jne 0x484957
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x484957
push 0x53c
call fcn.00463400
push eax
call fcn.004c2ab0
add esp, 4
mov ecx, 0x531158
call fcn.0043f4b0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x485290
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x485309
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4852fa
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x14
ret
Function at 0x485430
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x3008
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x3004], eax
push esi
mov esi, dword [esp + 0x3010]
call fcn.00447ef0
cmp eax, 0x600
jb 0x48562d
push esi
call fcn.004b4600
test al, al
jne 0x48562d
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
mov ecx, 0x549cb8
call fcn.00490060
push 0x800
lea ecx, [esp + 0x100c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00453e00
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x48562d
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1024]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4854eb
mov eax, dword [esp + 4]
test eax, 0x80000
jne 0x48562d
test al, 8
je 0x48562d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x485526
test al, 0x10
jne 0x485526
lea eax, [esp + 8]
call fcn.00485110
mov ecx, eax
shr ecx, 1
test cl, 1
je 0x485596
shr eax, 2
test al, 1
je 0x485596
lea edx, [esp + 8]
push edx
call fcn.00453770
push ebx
lea eax, [esp + 0xc]
push eax
xor bl, bl
call fcn.00445470
test al, al
jne 0x4855cb
mov bl, 1
lea ecx, [ecx]
push 0x800
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2014]
push edx
call fcn.004e9eda
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call fcn.00453770
lea ecx, [esp + 0x200c]
lea eax, [esp + 0xc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4855b0
test dx, dx
je 0x485592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4855b0
add eax, 4
add ecx, 4
test dx, dx
jne 0x485570
xor eax, eax
jmp 0x4855b5
mov al, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3008
ret 8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4855cb
lea ecx, [esp + 0xc]
push ecx
call fcn.00445470
test al, al
je 0x485540
lea eax, [esp + 0xc]
call fcn.00485110
mov ecx, eax
shr ecx, 1
shr eax, 2
and cl, 1
test al, 1
je 0x48560f
test bl, bl
je 0x4855f0
cmp byte [esp + 0x3018], 0
je 0x4855f4
test cl, cl
je 0x48560f
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3008
ret 8
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3008
ret 8
mov ecx, dword [esp + 0x3008]
pop esi
xor ecx, esp
xor al, al
call fcn.004e6b3a
add esp, 0x3008
ret 8
Function at 0x485c40
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x12b8
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x12b4], eax
mov eax, dword [esp + 0x12bc]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4001
mov esi, ecx
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x502598
mov dword [esi], eax
call edi
test eax, eax
jne 0x485cb5
push eax
push 0x800
lea edx, [esp + 0x2c4]
push edx
call fcn.004b3b10
push 0x4001
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x2cc]
push ecx
call edi
mov edx, dword [esi]
push eax
push 0
push 0x1109
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x12bc]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x12b8
ret 4

Function at 0x486110
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
mov esi, dword [esp + 0x2c4]
push edi
mov edi, dword [esp + 0x2cc]
push 0x4009
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0
push esi
call ebx
mov ecx, dword [esp + 0x10]
push 0x400b
push 0x2b4
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [edi + 0x18], ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c0]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2b8
ret 8