joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42675e
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401c58
push 0x466fde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x3c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], esi
lea ecx, [esi + esi]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 7
push 0x40bfbc
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4267d0
xor eax, eax
jmp 0x42682e
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
push 0x10000000
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x42681c
push edi
push 0x40b0c0
dec esi
push esi
jmp 0x426812
push ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42690b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x2094
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x426973
push edi
mov ecx, 0x825
push dword [ebp + 8]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
mov dword [esi], eax
lea eax, [esi + 0x104c]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [esi + 4]
push eax
call edi
lea eax, [ebp + 0x10]
and dword [ebp + 0x10], 0
push eax
push 0
push esi
push dword [ebp + 0x14]
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x28
test eax, eax
pop edi
je 0x426973
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x426976
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push dword [ebp + 0xc]
call ebx
test eax, eax
pop ecx
jne 0x426a3c
mov dx, word [0x469bb8]
push edi
mov ecx, 0x81
lea edi, [ebp - 0x44a]
mov word [ebp - 0x44c], dx
mov word [ebp - 0x244], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x242]
push 0xf
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44c]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x38], eax
mov eax, 0x104
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
call ebx
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
pop edi
je 0x426a3c
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x40bfcc
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push 1
pop eax
jmp 0x426a3e
xor eax, eax
pop ebx
leave
ret
Function at 0x426b27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
xor ebx, ebx
push 0x403890
push 1
push ebx
push 0x4038a0
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov esi, 0x81
jl 0x426c0b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push edx
mov ecx, dword [eax]
push 0x4038d0
push eax
call dword [ecx]
test eax, eax
jl 0x426c02
mov eax, dword [ebp - 8]
push ebx
push 0x40c00c
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jl 0x426c02
mov ax, word [0x469bb8]
mov ecx, esi
mov word [ebp - 0x224], ax
xor eax, eax
lea edi, [ebp - 0x222]
lea edx, [ebp - 0x14]
rep stosd dword es:[edi], eax
push edx
lea edx, [ebp - 0x10]
stosw word es:[edi], ax
mov eax, dword [ebp - 0xc]
push edx
lea edx, [ebp - 0x224]
push 0x104
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push 2
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x426c02
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
push 0x10
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x224]
push dword [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x426c02
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], ebx
jne 0x426c89
mov dx, word [0x469bb8]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x222]
mov word [ebp - 0x224], dx
mov word [ebp - 0x42c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x42a]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x224]
push eax
push 0x40bff4
lea eax, [ebp - 0x42c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
push 1
push eax
push ebx
lea eax, [ebp - 0x42c]
push ebx
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426ddf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
push dword [ebp + 0xc]
call esi
pop ecx
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
mov ebx, SysReAllocString
push dword [ebp + 0xc]
push 1
push 0x469bb8
push dword [ebp + 8]
push ebx
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x208]
push 0x40c068
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
push dword [ebp + 0x10]
call esi
add esp, 0x14
shl eax, 1
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 1
push 0x469bb8
push eax
push ebx
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push 0x40c04c
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push dword [ebp + 0x10]
call esi
add esp, 0x18
shl eax, 1
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 1
push 0x469bb8
push eax
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426e97
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x220]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
mov ebp, 0x469bb8
push dword [esp + 0x224]
mov ebx, SysReAllocString
push 1
push ebp
push 0x40c1fc
push ebx
call esi
and word [esp + 0x14], 0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push 0x104
push eax
push dword [esp + 0x228]
call fcn.00426dc4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x234]
push 0x40c1e4
call fcn.00426ddf
add esp, 0x18
mov edi, 0x40c1d0
push 0x10
push edi
push 1
push ebp
push 0x40c1c4
push ebx
call esi
push 0x10
push edi
push 1
push ebp
push 0x40c1b8
push ebx
call esi
push 0x10
push edi
push 1
push ebp
push 0x40c1ac
push ebx
call esi
push 0x10
push edi
push 1
push ebp
push 0x40c19c
push ebx
call esi
push 8
push 0x40bae4
push 1
push ebp
push 0x40c17c
push ebx
call esi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x14]
push eax
push edi
push 0x40c17c
call fcn.00426ddf
add esp, 0xc
push 0x20
push 0x40bddc
push 1
push ebp
push 0x40be00
push ebx
call esi
lea eax, [esp + 0x14]
push eax
push edi
push 0x40c14c
call fcn.00426ddf
add esp, 0xc
push 0x12
push 0x40c138
push 1
push ebp
push 0x40c12c
push ebx
call esi
push 0x12
push 0x40c138
push 1
push ebp
push 0x40c11c
push ebx
call esi
lea eax, [esp + 0x14]
push eax
push edi
push 0x40c0fc
call fcn.00426ddf
lea eax, [esp + 0x20]
push eax
push edi
push 0x40c0e4
call fcn.00426ddf
lea eax, [esp + 0x2c]
push eax
push edi
push 0x40c0cc
call fcn.00426ddf
lea eax, [esp + 0x38]
push eax
push edi
push 0x40c1e4
call fcn.00426ddf
add esp, 0x30
lea eax, [esp + 0x10]
push eax
push 0xa
push 2
push 0x40c084
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x427035
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 8]
push eax
push 0x469bb8
mov esi, 0x104
push 0x40c274
push SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4270be
lea eax, [ebp - 0x210]
push esi
push eax
push dword [0x49a558]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00426dc4
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x14
test eax, eax
jne 0x4270be
push 1
pop eax
jmp 0x4270c0
xor eax, eax
pop esi
leave
ret

