joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dbb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov al, byte [esp + 0x1ac]
mov edx, dword [esp + 0x1a4]
push ebx
mov bl, byte [esp + 0x1ac]
movzx ecx, bl
push esi
mov byte [0x56bee5], al
mov eax, dword [0x51ef04]
mov dword [esp + 0x58], ecx
mov esi, 0x34
push 1
mov ecx, 0x543fb0
mov dword [0x56bec8], 0
mov dword [0x56bec4], 0
mov dword [esp + 0x4c], str.GETARC
mov dword [esp + 0x58], 0x49cc00
mov dword [esp + 0x80], str.GETARCADV
mov dword [esp + 0x8c], 0x49b810
mov dword [esp + 0xb4], str.GETARCOPT
mov dword [esp + 0xc0], 0x496c90
mov dword [esp + 0xe8], str.GETARCFILES
mov dword [esp + 0xf4], 0x497140
mov dword [esp + 0x11c], str.GETARCBACKUP
mov dword [esp + 0x128], 0x497710
mov dword [esp + 0x150], str.GETARCTIME
mov dword [esp + 0x15c], 0x49a460
mov dword [esp + 0x184], str.GETARCCMT
mov dword [esp + 0x190], 0x4979b0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x28a
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.00480e90
cmp byte [esp + 0x1b4], 0
mov dword [esp + 0x18], eax
je 0x49dcc0
push 0x3f6
jmp 0x49dcd8
movzx ecx, byte [0x54a17c]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffd08
add ecx, 0x3de
push ecx
call fcn.00475570
mov ecx, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [0x51ef04]
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x17c], eax
push 7
mov dword [esp + 0x44], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x17c], ecx
mov eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x51ef28
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x180], esi
call fcn.00475380
test bl, bl
jne 0x49ddc2
lea edx, [esp + 8]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x49ddbe
cmp word [0x550472], 0
jne 0x49ddc2
cmp byte [esp + 0x1b4], bl
jne 0x49ddc2
xor bl, bl
jmp 0x49ddc4
mov bl, 1
push 7
lea eax, [esp + 0x40]
push eax
mov ecx, 0x51ef28
call fcn.00474400
pop esi
mov al, bl
mov byte [0x534cd4], 0
pop ebx
add esp, 0x1a0
ret 0xc
Function at 0x49e7c0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
call edi
push ebx
mov esi, eax
call edi
mov ebp, dword [esp + 0x38]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov dword [esp + 0x40], eax
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x24]
push 0xcc0020
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov edx, eax
neg edx
push edx
push 0
lea edx, [eax - 1]
push edx
push esi
push ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push edi
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x10]
push edx
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov edx, dword [esp + 0x18]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4

Function at 0x49e990
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x551650], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x49e9d3
push 0x551650
push esi
call fcn.0047f480
jmp 0x49ea65
push 0x4d79fc
push esi
push str.TempFolder
push str.Paths
call fcn.0046c8c0
xor eax, eax
mov word [esp + 8], ax
movzx eax, word [esi]
test ax, ax
je 0x49ea20
push 0x800
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x49ea18
push edi
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0047f480
movzx eax, word [esi]
test ax, ax
jne 0x49ea2f
cmp byte [esp + 0x1018], 0
je 0x49ea3b
test ax, ax
je 0x49ea65
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49ea65
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49ea4d
cmp word [esi], 0
jne 0x49ea65
mov eax, str._rartemp
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x49ea56
push edi
push esi
call fcn.004601c0
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004c1302
add esp, 0x1004
ret 0xc
Function at 0x49f2e0
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push edi
mov edi, dword [esp + 0x2010]
push 0x7ff
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.0047f480
cmp byte [esp + 0x2018], 0
je 0x49f385
cmp dword [0x541a00], 0
jne 0x49f33a
cmp byte [0x541a0a], 0
jne 0x49f33a
xor edx, edx
jmp 0x49f33f
mov edx, 1
lea eax, [esp + 0x1004]
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49f350
sub eax, esi
xor ecx, ecx
sar eax, 1
test dl, dl
setne cl
lea edx, [esp + eax*2 + 0x1008]
add ecx, 0x61
push ecx
push 0x4ddcbc
push edx
mov edx, 2
call fcn.0041cb70
add esp, 0xc
pop esi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.0049e990
push 0x800
lea ecx, [esp + 8]
push ecx
call fcn.004601c0
push 0x800
lea edx, [esp + 0x1008]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.0047f4c0
push 0x800
lea ecx, [esp + 8]
push ecx
call fcn.0043cdf0
test eax, eax
je 0x49f40d
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49f40d
mov eax, dword [esp + 0x2014]
push eax
lea ecx, [esp + 8]
push ecx
push edi
call fcn.0047f480
mov al, 1
pop edi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.004c1302
add esp, 0x2004
ret 0x10
lea edx, [esp + 4]
push edx
push 0x1f7
call fcn.00475570
push eax
call fcn.004ad030
add esp, 8
mov ecx, 0x51ef08
call fcn.00433a70
mov ecx, dword [esp + 0x2004]
pop edi
xor ecx, esp
xor al, al
call fcn.004c1302
add esp, 0x2004
ret 0x10
Function at 0x49fbb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push 0x4dfae8
push 1
push 0
push 0x4dfbd8
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x49fcb2
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x4dfb28
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x49fca6
push esi
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x14], bl
je 0x49fc0e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 2
push esi
push eax
call edx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49fc34
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 8]
push 0
test ecx, ecx
jne 0x49fc51
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0x4d79fc
push eax
call edx
jmp 0x49fc5a
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49fc6f
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x49fc84
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push esi
push eax
call edx
pop esi
test eax, eax
jl 0x49fc9a
mov bl, 1
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
pop ebx
add esp, 8
ret 0x1c

