joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9db0
Capabilities:
Get common file path
Get system information on windows

Disassembly:
sub esp, 0x22c
call fcn.004a95a0
mov eax, dword [esp + 0x230]
push eax
call fcn.0040e0e0
add esp, 4
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x14], 1
jne 0x4a9de7
mov dword [0x59e2f0], 0
cmp word [0x5a18c4], 0
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push edi
je 0x4a9e05
push 0x5a18c4
call esi
cmp eax, 0xffffffff
jne 0x4a9e58
mov dx, word [0x56e1d0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], dx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x2c]
push 0x5687d8
push ecx
call esi
add eax, 0x41
push eax
push 0x5687c8
push 0x103
push 0x5a18c4
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, dword [0x5686c0]
xor edi, edi
test eax, eax
jbe 0x4a9e87
mov esi, 0x566c54
mov edx, dword [esi + 0x20]
push edx
push esi
push 0x53a9a8
call fcn.0040ea80
mov eax, dword [0x5686c0]
add esp, 0xc
inc edi
add esi, 0x30
cmp edi, eax
jb 0x4a9e68
mov eax, dword [0x5686c4]
xor edi, edi
test eax, eax
jbe 0x4a9ebd
mov esi, 0x568234
mov eax, dword [esi + 4]
mov ecx, dword [esi]
dec eax
lea edx, [esi - 0x20]
push eax
push ecx
push edx
push 0x53a9a8
call fcn.0040e860
mov eax, dword [0x5686c4]
add esp, 0x10
inc edi
add esi, 0x30
cmp edi, eax
jb 0x4a9e97
mov eax, dword [0x59e2f8]
mov dword [0x588e54], eax
call fcn.004a9c10
pop edi
pop esi
test eax, eax
je 0x4a9edc
mov dword [0x588e54], 0
mov eax, dword [0x59e304]
test eax, eax
je 0x4a9eef
mov dword [0x588e54], 0
mov ecx, dword [0x59e2f0]
mov dword [0x588e58], ecx
call fcn.004a9f20
mov ecx, section..taihang
call fcn.0049a0f0
mov ecx, 0x588f8c
call fcn.004d96b0
call fcn.00413090
add esp, 0x22c
ret
Function at 0x4ab800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x670
mov ecx, dword [esp + 0x678]
push ebx
lea eax, [esp + 0x5c]
push ecx
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x10], 0x147
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0x21
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
mov dword [esp + 4], eax
test eax, eax
jle 0x4ab945
push ebp
mov ebp, dword [esp + 0x688]
push esi
mov esi, dword [esp + 0x680]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x688]
lea edx, [esp + 0x14]
push edx
push 0x400
push ebx
push eax
mov word [esp + 0x78], 0
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4ab935
lea ecx, [esp + 0x68]
push ecx
call fcn.004bf690
mov eax, dword [esp + 0x690]
add esp, 4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x270]
push edx
push eax
push 0x5688c0
push 0x208
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
je 0x4ab8e5
mov edx, dword [esp + 0x694]
lea ecx, [esp + 0x270]
inc edx
push edx
push ebp
push ecx
push eax
push esi
call fcn.004ab800
add esp, 0x14
jmp 0x4ab935
mov eax, dword [esp + 0x1c]
test ah, 8
jne 0x4ab935
test byte [esp + 0x20], 3
jne 0x4ab935
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4ab935
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
push 0
lea edx, [esp + 0x278]
push 0x40b
push esi
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], edx
call edi
cmp ebp, dword [esp + 0x24]
jne 0x4ab935
push 0
push eax
push 0x14e
push esi
call edi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x4ab85a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret

Function at 0x4adae0
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x4adb1c
cmp word [esi], 0
je 0x4adb1c
call fcn.004adac0
mov ecx, dword [eax]
lea edx, [esp + 4]
push 0
push edx
push 0
push esi
push 0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4adb39
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4adb39
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x4b06b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x478
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], 0
push 0x105
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
push eax
call fcn.004b08c0
add esp, 8
test eax, eax
jne 0x4b06e9
pop edi
add esp, 0x478
ret
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x272]
mov word [esp + 0x270], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x270]
push 0x105
push ecx
call fcn.004b0900
add esp, 8
test eax, eax
jne 0x4b0729
mov eax, 1
pop edi
add esp, 0x478
ret
lea edx, [esp + 0x40]
push esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x44], 0
push edx
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x4b076b
xor esi, esi
jmp 0x4b07fe
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4b0783
xor esi, esi
jmp 0x4b07fe
mov eax, dword [esp + 8]
cmp ax, 0x76c
jae 0x4b0791
xor eax, eax
jmp 0x4b07fc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x12]
and edx, 0xffff
and ecx, 0xffff
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xa]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xe]
sub eax, 0x76c
and edx, 0xffff
mov dword [esp + 0x34], eax
and ecx, 0xffff
lea eax, [esp + 0x20]
dec edx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.MSVCRT.dll_mktime]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x274]
push ecx
push 0
push 0x568c98
push 0x53a9a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edx, edx
cmp eax, esi
setne dl
pop esi
mov eax, edx
pop edi
add esp, 0x478
ret