Function at 0x4270c3
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 8]
push eax
push 0x26
push esi
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x40c2ac
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
pop esi
ret

Function at 0x4270e8
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
call fcn.0046746a
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
je 0x4271f7
push dword [0x49a558]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
mov dword [ebp - 4], 0x40bcec
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
test eax, eax
pop ecx
je 0x427223
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [eax + 2]
push edi
mov dword [ebp + 8], edi
call esi
test eax, eax
pop ecx
jbe 0x427223
push ebx
push edi
call esi
pop ecx
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
shl eax, 2
push eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
push 0x469bb8
push 0x40c410
push ebx
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x40c3c0
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x40c39c
call esi
add esp, 0x14
shl eax, 1
push eax
push 0x40c39c
push 1
lea eax, [ebp - 0x414]
push 0x40c37c
push eax
push ebx
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x40c308
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x20c]
push eax
call esi
add esp, 0x14
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x414]
push 0x469bb8
push eax
push ebx
call edi
pop ebx
jmp 0x427223
call fcn.004270c3
pop ecx
mov dword [ebp - 4], 0x40bae4
pop ecx
push 0x18
push 0x40c2ec
push 1
push 0x469bb8
push 0x40c410
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
call fcn.00426e97
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x427522
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.00466f70
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 8]
push edi
push eax
push 0x40c4b8
push SysReAllocString
mov dword [ebp - 4], 0x104
call esi
test eax, eax
je 0x42756a
lea eax, [ebp - 8]
push eax
push 0x40c470
push SysReAllocString
call esi
test eax, eax
jne 0x4275f9
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x469bb8
push dword [ebp - 8]
mov dword [ebp - 4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
lea esi, [ebp - 0x210]
jbe 0x4275f9
cmp word [ebp - 0x210], 0x22
jne 0x4275b2
lea esi, [ebp - 0x20e]
push 0x22
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
cmp eax, edi
pop ecx
je 0x4275c4
mov word [eax], di
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1258]
push eax
call fcn.0044a203
test eax, eax
je 0x4275f9
push 5
lea eax, [ebp - 0x1258]
push edi
push eax
push esi
push 0x40bae4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x427603
mov ecx, dword [ebp + 8]
push 2
call fcn.0044a407
pop edi
pop esi
leave
ret

Function at 0x427607
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x10], 0x50
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x42765b
push dword [ebp - 0xa]
call dword [sym.imp.SHELL32.dll_SHFreeNameMappings]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x42773d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x10]
push 0x40c578
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x20c]
push 0x103
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4277b3
push 1
pop eax
jmp 0x4277b9
and word [edi], 0
xor eax, eax
pop edi
leave
ret
Function at 0x4277bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and word [ebp - 0x210], 0
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
and word [ebp - 0x418], 0
mov ecx, edx
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x416]
push dword [ebp + 8]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x103
push 0x40c5a8
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x42785e
push dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push dword [ebp + 0xc]
push eax
call fcn.0042773d
add esp, 0xc
leave
ret
mov eax, dword [ebp + 0xc]
and word [eax], 0
xor eax, eax
leave
ret

