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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x579f88
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [0x5b970c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46c6af
push esi
push dword [0x5b970c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c6af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46c6af
push ebx
push esi
push dword [0x5b970c]
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.0046a1c0
test esi, esi
je 0x46c658
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46c62b
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x46c653
cmp ebx, esi
jb 0x46c63c
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x46c658
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.0055e030
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0
push dword [ebp - 0x10]
call fcn.0041c380
mov esi, eax
add esp, 4
test esi, esi
je 0x46c69a
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push esi
call fcn.0046c720
push esi
mov bl, al
call fcn.0041c460
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.0046a550
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.0046a550
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 0x46c790
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 0x46c7a6
mov edx, dword [eax]
push edx
push str.AddWebpToCache__s_n
call fcn.0046ffb0
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 0x46c7db
mov eax, dword [eax]
push ebx
push esi
push 0x57a030
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x46c952
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c952
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 0x46c82a
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
jmp 0x46c94f
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.0046a000
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.00536cd0
mov ebx, eax
add esp, 0x30
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x46c952
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46c949
cmp eax, dword [ebp - 8]
jne 0x46c949
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x46c929
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.0046a420
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x46c92d
mov ecx, dword [esi + 8]
mov dword [esi + 8], 0
test ecx, ecx
jne 0x46c92d
push edi
push ecx
push ecx
push 0x10
push 0x10
mov ecx, esi
call fcn.0046dac0
push 0
push 0
push 0x20
push 0x20
mov ecx, esi
mov ebx, eax
call fcn.0046dac0
push 0
push 0
push 0x30
push 0x30
mov ecx, esi
mov edi, eax
call fcn.0046dac0
push dword [ebp - 0x10]
mov esi, eax
call fcn.004bbff0
mov ecx, dword [ebp - 0x14]
add esp, 4
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0046a950
mov esi, dword [ebp + 8]
mov bl, al
pop edi
jmp 0x46c93b
xor esi, esi
jmp 0x46c930
mov esi, dword [ebp + 8]
push ebx
call fcn.004bbff0
add esp, 4
xor bl, bl
test esi, esi
je 0x46c954
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x46c954
push ebx
call fcn.004bbff0
add esp, 4
xor bl, bl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46c984
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46c97a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c98e
push edx
push ecx
call fcn.00531d2c
add esp, 8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0055e070
int3
Function at 0x46da50
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 0x46dab2
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 0x4771e0
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 0x4772f3
push edi
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, dword [esi + 0x1c]
test eax, eax
je 0x477236
mov eax, dword [eax]
test eax, eax
je 0x477236
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x477247
mov ecx, dword [ecx]
test ecx, ecx
je 0x477247
mov eax, dword [ecx]
test eax, eax
jne 0x47724f
xor edx, edx
jmp 0x477251
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 0x4772e2
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 0x477296
mov eax, dword [eax]
test eax, eax
je 0x477296
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + edi]
test ecx, ecx
je 0x4772a7
mov ecx, dword [ecx]
test ecx, ecx
je 0x4772a7
mov eax, dword [ecx]
test eax, eax
jne 0x4772af
xor edx, edx
jmp 0x4772b1
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.00474280
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x477280
mov ebx, dword [ebp - 8]
jmp 0x4772e5
mov esi, dword [ebp - 4]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x14]
jl 0x477222
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.0046ff80
add esp, 0xc
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47dab0
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 0x47dae3
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x47daf7
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
mov esi, dword [ebp + 0x10]
test bl, 1
je 0x47db13
cmp esi, 0x12
je 0x47db13
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
je 0x47db2c
cmp esi, 0x5b
je 0x47db2c
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
test esi, esi
je 0x47dbff
push 0x80
push 0
push 0x5b9720
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 0x47db79
push str.Space
push 0x5b9720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47dbda
cmp esi, 0x5b
jne 0x47db90
push 0x57d030
push 0x5b9720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47dbda
cmp esi, 5
jne 0x47dba7
push 0x57d038
push 0x5b9720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47dbda
cmp esi, 6
jne 0x47dbbe
push 0x57d040
push 0x5b9720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47dbda
lea eax, [esi - 0x21]
push 0x40
push 0x5b9720
cmp eax, 0xe
ja 0x47dbd3
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, 0x5b9720
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47dbe2
sub ecx, edx
sar ecx, 1
push ecx
push 0x5b9720
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 0x47fbb0
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 0x47fc22
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x47fc24
mov bh, 1
mov edx, dword [esi + 0x74c]
mov cx, word [ebp - 2]
test edx, edx
je 0x47fc48
cmp word [ebp - 4], 0
jne 0x47fc48
test cx, cx
jne 0x47fc48
cmp word [ebp - 6], cx
jne 0x47fc48
mov bl, 1
jmp 0x47fc4f
cmp word [ebp - 0xc], 0
je 0x47fc56
or dword [esi + 0x750], 2
mov eax, dword [esi + 0x750]
test cx, cx
je 0x47fc6a
or eax, 4
mov dword [esi + 0x750], eax
test bl, bl
je 0x47fc77
or eax, 1
mov dword [esi + 0x750], eax
mov ecx, edx
test bh, bh
je 0x47fc99
or eax, 8
mov dword [esi + 0x750], eax
test edx, edx
jne 0x47fc99
mov dword [esi + 0x74c], 0x5b
mov ecx, 0x5b
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047dab0
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x47fcbc
push 1
push 0x57d720
lea ecx, [ebp - 0x24]
call fcn.00402e60
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0044be70
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x47fd00
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fcf6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fd04
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.0055e070
int3
Function at 0x480100
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 0x4802e3
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
lea esi, [edi + 0x18]
push dword [edi + 0x1c]
push dword [esi]
push eax
call fcn.0044c3a0
cmp dword [edi + 0xc], 0x202
jne 0x480261
push esi
mov ecx, ebx
call fcn.0044c150
push dword [edi + 0x1c]
lea eax, [ebp - 0x34]
mov ecx, ebx
push dword [esi]
push eax
call fcn.0044c3a0
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 0x48021d
push 0x100
lea eax, [ebp - 0x164]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x164]
push 0x57d4ee
push str.file:
call fcn.00450b60
mov ecx, edi
test al, al
jne 0x4801f8
lea ebx, [edi + esi*2]
cmp edi, ebx
jae 0x4801e4
nop word [eax + eax]
movzx esi, word [ecx]
mov edx, 5
mov eax, str.file:
nop dword [eax]
cmp word [eax], si
je 0x4801ef
add eax, 2
sub edx, 1
jne 0x4801d0
add ecx, 2
cmp ecx, ebx
jb 0x4801c0
mov ebx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x480276
mov ebx, dword [ebp - 4]
sub ecx, edi
sar ecx, 1
jmp 0x480276
lea edx, [edi + esi*2]
cmp edi, edx
jae 0x48021d
mov esi, 0x100
movzx eax, word [ecx]
cmp ax, si
jae 0x480216
cmp byte [ebp + eax - 0x164], 0
jne 0x480272
add ecx, 2
cmp ecx, edx
jb 0x480204
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 1
cmovae eax, dword [ebp - 0x34]
push 0x594564
push 0x594564
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.0044c180
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 0x48021d
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 0x480295
cmp ecx, 0x2f
jne 0x48029a
add eax, 2
jmp 0x480288
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402fa0
lea eax, [ebp - 0x4c]
push eax
call fcn.0046d530
add esp, 0x1c
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push 1
push 0x594564
push 0x594564
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x4c]
call fcn.00403070
jmp 0x480242
push dword [ebp + 0xc]
push eax
call fcn.0044c730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x489260
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 0x58d664
push 1
push 0
push 0x58d6b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4893d4
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi]
call fcn.0048a8d0
cmp dword [eax + 0x14], 8
jb 0x4892a0
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 0x4892e4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0048ac80
cmp dword [eax + 0x14], 8
jb 0x4892d0
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 0x48930a
cmp dword [eax + 0x98], 8
lea edx, [eax + 0x84]
jb 0x4892fe
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 0x48932e
cmp dword [eax + 0xf0], 8
lea edx, [eax + 0xdc]
jb 0x489324
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 0x58d6d4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4893c2
push 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x594568
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 0x48937c
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 0x48a790
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5b9448]
sub esp, 0x2b8
test eax, eax
jne 0x48a86d
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.0040f720
add esp, 0xc
test al, al
je 0x48a805
mov eax, dword [0x5b9444]
test eax, eax
jne 0x48a7e2
push str.SHGetStockIconInfo
push str.shell32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b9444], eax
test eax, eax
je 0x48a805
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 [0x5b9448], esi
test esi, esi
jne 0x48a86a
lea eax, [ebp - 4]
push eax
push 0x25
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x48a864
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 [0x5b9448], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48adb0
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 0x48aef2
je 0x48aee6
mov eax, edi
sub eax, 0x104
je 0x48ae6a
sub eax, 1
jne 0x48af04
push eax
push 0x5b586c
push 0x5b780c
push eax
call fcn.00427430
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x48af04
lea ecx, [ebp - 0x2c]
call fcn.00429800
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.004252b0
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 0x48af04
push 0
push 0x5b586c
push 0x5b780c
push 0
call fcn.00427430
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x48af04
lea ecx, [ebp - 0x2c]
call fcn.00429800
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.004252b0
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 0x48af04
mov dword [esi + 0x264], 1
jmp 0x48af04
cmp edi, 0x232
jne 0x48af04
mov dword [esi + 0x264], 0
push dword [ebp + 0x10]
mov ecx, esi
push ebx
push edi
call fcn.004393c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x494280
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 0x4942c1
test esi, 0x10
jne 0x4942c1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x494450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x57a030
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 0x4945f3
push dword [ebp - 4]
push 1
push 0x4c
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebx], 0x4c
jne 0x4945f3
mov eax, dword [ebx + 0x14]
test al, 1
je 0x4944cd
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 0x4945dd
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 0x4945f3
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 0x4945cb
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 0x494576
inc edi
cmp edi, 0x104
jl 0x494550
cmp edi, 0x104
je 0x4945f3
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 0x494590
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 0x494603
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