Function at 0x4b0830
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x568980]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4b0882
lea eax, [esp]
mov dword [esp], 1
push eax
push 0x568c80
push 0x568c74
call fcn.0040ea80
add esp, 0xc
test eax, eax
jne 0x4b086c
mov dword [0x568980], 1
jmp 0x4b0882
mov eax, dword [esp]
test eax, eax
mov dword [0x568980], eax
jne 0x4b0882
call fcn.004b06b0
test eax, eax
je 0x4b08b3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 0
push edx
push 0x4b0980
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4b08b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
ret

Function at 0x4b08c0
Capabilities:
Check if file exists

Disassembly:
push esi
push 0x568cb8
mov ecx, 0x56e210
call fcn.0040c3d0
mov esi, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push str._sdata_s
dec eax
push eax
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
ret
Function at 0x4b0900
Capabilities:
Check if file exists

Disassembly:
push esi
push 0x568d04
push 0x568cec
mov ecx, 0x56e210
call fcn.0040c3d0
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 0x568cd0
dec eax
push eax
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
ret

Function at 0x4b1c60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push 0x56e1d0
push 0x568e0c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4b1cd5
cmp word [esp + 8], ax
je 0x4b1cd5
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret

Function at 0x4b2910
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004b2cf0
mov eax, dword [esi + 4]
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [esi + 0x1874]
mov ecx, ebx
call fcn.00426710
lea edx, [ebx + 0x5d4e0]
mov ecx, 0x412
xor eax, eax
mov edi, edx
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x214]
push ecx
push 0x53a4a4
push 0x824
push edx
call ebp
mov dx, word [0x56e1d0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], dx
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esi + 0x125c]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esi + 0xc]
push 0x568f80
push 0x103
push eax
call ebp
lea edx, [ebx + 0x5d0d0]
mov ecx, 0x82
xor eax, eax
mov edi, edx
add esp, 0x14
rep stosd dword es:[edi], eax
lea eax, [esi + 0xc]
push eax
push 0x53a4a4
push 0x104
push edx
call ebp
mov esi, dword [esi + 4]
add esp, 0x10
mov ecx, ebx
mov dword [ebx + 0x269c], 0x4b2a20
mov dword [ebx + 0x2698], esi
call fcn.00426640
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4b2f90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b300f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x104
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [esp + 8]
cmp eax, ecx
mov eax, 1
je 0x4b3011
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x4b3020
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1084
call fcn.0051d7f0
mov edx, dword [esp + 0x1088]
xor eax, eax
test edx, edx
push esi
je 0x4b3125
mov esi, dword [esp + 0x1090]
test esi, esi
je 0x4b3125
mov edx, dword [esp + 0x1094]
test edx, edx
je 0x4b3125
mov eax, dword [0x5884f4]
test eax, eax
je 0x4b3118
call fcn.004b2f90
test eax, eax
jne 0x4b3118
push edi
mov ecx, 0x411
lea edi, [esp + 0x46]
mov word [esp + 0x44], ax
rep stosd dword es:[edi], eax
push esi
push 0x53aa2c
push 8
push str._tp:
stosw word es:[edi], ax
push 0x568f94
lea eax, [esp + 0x58]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
lea ecx, [esp + 0x44]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], 0x56e274
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x4b3109
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x1084
ret 0x10
push esi
call fcn.00406200
mov ecx, eax
call fcn.0042fe50
pop esi
add esp, 0x1084
ret 0x10
Function at 0x4b37d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x66c
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esp
call fcn.004b3470
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x676]
mov word [ebp - 0x678], si
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [0x58e22c]
push 0x103
stosw word es:[edi], ax
lea eax, [ebp - 0x678]
push eax
push ecx
call fcn.0043f640
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46e]
mov word [ebp - 0x470], si
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [ebp - 0x678]
stosw word es:[edi], ax
push 0x568fcc
push edx
push 0x568fb8
lea eax, [ebp - 0x470]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [ebp - 0x268]
lea edx, [ebp - 0x470]
mov word [ebp - 0x26a], si
push ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x4b394e
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x23c]
push 0x539460
push eax
call edi
add esp, 8
test eax, eax
je 0x4b3931
lea ecx, [ebp - 0x23c]
push 0x54e180
push ecx
call edi
add esp, 8
test eax, eax
je 0x4b3931
test byte [ebp - 0x268], 0x10
jne 0x4b3931
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 5
jl 0x4b3931
lea esi, [ebp + eax*2 - 0x244]
push 4
push 0x568fac
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b3931
mov word [esi], ax
lea eax, [ebp - 0x23c]
push str.IE6Default
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4b395f
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004b3540
lea ecx, [ebp - 0x268]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b38a2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x23c]
push edx
lea ecx, [eax + 0x24]
call fcn.004b4bc0
jmp 0x4b3931
Function at 0x4b3e50
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x61c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x630]
xor ebp, ebp
cmp esi, ebp
jne 0x4b3e8b
push ebp
push eax
push 0xc83
call fcn.004d7a80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0xc34]
lea ecx, [esp + 0x21c]
push eax
push ecx
mov ecx, esi
call fcn.004b4ef0
call fcn.004f8c70
cmp eax, ebp
je 0x4b3ecb
mov ecx, eax
call fcn.004fa6a0
lea ecx, [esi + 0x24a0]
call fcn.0049c7e0
mov ecx, 0x56e210
call fcn.0040c200
test eax, eax
je 0x4b4010
call fcn.004c24f0
test eax, eax
jne 0x4b4010
mov dx, word [0x56e1d0]
mov ecx, 0x81
lea edi, [esp + 0x426]
mov word [esp + 0x424], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [esp + 0x220]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x53aa48
push eax
push 0x53aa2c
push 8
push str._tp:
push 0x568fe8
lea ecx, [esp + 0x440]
push 0x103
push ecx
call ebx
add esp, 0x24
lea edx, [esp + 0x424]
push 5
push ebp
push edx
push 0x56e274
push str.runas
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x4b3f7c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x61c
ret 4
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004b4f60
push eax
push 0x53a4a4
lea eax, [esp + 0x18]
push 0x104
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x568fd4
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebp
je 0x4b3ff0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x10]
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x10], bp
lea eax, [esp + 0x10]
push eax
push 0x53b650
push 0x104
push ecx
call ebx
lea edx, [esp + 0x20]
push 1
push edx
call fcn.00440120
add esp, 0x18
mov ecx, esi
call fcn.004b4f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x61c
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x21c]
push eax
call ebx
test eax, eax
je 0x4b40ac
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004b4f60
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push eax
push 0x53a4a4
lea ecx, [esp + 0x18]
push 0x104
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push 0x568fd4
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebp
je 0x4b40a2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
sub eax, ecx
push edx
sar eax, 1
push 0x53b650
push 0x104
mov word [esp + eax*2 + 0x1c], bp
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.00440120
add esp, 0x18
mov ecx, esi
call fcn.004b4f60
push eax
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x61c
ret 4
Function at 0x4b5150
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b5231
lea edi, [esi + 0x22c]
mov ecx, edi
call fcn.00493200
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4b51a2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b5193
push 1
push ebx
mov ecx, edi
call fcn.00493750
jmp 0x4b51a2
mov ecx, dword [0x58e228]
push ebx
push ecx
mov ecx, edi
call fcn.004935b0
mov ecx, edi
call fcn.004941c0
test eax, eax
je 0x4b5231
mov edx, dword [esi + 4]
push 2
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, edi
mov dword [esi + 0x460], 0
call fcn.00494280
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, edi
cdq
sub eax, edx
sub ecx, ebx
mov edx, eax
mov eax, dword [esp + 0x18]
sar edx, 1
sub eax, edx
sub ecx, 4
add eax, 0xa
jns 0x4b51f6
xor eax, eax
test ecx, ecx
jge 0x4b5201
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov edx, dword [esi + 4]
push 0x50
push edi
push ebx
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push 0
push 0x27
push 0x27
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
ret 0x14

