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

Disassembly:
sub esp, 0x430
mov eax, dword [0x722ae0]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x18], ecx
je 0x46193e
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x30]
push 0x4eeb30
push ecx
push 0x4f05cc
lea edx, [esp + 0x244]
push 0x104
push edx
call esi
mov eax, dword [esp + 0x458]
mov edi, dword [esp + 0x460]
mov ebp, dword [esp + 0x45c]
add esp, 0x14
lea ecx, [esp + 0x30]
mov word [esp + 0x43e], bx
push eax
push 0x4eeb30
push ecx
push str._s_sMouseGesture__d.bmp
push edi
push ebp
call esi
add esp, 0x18
mov word [ebp + edi*2 - 2], bx
jmp 0x4619c9
mov eax, dword [0x73ff2c]
push str.ImgCache_
lea edx, [esp + 0x34]
push 0x103
push edx
push eax
call fcn.004a8e10
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x40]
push ecx
call esi
add esp, 0x14
inc eax
cmp eax, 0x103
jbe 0x461977
mov eax, 0x103
jmp 0x461982
lea edx, [esp + 0x30]
push edx
call esi
add esp, 4
inc eax
push eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x23c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edx, dword [esp + 0x450]
mov esi, dword [esp + 0x458]
mov ebp, dword [esp + 0x454]
add esp, 0xc
lea eax, [esp + 0x30]
push edx
push eax
push str._sMouseGesture__d.bmp
push esi
push ebp
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov word [ebp + esi*2 - 2], bx
push ebx
push ebp
call fcn.004a8e00
add esp, 8
test eax, eax
je 0x4619e9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x430
ret 0xc
lea ecx, [esp + 0x238]
push ecx
call fcn.004a9280
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [ecx + 0xc]
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov eax, dword [0x6f287c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x20]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x444]
push 1
push 0
mov edx, dword [ecx + 0xc]
push 0
push esi
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push edi
push ebx
push ebp
call fcn.004ad4c0
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x6f287c]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x430
ret 0xc
Function at 0x462020
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x46218f
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x46218f
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x152c0]
sub eax, ebx
sub ecx, edi
cmp eax, edx
jne 0x46207c
cmp ecx, dword [esi + 0x152c4]
je 0x46218f
mov eax, dword [esi + 0x152bc]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x4620af
lea edx, [esp + 0x10]
lea ebx, [esi + 0x1597c]
push edx
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x58]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x462148
lea ecx, [esi + 0x54]
call fcn.004c94c0
mov ecx, eax
mov eax, 0x51eb851f
imul ecx, dword [esi + 0x4c]
mul ecx
mov eax, dword [esi + 0x15990]
mov edi, edx
shr edi, 5
test eax, eax
push 0x40
push edi
je 0x4620ef
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub edx, eax
push edx
mov edx, dword [esi + 0x58]
push ecx
push eax
push 0
push edx
jmp 0x462108
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
sub ecx, eax
sub edx, edi
push ecx
push edx
push eax
mov eax, dword [esi + 0x58]
push 0
push eax
call ebp
lea ecx, [esp + 0x10]
lea ebx, [esi + 0x1597c]
push ecx
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x15990]
test eax, eax
je 0x46212e
add dword [esi + 0x15980], edi
jmp 0x462148
mov ecx, 0x6f2878
call fcn.004bc1e0
test eax, eax
jne 0x462142
inc dword [esi + 0x15980]
sub dword [esi + 0x15988], edi
mov ecx, esi
call fcn.00462300
mov eax, dword [esi + 0x151d8]
test eax, eax
je 0x46218f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46218f
mov edx, dword [esi + 0x15988]
mov eax, dword [esi + 0x15980]
mov ecx, dword [ebx]
sub edx, eax
mov eax, dword [esi + 0x15984]
push 6
sub eax, ecx
mov ecx, dword [esi + 0x151d8]
push edx
push eax
push 0
push 0
push 0
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x467120
Capabilities:
Delete file

