joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ecc0
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2b8
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push esi
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x48ed39
mov edx, dword [esp + 4]
test edx, edx
je 0x48ed39
push edi
mov ecx, 0xac
lea edi, [esp + 0x10]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
push 0x4009
lea ecx, [esp + 0x10]
push 0x2b4
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, eax
pop edi
test esi, esi
je 0x48ed2e
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_Duplicate]
mov esi, eax
test esi, esi
je 0x48ed2e
push 0xffffffffffffffff
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
add esp, 0x2b8
ret

Function at 0x490460
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
push edi
push 0xa000
mov dword [esp + 0x10], 0xa000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x49054c
mov ecx, 0x2800
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x508968
mov dword [esi], eax
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov ebx, eax
test ebx, ebx
jne 0x4904b9
push esi
call fcn.004d2909
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x14]
push ebp
push edx
call fcn.00490400
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
call fcn.00490450
add esp, 0xc
test eax, eax
je 0x490511
mov eax, dword [esi + 4]
push eax
call ebp
test eax, eax
jne 0x490511
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x490511
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryFileA]
mov edx, dword [esi + 4]
push edx
call ebp
mov ecx, 0x2800
xor eax, eax
mov edi, esi
mov dword [esp + 0x10], 0xa000
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
mov dword [esi], eax
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x4904d1
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push esi
call fcn.004d2909
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x490930
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x14000
mov dword [esp + 0x10], 0xa000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x490a16
mov ecx, 0x5000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
mov dword [esi], eax
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ebx, eax
test ebx, ebx
jne 0x490986
push esi
call fcn.004d2909
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00490400
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
add esp, 4
mov dword [esp + 0x1c], eax
test dword [esi + 0xc], 0x100000
jne 0x4909db
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
call fcn.00490450
add esp, 0xc
test eax, eax
je 0x4909db
mov eax, dword [esi + 4]
push eax
call ebp
test eax, eax
jne 0x4909db
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryFileW]
mov edx, dword [esi + 4]
push edx
call ebp
mov ecx, 0x5000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xa000
push eax
push esi
push ebx
mov dword [esi], 0xa000
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x49099e
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push esi
call fcn.004d2909
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x490ea0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push 0
push ebx
call fcn.00490dc0
mov eax, dword [0x5e2768]
add esp, 8
test eax, eax
mov dword [esp + 0x10], 0
je 0x490eff
lea eax, [esp + 0x10]
push eax
push 0x508b18
push 1
push 0
push 0x4e06f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x490eff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x490eff
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x10]
push 1
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f0
push ebx
call edi
push 1
push ebx
mov esi, eax
call edi
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 5
push esi
mov dword [esp + 0x1c], edi
call ebp
push 0
push edi
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x70000
push 0
push 0x401
push esi
call edi
push 0
push 1
push 0x402
push esi
call edi
mov bl, byte [esp + 0x20]
test bl, 1
je 0x490f6b
mov eax, dword [esp + 0x24]
push eax
push 0
call fcn.00490930
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
push 0x402
push esi
call edi
test bl, 2
je 0x490f95
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0
call fcn.00490560
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 3
push 0x402
push esi
call edi
test bl, 4
je 0x490fbd
mov edx, dword [esp + 0x24]
push edx
push 0
call fcn.004906d0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 4
push 0x402
push esi
call edi
test bl, 8
je 0x490fdb
call fcn.00490cc0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 5
push 0x402
push esi
call edi
test bl, 0x10
je 0x490ff9
call fcn.00490a20
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 6
push 0x402
push esi
call edi
test bl, 0x20
je 0x491017
call fcn.00490cf0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 7
push 0x402
push esi
call edi
test bl, 0x40
je 0x491035
call fcn.00490d20
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call ebp
mov eax, dword [esp + 0x14]
push 5
push eax
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49106f
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x491073
mov esi, dword [esp + 0x1c]
push 1
push esi
call fcn.00490dc0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x491af0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0x41e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov esi, eax
push 0
push 0x1042
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x491b88
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 4
push ecx
push eax
push 0x104b
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x491b88
mov edx, dword [esp + 0x30]
push edx
call fcn.0048e650
mov edi, eax
add esp, 4
test edi, edi
je 0x491b70
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 0x1008
push esi
call ebp
mov eax, dword [esp + 0x3c]
push eax
call fcn.00491bd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x492040
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x60a544]
sub esp, 0x244
test eax, eax
je 0x49208d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49208d
mov eax, dword [0x60a544]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x492079
mov ecx, dword [0x60a544]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x60a544]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x244
ret
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], 0
push 0x208
rep stosd dword es:[edi], eax
mov ecx, dword [0x5e69bc]
stosw word es:[edi], ax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x40
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], str._tp:4
mov dword [esp + 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x492123
mov ecx, dword [esp + 0x38]
push 0xbb8
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x244
ret

Function at 0x493160
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x2220]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x495aa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x495be2
lea edi, [esi + 0x26764]
push ebx
push 0xa
mov ecx, edi
call fcn.004cf2d0
test eax, eax
je 0x495b2b
lea ecx, [esp + 0xc]
push ebp
push ecx
push 0xa
mov ecx, edi
call fcn.004cd900
lea ebx, [esi + 0x278a0]
mov ecx, ebx
call fcn.004069a0
mov ebp, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x1c]
push 0x40
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ebp
add ecx, eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x278a4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.00403c40
pop ebp
jmp 0x495b3a
mov ecx, dword [esi + 0x278a4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x13
mov ecx, edi
call fcn.004cf2d0
test eax, eax
je 0x495ba3
lea edx, [esp + 0xc]
mov ecx, edi
push edx
push 0x13
call fcn.004cd900
lea edi, [esi + 0x25624]
mov ecx, edi
call fcn.004811e0
mov ebx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x18]
push 0x40
sub eax, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
add ecx, eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x25628]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.00481200
jmp 0x495bb2
mov ecx, dword [esi + 0x25628]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x2ccdc]
call fcn.00437640
lea ecx, [esi + 0x9944]
call fcn.004c9870
mov edi, eax
pop ebx
test edi, edi
je 0x495be2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x495be2
push edi
mov ecx, esi
call fcn.0049b050
pop edi
pop esi
add esp, 0x10
ret