Function at 0x49fce0
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x49fd14
push esi
push 0x627
call fcn.00475570
push eax
call fcn.004ad030
add esp, 8
mov ecx, 0x51ef08
call fcn.00433a70
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x4a03c0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2804
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2800], eax
mov eax, dword [esp + 0x2808]
mov ecx, dword [0x532b4c]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa00
lea edx, [esp + 0x1408]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa00
lea eax, [esp + 8]
push eax
push edi
push esi
call fcn.004605c0
lea ecx, [esp + 0x1404]
lea eax, [esp + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a0446
test dx, dx
je 0x4a0442
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a0446
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a0420
xor eax, eax
jmp 0x4a044b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a045b
lea ecx, [esp + 4]
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x2804]
pop ebx
xor ecx, esp
call fcn.004c1302
add esp, 0x2804
ret 4
Function at 0x4a06c0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d5f1e
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
mov eax, dword [0x4eb0b4]
xor eax, esp
push eax
lea eax, [esp + 0x410]
mov dword fs:[0], eax
mov eax, dword [0x532b4c]
test eax, eax
je 0x4a0809
push 0x200
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x570040]
cmp esi, 8
je 0x4a0777
mov ecx, 0x56d740
lea eax, [esp + 0xc]
jmp 0x4a0730
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a0756
test dx, dx
je 0x4a0752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a0756
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a0730
xor eax, eax
jmp 0x4a075b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a0777
mov edx, dword [0x532b4c]
push 0x56d740
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x570040]
test esi, esi
je 0x4a078a
cmp esi, 1
je 0x4a078a
cmp esi, 2
je 0x4a078a
cmp esi, 8
jne 0x4a07bd
push 0x9c
mov edi, 0x56d640
xor esi, esi
call fcn.004a03c0
push 0x56e840
call fcn.00460620
push 0x56f840
mov edi, eax
call fcn.0049f880
push 0x9b
mov esi, eax
call fcn.004a03c0
test byte [0x57004c], 1
jne 0x4a07ed
or dword [0x57004c], 1
mov dword [esp + 0x418], 0
mov dword [0x570048], 0
mov dword [esp + 0x418], 0xffffffff
push 0x64
mov ecx, 0x570048
call fcn.00453020
test al, al
je 0x4a0809
mov eax, dword [0x532b4c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004c1302
add esp, 0x410
ret
Function at 0x4a0c10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
push 0x200
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [edi], 0x3b8
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea edx, [esp + 0xc]
push edx
call fcn.004532f0
cmp word [0x56d190], 0
je 0x4a0cc0
lea eax, [esp + 8]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a0c60
mov ecx, dword [0x4d8194]
mov dx, word [0x4d8198]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a0c86
sub eax, edx
push 0x56d190
sar eax, 1
push 0x5aa
mov esi, eax
call fcn.00475570
push eax
lea eax, [esp + esi*2 + 0x10]
push str._s:__s
mov edx, 0x200
sub edx, esi
push eax
call fcn.0041cb70
add esp, 0x10
cmp byte [0x56d1f7], 0
je 0x4a0d2e
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a0cd0
mov ecx, dword [0x4d8194]
mov dx, word [0x4d8198]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a0cf6
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x410]
push eax
push 0x2fd
call fcn.00475570
push eax
lea ecx, [esp + esi*2 + 0x10]
mov edx, 0x200
sub edx, esi
push ecx
call fcn.0041cb70
add esp, 0xc
push 0x80
lea edx, [esp + 0xc]
push edx
add edi, 0x18
push edi
call fcn.0047f480
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004c1302
add esp, 0x404
ret 4
Function at 0x4a3b20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp byte [esp + 0x1020], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
mov esi, dword [esp + 0x101c]
push edi
mov edi, dword [esp + 0x1018]
je 0x4a3bbf
push 0x800
push esi
push edi
push str.DefFolder
push str.Extraction
call fcn.0046c8c0
cmp word [edi], 0
jne 0x4a3b91
mov edx, edi
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a3b80
jmp 0x4a3bbf
push 0x800
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [esp + 0x101c]
push edx
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
push edi
mov word [esp + 0x101a], cx
call fcn.0047f480
movzx eax, word [edi]
test ax, ax
setne bl
test ax, ax
jne 0x4a3be0
mov ecx, dword [esp + 0x101c]
push ecx
push edi
mov ecx, 0x53f4e8
call fcn.0044bfc0
mov edx, dword [esp + 0x101c]
push edx
push edi
call fcn.004601c0
cmp byte [esp + 0x1028], 0
jne 0x4a3c00
test bl, bl
je 0x4a3d02
push 1
push str.AppendName
push str.Extraction
call fcn.0046c8f0
test eax, eax
je 0x4a3d02
push 0x800
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.0047f480
xor ebx, ebx
cmp word [esp + 0x10], bx
je 0x4a3c69
xor eax, eax
lea esi, [esp + 0x10]
cmp word [esi], 0x25
jne 0x4a3c59
lea ecx, [esp + eax + 0x12]
push 0x25
push ecx
call fcn.004c28a7
add esp, 8
test eax, eax
je 0x4a3c59
mov edx, 0x5f
mov word [esi], dx
inc ebx
lea eax, [ebx + ebx]
cmp word [esp + eax + 0x10], 0
lea esi, [esp + eax + 0x10]
jne 0x4a3c38
mov eax, dword [esp + 0x101c]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00460620
push eax
push edi
call fcn.0047f4c0
push edi
call fcn.00460820
mov esi, eax
test esi, esi
je 0x4a3d02
cmp esi, edi
jbe 0x4a3d02
xor edx, edx
push edi
mov word [esi], dx
call fcn.00460820
mov ebx, eax
test ebx, ebx
je 0x4a3ce8
cmp ebx, edi
jbe 0x4a3ce8
cmp byte [esp + 0x102c], 0
je 0x4a3cd4
cmp word [esi + 2], 0
je 0x4a3cd4
movzx eax, word [esi + 4]
push eax
call fcn.0047f140
test al, al
jne 0x4a3cd4
movzx ecx, word [esi - 2]
push ecx
call fcn.0047f140
test al, al
jne 0x4a3ce3
push str..tar
push ebx
call fcn.00486fc0
test eax, eax
jne 0x4a3ce8
xor edx, edx
mov word [ebx], dx
sub esi, 2
cmp esi, edi
jbe 0x4a3d02
nop
cmp word [esi], 0x2e
jne 0x4a3d02
xor eax, eax
mov word [esi], ax
sub esi, 2
cmp esi, edi
ja 0x4a3cf0
push 0
push edi
call fcn.00460360
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1302
add esp, 0x1004
ret 0x1c
Function at 0x4a3d30
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1008
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
push 0x800
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, 0x53f4e8
call fcn.0044bff0
push 0x802
lea edx, [esp + 4]
push edx
call fcn.004601c0
push 0x802
push 0x4d8468
lea eax, [esp + 8]
push eax
call fcn.0047f4c0
push 1
push 0x4d79fc
push 0
lea ecx, [esp + 0xc]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.004c1302
add esp, 0x1008
ret 4