Function at 0x4b5240
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push 0
push 0x2008
push 0
push 0
push eax
push 0x80880000
push 0x56e1d0
push str.XWnd
mov esi, ecx
push 0x80080
call fcn.0050b5a0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
pop esi
add esp, 0x10
ret

Function at 0x4b62d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x5875d4]
test eax, eax
je 0x4b62f2
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b62f2
mov ecx, dword [0x5875d4]
jmp fcn.004b5ed0
ret
Function at 0x4ba2a0
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x5875ec]
sub esp, 0x60
test al, 1
jne 0x4ba2c3
or al, 1
push 0
mov byte [0x5875ec], al
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [0x5875e8], eax
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4ba3ef
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4ba2e2
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ba2f4
pop esi
add esp, 0x60
ret 8
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4ba3ef
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x24]
pop edi
test eax, eax
jne 0x4ba323
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x40]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea edx, [esp + 4]
lea eax, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x4ba3d6
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4ba3d6
mov eax, dword [esp + 0xc]
cmp ax, 0x76c
jae 0x4ba36b
xor eax, eax
jmp 0x4ba3d6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xe]
mov dword [esp + 0x28], edx
and ecx, 0xffff
and eax, 0xffff
lea edx, [esp + 0x1c]
dec ecx
sub eax, 0x76c
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCRT.dll_mktime]
add esp, 4
mov ecx, dword [0x5875e8]
sub ecx, eax
cmp ecx, 0x93a80
jle 0x4ba3ef
xor eax, eax
pop esi
add esp, 0x60
ret 8
mov eax, 1
pop esi
add esp, 0x60
ret 8