Disassembly:
sub esp, 0x410
push esi
mov esi, ecx
push 0
call fcn.00463ed0
mov eax, dword [0x725e04]
test eax, eax
jne 0x467149
cmp dword [0x722ac4], 2
je 0x467149
mov ecx, esi
call fcn.00463dd0
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__wstrtime]
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [esp + 0x214]
push 0xffffffffffffffff
push ecx
push str.LastRunTime
push str.Main
call fcn.004af2d0
mov ecx, dword [esi + 0x159d0]
lea eax, [esi + 0x159d0]
add esp, 0x18
test ecx, ecx
pop esi
je 0x467194
push 0
push eax
call fcn.004adc90
add esp, 8
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push str.twcache.ini
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x73ff2c]
lea edx, [esp + 8]
push 0x103
push edx
push eax
call fcn.004a8e10
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
add esp, 0x410
ret
Function at 0x4688d5
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push edi
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
add edx, 0xfffffff5
mov dword [esp + 0x10], edx
push ebp
lea edx, [esp + 0x14]
add eax, 9
push ecx
push edx
mov dword [esp + 0x28], eax
call ebx
test eax, eax
je 0x468974
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
test eax, eax
je 0x468974
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x468961
mov ecx, dword [esi + 0x50]
sub ecx, eax
test ecx, 0xfffffffc
je 0x468961
mov ecx, eax
test ecx, ecx
je 0x46894e
mov eax, dword [esi + 0x50]
sub eax, ecx
sar eax, 2
mov edx, dword [esi + 0x4c]
push 1
mov ecx, esi
mov eax, dword [edx + eax*4 - 4]
push eax
call fcn.00469040
jmp 0x46892c
push 0
mov ecx, esi
call fcn.00468340
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
xor edi, edi
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x468a9a
mov ecx, dword [esi + 0x50]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x468a9a
mov eax, dword [eax + edi*4]
mov edx, dword [esp + 0x28]
push ebp
add eax, 0x10
push edx
push eax
call ebx
test eax, eax
jne 0x4689a7
inc edi
jmp 0x468976
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x468a9a
cmp ecx, 1
jne 0x468a9a
mov eax, dword [eax + edi*4]
mov edx, dword [esp + 0x28]
push ebp
add eax, 0x20
push edx
push eax
call ebx
test eax, eax
je 0x468a06
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
push ecx
mov eax, dword [eax + edi*4]
push edx
add eax, 0x20
push eax
call ebx
test eax, eax
je 0x468a06
mov ecx, dword [esi + 0x4c]
push 1
mov edx, dword [ecx + edi*4]
mov ecx, esi
push edx
call fcn.00469040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x28]
push ebp
push ecx
mov edx, dword [eax + edi*4]
add edx, 0x448
push edx
call ebx
test eax, eax
je 0x468a9a
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
push ecx
mov eax, dword [eax + edi*4]
push edx
add eax, 0x448
push eax
call ebx
test eax, eax
je 0x468a9a
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
add ecx, 0x458
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
test eax, eax
jne 0x468a9a
mov edx, dword [esi + 0x4c]
mov edi, dword [edx + edi*4]
mov eax, dword [edi + 0x444]
test eax, eax
je 0x468a7a
mov ecx, dword [edi + 0x440]
push ecx
push 1
push edi
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
add edi, 0x238
cmp word [edi], 0
je 0x468a9a
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x46a4b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
call ebp
lea ecx, [esi + 0x9d8]
call fcn.004c94c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, ecx
push 0x40
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi + 0x9dc]
push 0
push eax
call edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, eax
add eax, 0x24
mov dword [esp + 0x1c], eax
sub eax, ecx
sub eax, 0x14
push 0x40
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x1c], ecx
push edx
push ecx
push eax
mov eax, dword [esi + 0x15b5c]
push 0
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push 4
lea eax, [ecx - 0x1a]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
sub eax, edx
sub ecx, ebx
push eax
push ecx
mov dword [esp + 0x20], edx
push edx
mov edx, dword [esi + 0x58]
mov dword [esp + 0x20], ebx
push ebx
push 0
mov eax, dword [edx + 4]
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x19d0c]
push ecx
push 0
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x19d10]
push ecx
push 0
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x19d14]
push ecx
push 0
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x19d18]
push ecx
push 0
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x19d1c]
push ecx
push 0
push eax
call edi
mov ecx, dword [esi + 0x58]
push 0
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x1a]
lea edx, [esi + 0x17348]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x46a66c
add esi, 0x1734c
jmp 0x46a66e
xor esi, esi
mov edx, dword [esp + 0x18]
sub eax, ecx
push 0x40
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push 0
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x46f9c0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4da1bb
push eax
mov eax, 0x124c
mov dword fs:[0], esp
call fcn.004d4ce0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [ebp + 0x950]
mov esi, dword [ebp + 0x94c]
lea ecx, [ebp + 0x948]
cmp edi, edi
mov dword [esp + 0x10], ecx
mov ebx, edi
je 0x46fa17
push ebx
mov ecx, esi
call fcn.0040f740
add ebx, 4
add esi, 4
cmp ebx, edi
jne 0x46fa01
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
push eax
push esi
call fcn.0040ef70
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
mov ebx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x126c]
mov dword [ebx + 8], esi
test eax, eax
jne 0x46fa6b
mov ebp, dword [ebp + 0x179e4]
lea eax, [esp + 0x214]
push 0x823
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x46fa87
push eax
push 0x4ed128
lea ecx, [esp + 0x21c]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x214]
lea ebp, [esp + 0x214]
test edx, edx
lea esi, [esp + 0x214]
je 0x46fbec
push 0x3b
push ebp
call dword [sym.imp.MSVCRT.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46fabf
mov word [ebp], 0
add ebp, 2
mov eax, dword [0x4ed0fc]
test esi, esi
mov dword [esp + 0x10], eax
je 0x46fb8b
mov ecx, esi
shr ecx, 0x10
jne 0x46fb5b
and esi, 0xffff
lea edx, [esp + 0x14]
mov edi, esi
push 0x100
push edx
push edi
call fcn.0040f710
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x46fb0f
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.0040f830
jmp 0x46fb8b
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.0040f940
test eax, eax
je 0x46fb4e
push esi
push eax
push edi
call fcn.0040f710
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x46fb4e
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.0040f940
test eax, eax
jne 0x46fb26
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0040f9d0
jmp 0x46fb8b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x46fb8b
push edi
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x46fb8b
lea ecx, [edi + edi]
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x1270], 0
call fcn.0040efc0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4ed100]
mov dword [esp + 0x1264], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x46fbe2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46fbe2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
test ebp, ebp
mov esi, ebp
jne 0x46faa4
mov ecx, dword [esp + 0x125c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1258
ret 4
Function at 0x474e70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc84
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x87e]
mov word [ebp - 0x880], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov ecx, dword [0x73ff2c]
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x880]
push 0x103
push eax
push ecx
call fcn.004a8e10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x676]
mov word [ebp - 0x678], bx
mov edx, dword [ebp + 8]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4ed4f0
lea eax, [ebp - 0x880]
push edx
push eax
push 0x4f3fe4
lea ecx, [ebp - 0x678]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
lea edx, [ebp - 0x470]
lea eax, [ebp - 0x678]
mov word [ebp - 0x472], bx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x14], esi
je 0x4750b4
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [ebp - 0x444]
push 0x4ed42c
push ecx
call edi
add esp, 8
test eax, eax
je 0x475097
lea edx, [ebp - 0x444]
push 0x4ed424
push edx
call edi
add esp, 8
test eax, eax
je 0x475097
test byte [ebp - 0x470], 0x10
je 0x475097
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x880]
stosw word es:[edi], ax
lea eax, [ebp - 0x444]
push eax
push ecx
push edx
push str._s_s_splugin.ini
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc8e]
mov word [ebp - 0xc90], bx
rep stosd dword es:[edi], eax
add esp, 0x18
lea ecx, [ebp - 0xc90]
lea edx, [ebp - 0x220]
mov word [ebp - 0x1a], bx
push 0x103
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.004a8e00
add esp, 8
cmp eax, ebx
je 0x475097
lea ecx, [ebp - 0x220]
push str.General
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004750d0
mov esi, 1
cmp esi, 0xa
jge 0x475094
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa86]
mov word [ebp - 0xa88], bx
rep stosd dword es:[edi], eax
push esi
push str.General__d
lea edx, [ebp - 0xa88]
push 0x103
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0xa88]
lea ecx, [ebp - 0x220]
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004750d0
cmp eax, ebx
je 0x475094
inc esi
jmp 0x47502a
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x470]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x474f3b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4794c0
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
mov eax, dword [0x73eec4]
sub esp, 0xc70
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x479721
lea eax, [esp + 4]
push reloc.DSOUND.dll_DirectSoundCreate
push eax
push str.Count
push str.UpdatePlugin
mov dword [esp + 0x14], ebx
call fcn.004af430
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp eax, ebx
jbe 0x479726
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x666]
mov word [esp + 0x664], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x86e]
mov word [esp + 0x86c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x73ff2c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], bx
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x668]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x86c]
push 0x104
lea ecx, [esp + 0x668]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x4c]
push edx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x4c]
push str.TheWorldUpdate_
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x54]
push ecx
call fcn.004a9280
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
lea edx, [esp + 0x4c]
lea eax, [esp + 0x254]
push edx
push str._sUpdate.ini
push 0x103
push eax
call esi
mov cx, word [0x500df0]
xor eax, eax
mov word [esp + 0xa84], cx
mov ecx, 0x81
lea edi, [esp + 0xa86]
add esp, 0x10
rep stosd dword es:[edi], eax
lea edx, [esp + 0x254]
push edx
push 0x4f43f4
stosw word es:[edi], ax
push 0x4ee374
lea eax, [esp + 0xa80]
push 0x103
push eax
call esi
mov cx, word [0x500df0]
add esp, 0x14
mov word [esp + 0x45c], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x45e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004ae970
push eax
push 0x4ed128
lea edx, [esp + 0x464]
push 0x103
push edx
call esi
lea eax, [esp + 0x46c]
push ebx
push eax
call fcn.004a8e00
add esp, 0x18
test eax, eax
je 0x479697
lea ecx, [esp + 0x254]
push 1
lea edx, [esp + 0x460]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x86c]
lea ecx, [esp + 0xa74]
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.runas
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
je 0x479707
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push reloc.DSOUND.dll_DirectSoundCreate
push str.UpdatePlugin
call fcn.004aed20
add esp, 8
pop ebx
add esp, 0xc70
ret
call fcn.00474810
pop ebx
add esp, 0xc70
ret
Function at 0x484750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push 0x4dec20
lea ebx, [esi + 0x10]
mov dword [esi + 0xc], ebp
mov ecx, ebx
call fcn.00483f80
test eax, eax
jne 0x484812
push edi
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
pop edi
je 0x484812
lea ecx, [esp + 0xc]
lea edx, [esp + 0x214]
push ecx
push str._s_vbscript.dll
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x224]
push 1
push eax
call fcn.004b26e0
add esp, 0x18
mov ecx, ebx
push 0x4dec20
call fcn.00483f80
test eax, eax
jne 0x484812
push ebp
push ebp
push str.Load_VBScript.dll_failed
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
push 1
mov ecx, ebx
call fcn.00484130
push 1
mov ecx, ebx
call fcn.004841b0
mov dword [esi + 0x20], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret

Function at 0x484ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
push reloc.DSOUND.dll_DirectSoundCreate
push str.TrustAppTmp
call fcn.004aed20
mov ax, word [0x500df0]
mov ecx, 0x81
mov word [esp + 0x10], ax
xor eax, eax
lea edi, [esp + 0x12]
add esp, 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea edx, [esp + 0xc]
push 0x68db9c
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x20
push 0x68dda4
push 0
call esi
push 0
push 0x24
push 0x68dfac
push 0
call esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push 0x68dda4
call esi
mov edi, 0x5c
add esp, 4
cmp word [eax*2 + 0x68dda2], di
je 0x484d8a
mov word [eax*2 + 0x68dda4], di
mov word [eax*2 + 0x68dda6], 0
push 0x68dfac
call esi
add esp, 4
cmp word [eax*2 + 0x68dfaa], di
je 0x484db0
mov word [eax*2 + 0x68dfac], di
mov word [eax*2 + 0x68dfae], 0
pop edi
pop esi
add esp, 0x208
ret