Function at 0x4a5750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
mov byte [edi], 0
call fcn.00460620
push 3
mov esi, eax
push 0x4de124
push esi
call fcn.00486ff0
test eax, eax
je 0x4a577e
push 3
push 0x4de11c
push esi
call fcn.00486ff0
test eax, eax
jne 0x4a579e
movzx eax, word [esi + 6]
push eax
call fcn.004c45de
add esp, 4
test eax, eax
je 0x4a579e
movzx eax, word [esi + 8]
cmp ax, 0x2e
je 0x4a5812
test ax, ax
je 0x4a5812
push 3
push 0x4de114
push esi
call fcn.00486ff0
test eax, eax
je 0x4a57e2
push 3
push 0x4de10c
push esi
call fcn.00486ff0
test eax, eax
je 0x4a57e2
push 3
push 0x4de104
push esi
call fcn.00486ff0
test eax, eax
je 0x4a57e2
push 3
push 0x4d8288
push esi
call fcn.00486ff0
test eax, eax
jne 0x4a57f1
movzx eax, word [esi + 6]
cmp ax, 0x2e
je 0x4a5812
test ax, ax
je 0x4a5812
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a580e
push ebx
call fcn.0043ccc0
test al, al
je 0x4a580e
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
mov al, 1
mov byte [edi], al
pop esi
ret
Function at 0x4a5860
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x35d8
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x35d4], eax
cmp dword [0x4eafcc], 0xffffffff
mov eax, dword [esp + 0x35e8]
push ebp
mov ebp, dword [esp + 0x35e0]
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push edi
mov edi, dword [esp + 0x35ec]
mov dword [esp + 0xc], eax
jne 0x4a5904
push 0x4001
push 0x2b4
lea ecx, [esp + 0x80]
push ecx
push 0
push 0x4d8468
call esi
mov edx, dword [esp + 0x7c]
push 0x800
lea eax, [esp + 0x25e4]
push eax
push 0
mov dword [0x5755b4], edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4001
push 0x2b4
lea ecx, [esp + 0x80]
push ecx
push 0
lea edx, [esp + 0x25f0]
push edx
call esi
mov eax, dword [esp + 0x7c]
mov dword [0x4eafcc], eax
push ebx
push 0x800
push edi
lea ecx, [esp + 0x5ec]
push ecx
call fcn.0047f480
push 0x800
push 0
lea edx, [esp + 0x5ec]
push edx
call fcn.00460410
cmp word [ebp], 0
lea eax, [esp + 0x5e4]
setne bl
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x40000000
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x330]
test bl, bl
je 0x4a5980
movzx edx, byte [esp + 0x35f4]
push 0x4011
neg edx
push 0x2b4
sbb edx, edx
push ecx
and edx, 0x10
push edx
push eax
jmp 0x4a5995
push 0x4001
push 0x2b4
push ecx
push 0
lea edx, [esp + 0x5f4]
push edx
call esi
mov eax, dword [esp + 0x334]
mov dword [esp + 0x30], eax
push 0x800
test bl, bl
je 0x4a59bb
push ebp
lea ecx, [esp + 0x15ec]
push ecx
call fcn.0047f480
jmp 0x4a59ee
lea edx, [esp + 0x5e8]
push edx
lea eax, [esp + 0x15ec]
push eax
call fcn.0047f480
lea ecx, [esp + 0x15e4]
push ecx
call fcn.00460910
lea edx, [esp + 0x5e4]
push edx
call fcn.00460620
mov dword [esp + 0x28], eax
mov eax, dword [0x532b4c]
push 0x66
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x14]
push ecx
push 0
mov esi, eax
push 0x104d
push esi
call ebp
mov edi, eax
lea edx, [esp + 0x15e4]
test bl, bl
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], edx
pop ebx
je 0x4a5a44
mov eax, dword [0x4eafcc]
mov dword [esp + 0x2c], eax
jmp 0x4a5a4e
mov ecx, dword [0x5755b4]
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x104c
push esi
call ebp
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x50], 2
call fcn.0047f5b0
lea ecx, [esp + 0x44]
push ecx
push edi
push 0x1074
push esi
mov dword [esp + 0x68], eax
call ebp
test edi, edi
jne 0x4a5aa0
lea edx, [esp + 0x44]
push edx
push edi
mov eax, 1
push 0x102b
push esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call ebp
mov ecx, dword [esp + 0x35e0]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004c1302
add esp, 0x35d8
ret 0x10
Function at 0x4a6f20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push esi
mov esi, dword [esp + 0x2dc]
mov eax, dword [esi + 0x2c]
push edi
add eax, 0x41
push eax
lea ecx, [esp + 0x2c8]
push 0x4d78ec
push ecx
mov edx, 0xa
call fcn.0041cb70
add esp, 0xc
push 0x301
push 0x2b4
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test byte [esi + 0x10], 1
je 0x4a6faf
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call edi
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xe
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ebx
push ebp
push 0
push 0
push 0x4d79fc
lea edi, [esi + 0x1c]
push edi
push 2
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call ebx
push 0x32
mov ebp, eax
call ebx
mov ecx, dword [esi + 0x20]
mov edx, dword [edi]
push 3
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7012
mov ecx, dword [edi]
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x28]
push edx
add eax, 2
push eax
mov eax, dword [esi + 0x18]
lea edx, [ecx + ebp + 7]
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutW]
test byte [esi + 0x10], 1
pop ebp
pop ebx
je 0x4a7065
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
xor ecx, esp
call fcn.004c1302
add esp, 0x2d4
ret 4