Function at 0x4ba580
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ba5b1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ba5aa
test al, 1
jne 0x4ba5aa
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4bccf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4bce5d
mov eax, dword [esi + 0x9a0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test eax, eax
jne 0x4bcd19
call ebp
mov dword [esi + 0x9a0], eax
jmp 0x4bcd27
call ebp
cmp eax, dword [esi + 0x9a0]
jne 0x4bce5d
mov eax, dword [esi + 0x288]
cmp eax, 0x28
jge 0x4bce5d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [esp + 0x14]
shl eax, 4
mov dword [eax + esi + 8], edi
call ebx
mov ecx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 0x288]
shl ecx, 4
mov dword [ecx + esi + 0xc], eax
call ebx
mov edx, dword [esi + 0x288]
inc edx
shl edx, 4
mov dword [edx + esi], eax
call ebp
mov ecx, dword [esi + 0x288]
shl ecx, 4
cmp edi, 0xfa0
mov dword [ecx + esi + 0x14], eax
jne 0x4bcdb6
cmp dword [esi + 0x970], 0xffffffff
jne 0x4bce4e
mov edx, dword [esi + 0x288]
pop edi
shl edx, 4
pop ebx
mov eax, dword [edx + esi + 0xc]
mov dword [esi + 0x970], eax
mov eax, dword [esi + 0x288]
inc eax
mov dword [esi + 0x288], eax
pop esi
pop ebp
ret 4
cmp edi, 0x1194
jne 0x4bcdf2
cmp dword [esi + 0x974], 0xffffffff
jne 0x4bce4e
mov ecx, dword [esi + 0x288]
mov eax, dword [esi + 0x288]
shl ecx, 4
inc eax
pop edi
mov edx, dword [ecx + esi + 0xc]
mov dword [esi + 0x288], eax
mov dword [esi + 0x974], edx
pop ebx
pop esi
pop ebp
ret 4
cmp edi, 0x1388
jne 0x4bce2a
cmp dword [esi + 0x978], 0xffffffff
jne 0x4bce4e
mov eax, dword [esi + 0x288]
pop edi
shl eax, 4
pop ebx
mov ecx, dword [eax + esi + 0xc]
mov eax, dword [esi + 0x288]
inc eax
mov dword [esi + 0x978], ecx
mov dword [esi + 0x288], eax
pop esi
pop ebp
ret 4
cmp edi, 0x157c
jne 0x4bce4e
cmp dword [esi + 0x97c], 0xffffffff
jne 0x4bce4e
mov edx, dword [esi + 0x288]
shl edx, 4
mov eax, dword [edx + esi + 0xc]
mov dword [esi + 0x97c], eax
mov eax, dword [esi + 0x288]
pop edi
inc eax
pop ebx
mov dword [esi + 0x288], eax
pop esi
pop ebp
ret 4