Function at 0x4278e7
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x208]
push 0x26
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push eax
push 0x40c5cc
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x410]
push 0xa
push esi
push dword [ebp + 8]
push eax
push 0x40bae4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4287ea
Capabilities:
Create thread
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0x21c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x42887d
mov ecx, 0x87
xor eax, eax
mov edi, esi
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x8d8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x428876
xor edi, edi
lea eax, [ebx + 0x42c]
lea ecx, [ebx + 0x8d4]
mov dword [ebp - 4], edi
mov dword [esi + 0x210], eax
call fcn.00455c61
push esi
mov ecx, ebx
mov dword [esi + 0x218], eax
call fcn.00428882
mov dword [esi + 0x20c], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x42897a
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x208], eax
jne 0x42887d
push esi
call fcn.00466f25
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b1da
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x467f28
call fcn.00466f40
sub esp, 0x218
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
push 1
mov word [ebp - 0x224], bx
rep stosd dword es:[edi], eax
pop esi
push ebx
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
stosw word es:[edi], ax
call fcn.0044dd66
pop ecx
pop ecx
push dword [ebp + 0xc]
test eax, eax
jne 0x42b23b
lea eax, [ebp - 0x224]
push 0x103
push eax
push dword [0x49a558]
call fcn.0044ddca
jmp 0x42b252
push 0x40b0c0
lea eax, [ebp - 0x224]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.0044dd66
pop ecx
test eax, eax
pop ecx
je 0x42b338
push ebx
push 0x8000080
push 3
push ebx
push esi
lea eax, [ebp - 0x224]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x42b2ae
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x42b37c
lea edi, [eax + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp esi, ebx
rep stosb byte es:[edi], al
je 0x42b318
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov ah, byte [esi + 1]
mov al, byte [esi]
cmp ax, 0xfeff
jne 0x42b30f
add esi, 2
cmp esi, ebx
jne 0x42b2fc
xor eax, eax
jmp 0x42b303
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
push esi
push eax
call fcn.004167eb
jmp 0x42b318
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0042b629
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42b334
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
mov esi, dword [ebp + 0x10]
je 0x42b36f
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x42b36f
cmp dword [ebp + 0x14], ebx
je 0x42b36f
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push 0x40c964
push eax
push dword [ebp + 8]
call fcn.004526e0
add esp, 0x10
mov ecx, esi
push eax
call fcn.0042b629
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x42b379
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42d06f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x1efd4], edi
je 0x42d2a3
cmp dword [ebp + 8], edi
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
je 0x42d0a0
push dword [ebp + 8]
call ebx
test eax, eax
pop ecx
jne 0x42d0aa
cmp dword [ebp + 0x10], 0xffffffff
je 0x42d2a3
mov dword [esi + 0x1f450], edi
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x304]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.0042d2aa
mov dword [esi + 0x1efe4], esi
cmp dword [0x48d9e0], 0
je 0x42d0e5
push 0x40bd58
lea ecx, [esi + 0x1efe0]
call fcn.00453412
lea edi, [esi + 0x1efe0]
push 0
push 0
mov ecx, edi
call fcn.004529f0
test eax, eax
mov dword [ebp - 4], eax
je 0x42d149
push 0x4009
lea ecx, [ebp - 0x304]
push 0x2b4
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push dword [ebp - 4]
mov ecx, edi
mov dword [esi + 0x1f21c], eax
call fcn.00452c09
push dword [esi + 0x1f21c]
push edi
call fcn.004226b2
push dword [esi + 0x1f21c]
mov dword [esi + 0x1f220], eax
push eax
push edi
call fcn.004226d0
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x42d1a7
push dword [ebp + 8]
call ebx
test eax, eax
pop ecx
je 0x42d1a7
push dword [ebp + 8]
lea edi, [esi + 0x1f008]
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
call ebx
pop ecx
mov ecx, 0x103
cmp eax, ecx
jbe 0x42d17b
mov eax, ecx
jmp 0x42d181
push dword [ebp + 8]
call ebx
pop ecx
push eax
lea edi, [esi + 0x1f008]
push dword [ebp + 8]
push edi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esi + 0x1efe0]
push 0xffffffffffffffff
push edi
call fcn.004529f0
mov ebx, eax
jmp 0x42d1d1
push dword [ebp + 0x10]
mov ecx, edi
push 0
call fcn.004529f0
mov ebx, eax
test ebx, ebx
je 0x42d2a3
lea eax, [esi + 0x1f008]
push 0x104
push eax
push ebx
mov ecx, edi
call fcn.00452d97
test ebx, ebx
je 0x42d2a3
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
mov dword [ebp - 0x1c], 0x18
push dword [esi + 0x1efd4]
mov dword [ebp - 0x18], 0x28000000
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_SetMenuInfo]
push dword [esi + 0x1efd4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
and dword [ebp + 8], 0
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x42d283
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x30
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 0x4c], 0x100
push dword [esi + 0x1efd4]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test byte [ebp - 0x47], 8
jne 0x42d278
push ebx
lea ecx, [esi + 0x1efe0]
call fcn.00452f8a
push eax
push 1
push dword [ebp + 8]
lea ecx, [esi + 0x1efbc]
push dword [esi + 0x1efd4]
call fcn.00459ba4
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x10]
jl 0x42d222
cmp dword [ebp + 0xc], 0
je 0x42d290
mov ecx, esi
call fcn.004321c8
push 0x42e7a9
push esi
push 0
lea ecx, [esi + 0x1f210]
call fcn.0044db93
pop edi
pop esi
pop ebx
leave
ret 0xc