Function at 0x499000
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1048
call fcn.004d2930
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1050]
xor eax, eax
shr ecx, 0x10
cmp ecx, 0x13
jne 0x4990bc
push edi
mov ecx, 0x411
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x25624]
stosw word es:[edi], ax
call fcn.004811c0
test eax, eax
pop edi
je 0x49906a
cmp word [eax], 0
je 0x49906a
push 1
push 1
lea edx, [esp + 0xc]
push 0x824
push edx
push eax
push 0xffffffffffffffff
call fcn.00481470
mov ecx, eax
call fcn.00481950
jmp 0x499084
push 1
lea eax, [esp + 8]
push 0x824
push eax
push 0xffffffffffffffff
call fcn.00481470
mov ecx, eax
call fcn.00481a70
cmp word [esp + 4], 0
je 0x4990b7
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x5e309c]
lea edx, [esp + 4]
push ecx
push 0
push 0
push 1
push 1
push 8
push 0
push edx
lea ecx, [esi + 0x9880]
call fcn.00470630
mov eax, 1
pop esi
add esp, 0x1048
ret 4
Function at 0x499330
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x28]
push 0x2008
push 1
push 0x9d99
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x4994b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push esi
push edi
mov ebp, ecx
push 0x10
call ebx
mov si, ax
push 0x12
shr esi, 8
and esi, 0xff
call ebx
mov di, ax
push 0x11
shr edi, 8
and edi, 0xff
call ebx
shr eax, 8
and eax, 0xff
test esi, esi
jne 0x499548
test edi, edi
jne 0x499548
test eax, eax
jne 0x499548
mov eax, dword [esp + 0x14]
add eax, 0xffffff90
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [eax + ecx*8]
lea esi, [eax*8 + 0x5ec8b0]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x499548
push edi
call dword [sym.imp.USER32.dll_InSendMessageEx]
and eax, 9
cmp al, 1
jne 0x499530
push 1
call dword [sym.imp.USER32.dll_ReplyMessage]
push esi
lea ecx, [ebp + 0x9880]
call fcn.0046ff80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x49e280
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x49e3ad
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x49e3ad
push 0
push str.cachesnap
mov ecx, 0x50b190
call fcn.0040ad10
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x49e3ad
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49e2d1
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call fcn.0049e440
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49e315
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004d2930
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 4]
mov eax, edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
push esi
push str._s_s.png
lea ebx, [ecx - 1]
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49e397
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49e397
xor esi, esi
mov eax, dword [0x5e383c]
test eax, eax
je 0x49e390
mov edx, dword [0x5e3840]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x49e390
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x49e371
inc esi
jmp 0x49e341
push str.default1.png
push 0x4ef254
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.null
jmp 0x49e376
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49e3ad
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e5d0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x684
mov ax, word [0x50b180]
push ebp
mov ebp, ecx
push edi
mov word [esp + 0x484], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x486]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
lea ecx, [esp + 0x484]
push eax
push str._s.
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x2c]
lea eax, [esp + 0x484]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27e]
mov word [esp + 0x27c], 0
cmp edx, 0xffffffff
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xffffffff
stosw word es:[edi], ax
je 0x49e81a
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_time]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x60]
push 0x4ef3e4
push ecx
call esi
add esp, 8
test eax, eax
je 0x49e7f5
lea edx, [esp + 0x60]
push 0x4f1754
push edx
call esi
add esp, 8
test eax, eax
je 0x49e7f5
test byte [esp + 0x34], 0x12
jne 0x49e7f5
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x49e7f5
push str..png
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x49e7f5
mov ecx, 0x82
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
lea eax, [ebp + 8]
push ecx
push eax
push 0x4f05f4
lea edx, [esp + 0x290]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, ebp
call fcn.0049e830
test eax, eax
jne 0x49e7e3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x49e73d
xor edx, edx
jmp 0x49e7af
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x49e755
xor edx, edx
jmp 0x49e7af
mov eax, dword [esp + 0x1c]
cmp ax, 0x76c
jae 0x49e763
xor edx, edx
jmp 0x49e7af
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x26]
and ecx, 0xffff
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x2c]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x2e]
push ecx
mov ecx, dword [esp + 0x2e]
and edx, 0xffff
and ecx, 0xffff
push edx
and eax, 0xffff
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0049ecf0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 4]
lea esi, [eax + eax*4]
shl esi, 4
add esi, ecx
mov dword [esi + 0x22c], edx
call ebx
mov edx, dword [esi + 0x22c]
add esp, 4
sub eax, edx
cmp eax, 0x7e900
jle 0x49e7f5
lea edx, [esp + 0x284]
push 0
push edx
call fcn.004340a0
add esp, 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49e674
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x684
ret
Function at 0x49ebc0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push 0x4fcac8
lea eax, [ebx + 8]
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x49ec63
push esi
push edi
push ebp
lea esi, [ebx + 4]
push 1
push 4
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x49ec4f
mov eax, dword [esi]
test eax, eax
je 0x49ec4f
mov ecx, eax
shl ecx, 5
add ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x49ec4f
mov eax, dword [esi]
push ebp
mov ecx, eax
shl ecx, 5
add ecx, eax
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push 0x21
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi]
add esp, 0x10
cmp eax, ecx
je 0x49ec4f
mov ecx, ebx
call fcn.0049e9e0
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x49ec70
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 8]
xor esi, esi
push 0x4fcad0
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x49ecdd
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
lea esi, [ebx + 4]
push 1
push 4
push esi
call ebp
add esp, 0x10
cmp eax, 1
jne 0x49ecc7
mov ecx, dword [esi]
mov edx, dword [ebx]
push edi
push ecx
push 0x21
push edx
call ebp
mov ecx, dword [esi]
add esp, 0x10
cmp eax, ecx
mov esi, 1
je 0x49eccb
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a0870
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x4a21e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d8581
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004c6560
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.004d0de0
lea ecx, [esi + 0x94]
mov byte [esp + 0x1c], 1
call fcn.00477010
lea ecx, [esi + 0x2bc]
mov byte [esp + 0x1c], 2
call fcn.004ca8f0
mov al, byte [esp + 0xf]
lea edx, [esi + 0x2b4]
mov byte [esi + 0xb60], al
mov dword [esi + 0xb64], edi
mov dword [esi + 0xb68], edi
mov dword [esi + 0xb6c], edi
xor ecx, ecx
mov dword [esi], 0x4e0468
mov dword [ebx], 0x4e045c
mov dword [edx], ecx
mov eax, esi
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xb50], edi
mov dword [esi + 0xb54], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0xb58], edi
mov dword [esi + 0xb5c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0xb78], edi
mov dword [esi + 0xb7c], edi
mov dword [esi + 0x28], 0x64
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a3e70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4a3e8e
mov eax, dword [ecx + 8]
push 5
push eax
mov dword [ecx + 0x2c], 0
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov dword [ecx + 0x2c], 1
mov ecx, dword [ecx + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4