joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eb10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x57bf88
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [0x5bb70c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46ec2f
push esi
push dword [0x5bb70c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46ec2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46ec2f
push ebx
push esi
push dword [0x5bb70c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
mov ecx, eax
mov dword [ebp - 8], 0
lea ebx, [esi + 1]
push ebx
call fcn.0046c740
test esi, esi
je 0x46ebd8
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46ebab
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x46ebd3
cmp ebx, esi
jb 0x46ebbc
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x46ebd8
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
call fcn.005605d0
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0
push dword [ebp - 0x10]
call fcn.0041c030
mov esi, eax
add esp, 4
test esi, esi
je 0x46ec1a
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push esi
call fcn.0046eca0
push esi
mov bl, al
call fcn.0041c110
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.0046cad0
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.0046cad0
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x46ed10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 8
jb 0x46ed26
mov edx, dword [eax]
push edx
push str.AddWebpToCache__s_n
call fcn.00472530
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46ed5b
mov eax, dword [eax]
push ebx
push esi
push 0x57c030
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x46eed2
mov eax, dword [ebp - 4]
test eax, eax
je 0x46eed2
push 2
push 0
push eax
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46edaa
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
jmp 0x46eecf
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.0046c580
push 0
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push esi
push dword [ebp - 0x20]
call sub.msvcrt.dll_fread
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x20]
call fcn.00539260
mov ebx, eax
add esp, 0x30
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x46eed2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46eec9
cmp eax, dword [ebp - 8]
jne 0x46eec9
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x46eea9
mov edx, dword [ebp - 0xc]
push ebx
push 0x26200a
lea ecx, [edx*4]
push ecx
push dword [ebp - 8]
mov ecx, eax
push edx
call fcn.0046c9a0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x46eead
mov ecx, dword [esi + 8]
mov dword [esi + 8], 0
test ecx, ecx
jne 0x46eead
push edi
push ecx
push ecx
push 0x10
push 0x10
mov ecx, esi
call fcn.00470040
push 0
push 0
push 0x20
push 0x20
mov ecx, esi
mov ebx, eax
call fcn.00470040
push 0
push 0
push 0x30
push 0x30
mov ecx, esi
mov edi, eax
call fcn.00470040
push dword [ebp - 0x10]
mov esi, eax
call fcn.004be580
mov ecx, dword [ebp - 0x14]
add esp, 4
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0046ced0
mov esi, dword [ebp + 8]
mov bl, al
pop edi
jmp 0x46eebb
xor esi, esi
jmp 0x46eeb0
mov esi, dword [ebp + 8]
push ebx
call fcn.004be580
add esp, 4
xor bl, bl
test esi, esi
je 0x46eed4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x46eed4
push ebx
call fcn.004be580
add esp, 4
xor bl, bl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46ef04
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46eefa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ef0e
push edx
push ecx
call fcn.005342bc
add esp, 8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00560610
int3
Function at 0x46ffd0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push dword [ebp + 8]
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x470032
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
push dword [ebp - 4]
cmovg esi, ecx
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479730
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov esi, ecx
movlpd qword [ebp - 0x24], xmm0
push eax
mov dword [ebp - 4], esi
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
test eax, eax
jle 0x479843
push edi
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, dword [esi + 0x1c]
test eax, eax
je 0x479786
mov eax, dword [eax]
test eax, eax
je 0x479786
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x479797
mov ecx, dword [ecx]
test ecx, ecx
je 0x479797
mov eax, dword [ecx]
test eax, eax
jne 0x47979f
xor edx, edx
jmp 0x4797a1
mov edx, dword [eax]
mov eax, dword [edx + 8]
mov ecx, esi
dec eax
shr ecx, 1
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
xor edi, edi
mov eax, dword [eax + ecx*4]
lea ecx, [eax + esi*8]
mov eax, dword [eax + esi*8]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x479832
mov ebx, ecx
nop dword [eax + eax]
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x4797e6
mov eax, dword [eax]
test eax, eax
je 0x4797e6
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + edi]
test ecx, ecx
je 0x4797f7
mov ecx, dword [ecx]
test ecx, ecx
je 0x4797f7
mov eax, dword [ecx]
test eax, eax
jne 0x4797ff
xor edx, edx
jmp 0x479801
mov edx, dword [eax]
mov eax, dword [edx + 8]
mov ecx, esi
dec eax
shr ecx, 1
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
push 0
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + esi*8]
mov esi, dword [ebp - 4]
sub eax, 0xffffff80
push eax
mov ecx, esi
call fcn.004767d0
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4797d0
mov ebx, dword [ebp - 8]
jmp 0x479835
mov esi, dword [ebp - 4]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x14]
jl 0x479772
pop edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
sbb eax, dword [ebp - 0x20]
push eax
push ecx
push str._lld_n
call fcn.00472500
add esp, 0xc
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480000
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
push esi
test bl, 2
je 0x480033
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x480047
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
mov esi, dword [ebp + 0x10]
test bl, 1
je 0x480063
cmp esi, 0x12
je 0x480063
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
je 0x48007c
cmp esi, 0x5b
je 0x48007c
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
test esi, esi
je 0x48014f
push 0x80
push 0
push 0x5bb720
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
cmp esi, 0x20
jne 0x4800c9
push str.Space
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48012a
cmp esi, 0x5b
jne 0x4800e0
push 0x57f058
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48012a
cmp esi, 5
jne 0x4800f7
push 0x57f060
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48012a
cmp esi, 6
jne 0x48010e
push 0x57f068
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48012a
lea eax, [esi - 0x21]
push 0x40
push 0x5bb720
cmp eax, 0xe
ja 0x480123
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, 0x5bb720
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480132
sub ecx, edx
sar ecx, 1
push ecx
push 0x5bb720
lea ecx, [ebp - 0x18]
call fcn.00402350
movups xmm0, xmmword [ebp - 0x18]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor eax, eax
mov word [ebp - 0x18], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 8], eax
mov dword [ebp - 4], 7
call fcn.00403070
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esi + 0x750], 0
call edi
mov ecx, 0x8000
and ax, cx
mov word [ebp - 4], ax
movzx eax, ax
push 0x10
mov dword [ebp - 0xc], eax
call edi
mov ecx, 0x8000
and ax, cx
push 0x12
mov word [ebp - 2], ax
call edi
mov ecx, 0x8000
and ax, cx
push 0x5b
mov word [ebp - 6], ax
setne bl
call edi
mov ecx, 0x8000
test cx, ax
jne 0x482182
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x482184
mov bh, 1
mov edx, dword [esi + 0x74c]
mov cx, word [ebp - 2]
test edx, edx
je 0x4821a8
cmp word [ebp - 4], 0
jne 0x4821a8
test cx, cx
jne 0x4821a8
cmp word [ebp - 6], cx
jne 0x4821a8
mov bl, 1
jmp 0x4821af
cmp word [ebp - 0xc], 0
je 0x4821b6
or dword [esi + 0x750], 2
mov eax, dword [esi + 0x750]
test cx, cx
je 0x4821ca
or eax, 4
mov dword [esi + 0x750], eax
test bl, bl
je 0x4821d7
or eax, 1
mov dword [esi + 0x750], eax
mov ecx, edx
test bh, bh
je 0x4821f9
or eax, 8
mov dword [esi + 0x750], eax
test edx, edx
jne 0x4821f9
mov dword [esi + 0x74c], 0x5b
mov ecx, 0x5b
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00480000
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x48221c
push 1
push 0x57f748
lea ecx, [ebp - 0x24]
call fcn.00402e60
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0044dfb0
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x482260
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x482256
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x482264
push edx
push ecx
call fcn.005342bc
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.00560610
int3
Function at 0x482660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
cmp eax, 0x70b
jne 0x482843
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
lea esi, [edi + 0x18]
push dword [edi + 0x1c]
push dword [esi]
push eax
call fcn.0044e620
cmp dword [edi + 0xc], 0x202
jne 0x4827c1
push esi
mov ecx, ebx
call fcn.0044e280
push dword [edi + 0x1c]
lea eax, [ebp - 0x34]
mov ecx, ebx
push dword [esi]
push eax
call fcn.0044e620
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401570
mov esi, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
add esp, 8
cmp dword [ebp - 8], 8
cmovae edi, dword [ebp - 0x1c]
test esi, esi
je 0x48277d
push 0x100
lea eax, [ebp - 0x164]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x164]
push 0x57f516
push str.file:
call fcn.00453410
mov ecx, edi
test al, al
jne 0x482758
lea ebx, [edi + esi*2]
cmp edi, ebx
jae 0x482744
nop word [eax + eax]
movzx esi, word [ecx]
mov edx, 5
mov eax, str.file:
nop dword [eax]
cmp word [eax], si
je 0x48274f
add eax, 2
sub edx, 1
jne 0x482730
add ecx, 2
cmp ecx, ebx
jb 0x482720
mov ebx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x4827d6
mov ebx, dword [ebp - 4]
sub ecx, edi
sar ecx, 1
jmp 0x4827d6
lea edx, [edi + esi*2]
cmp edi, edx
jae 0x48277d
mov esi, 0x100
movzx eax, word [ecx]
cmp ax, si
jae 0x482776
cmp byte [ebp + eax - 0x164], 0
jne 0x4827d2
add ecx, 2
cmp ecx, edx
jb 0x482764
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 1
cmovae eax, dword [ebp - 0x34]
push 0x5965b4
push 0x5965b4
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [eax + 0x1c]
push eax
push eax
call fcn.0044e2e0
lea ecx, [ebp - 0x1c]
call fcn.00403070
lea ecx, [ebp - 0x34]
call fcn.00403070
lea ecx, [ebp - 0x64]
call fcn.00403070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
sub ecx, edi
sar ecx, 1
test ecx, ecx
jne 0x48277d
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
add eax, 0xa
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x4827f5
cmp ecx, 0x2f
jne 0x4827fa
add eax, 2
jmp 0x4827e8
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402fa0
lea eax, [ebp - 0x4c]
push eax
call fcn.0046fab0
add esp, 0x1c
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push 1
push 0x5965b4
push 0x5965b4
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x4c]
call fcn.00403070
jmp 0x4827a2
push dword [ebp + 0xc]
push eax
call fcn.0044eaa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b6b0
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
lea eax, [ebp - 4]
push eax
push 0x58f6b4
push 1
push 0
push 0x58f704
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48b824
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi]
call fcn.0048cd20
cmp dword [eax + 0x14], 8
jb 0x48b6f0
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
jbe 0x48b734
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0048d0d0
cmp dword [eax + 0x14], 8
jb 0x48b720
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0x94], 0
jbe 0x48b75a
cmp dword [eax + 0x98], 8
lea edx, [eax + 0x84]
jb 0x48b74e
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi]
cmp dword [eax + 0xec], 0
jbe 0x48b77e
cmp dword [eax + 0xf0], 8
lea edx, [eax + 0xdc]
jb 0x48b774
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0x58f724
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x48b812
push 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5965b8
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [esi]
add esp, 0xc
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x48b7cc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
push str..lnk
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x224]
add esp, 0x18
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x48cbe0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5bb448]
sub esp, 0x2b8
test eax, eax
jne 0x48ccbd
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.0040f470
add esp, 0xc
test al, al
je 0x48cc55
mov eax, dword [0x5bb444]
test eax, eax
jne 0x48cc32
push str.SHGetStockIconInfo
push str.shell32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5bb444], eax
test eax, eax
je 0x48cc55
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x218
push ecx
push 0x4000
push 3
call eax
test eax, eax
cmove esi, dword [ebp - 0x214]
mov dword [0x5bb448], esi
test esi, esi
jne 0x48ccba
lea eax, [ebp - 4]
push eax
push 0x25
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x48ccb4
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b4]
test eax, eax
push dword [ebp - 4]
cmovg esi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [0x5bb448], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48d200
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0x231
ja 0x48d342
je 0x48d336
mov eax, edi
sub eax, 0x104
je 0x48d2ba
sub eax, 1
jne 0x48d354
push eax
push 0x5b786c
push 0x5b980c
push eax
call fcn.00426d30
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x48d354
lea ecx, [ebp - 0x2c]
call fcn.004291c0
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x2c], 0x3b
mov word [ebp - 0x18], bx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0
call fcn.00424ac0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0xf0]
jmp 0x48d354
push 0
push 0x5b786c
push 0x5b980c
push 0
call fcn.00426d30
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x48d354
lea ecx, [ebp - 0x2c]
call fcn.004291c0
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x2c], 0x3a
mov word [ebp - 0x18], bx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0
call fcn.00424ac0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0xf0]
jmp 0x48d354
mov dword [esi + 0x264], 1
jmp 0x48d354
cmp edi, 0x232
jne 0x48d354
mov dword [esi + 0x264], 0
push dword [ebp + 0x10]
mov ecx, esi
push ebx
push edi
call fcn.00439cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x496720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
je 0x496761
test esi, 0x10
jne 0x496761
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4968f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x57c030
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov ebx, ecx
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x496a93
push dword [ebp - 4]
push 1
push 0x4c
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebx], 0x4c
jne 0x496a93
mov eax, dword [ebx + 0x14]
test al, 1
je 0x49696d
push dword [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 1
push 2
push eax
call sub.msvcrt.dll_fread
movzx eax, word [ebp + 8]
push 1
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x14]
add esp, 0x1c
test al, 2
je 0x496a7d
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
push dword [ebp - 4]
lea esi, [ebx + 0x4c]
mov edi, eax
push 1
push 8
push esi
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x50]
add esp, 0x14
sub eax, 0x1c
cmp eax, 8
ja 0x496a93
push 1
push 0xfffffffffffffff8
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push dword [ebx + 0x50]
push esi
call sub.msvcrt.dll_fread
add esp, 0x1c
test byte [ebx + 0x54], 1
je 0x496a6b
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x5c]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0x18
xor edi, edi
push dword [ebp - 4]
lea esi, [ebp - 0x108]
push 1
add esi, edi
push 1
push esi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp byte [esi], 0
je 0x496a16
inc edi
cmp edi, 0x104
jl 0x4969f0
cmp edi, 0x104
je 0x496a93
lea ecx, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496a30
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebx + 0x9c]
call fcn.004027c0
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
cmp dword [ebx + 0xac], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0xc
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x496aa3
push eax
call sub.msvcrt.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4