joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f8b80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x7c0a88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x20], 0
jne 0x5f8bc3
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
cmp dword [esi + 0x18], 1
jbe 0x5f8c01
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x5f8b50
push 0
push 0
call fcn.007263d8
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x10], eax
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ebp, [esi + 0x60]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x44]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
push 0xffffffffffffffff
push edi
mov dword [esp + 0x2c], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
je 0x5f8c45
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 4]
push ecx
push 0
push 0
push eax
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
je 0x5f8c63
mov dword [esp + 0x18], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x4c]
call fcn.005bf940
mov ecx, esi
call fcn.005f8110
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret

Function at 0x6001d0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x6001e1
mov eax, 1
pop esi
ret 4
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.00612480
add esp, 8
test eax, eax
je 0x60020d
cmp dword [esi + 4], 0
jne 0x60028b
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
jne 0x600214
pop edi
xor eax, eax
pop esi
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push str.HttpUninit
push eax
call edi
mov ecx, dword [esi + 4]
push str.zlib_uncompress
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 4]
push str.zlib_compress
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.zlib_compressBound
push eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x600269
call eax
mov dword [esi + 0x10], eax
cmp dword [esi + 0xc], 0
je 0x600287
cmp dword [esi + 8], 0
je 0x600287
cmp dword [esi + 0x10], 0
je 0x600287
mov eax, 1
pop edi
mov dword [esi], eax
pop esi
ret 4
xor eax, eax
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
ret 4
Function at 0x603c90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [esp + 0x420]
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.007202b0
push 0x208
lea ecx, [esp + 0x220]
push 0
push ecx
call fcn.007202b0
add esp, 0x18
lea edx, [esp + 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x603d19
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x603d19
xor edx, edx
mov word [esp + 8], dx
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004068d0
mov ecx, dword [esp + 0x418]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0071fe0b
add esp, 0x418
ret
Function at 0x607090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7c1490
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0060d540
mov edi, eax
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], 0
call fcn.0060d540
add esp, 0x10
mov eax, dword [eax]
mov edi, dword [edi]
push eax
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.006065f0
push edi
push eax
mov ecx, esi
call fcn.006061e0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60711f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x607147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x60c5c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x7c1c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x430], eax
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov esi, dword [esp + 0x450]
xor edi, edi
xor eax, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], ax
push 0x206
lea edx, [esp + 0x23a]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x454], edi
mov word [esp + 0x240], cx
call fcn.007202b0
add esp, 0xc
lea eax, [esp + 0x234]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x60c6be
cmp eax, 0x104
ja 0x60c6be
push 0x206
lea edx, [esp + 0x32]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x38], cx
call fcn.007202b0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push edi
push 0x80a238
lea ecx, [esp + 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x60c6be
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x60c6a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.00404850
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x18]
xor eax, eax
push ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov ecx, esi
mov word [esi + 4], ax
call fcn.00404750
cmp dword [esp + 0x28], 8
jb 0x60c6f1
mov edx, dword [esp + 0x14]
push edx
call fcn.00704960
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x440
ret
Function at 0x60f800
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x14]
mov ebx, eax
mov al, byte [esi]
test al, al
jne 0x60f837
push ebp
mov ebp, dword [esp + 0x14]
lea esp, [esp]
call edi
sub eax, ebx
cmp eax, ebp
jae 0x60f836
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [esi]
test cl, cl
je 0x60f820
pop ebp
mov dl, byte [esi]
pop edi
pop esi
movzx eax, dl
pop ebx
ret

Function at 0x60f8a0
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
test esi, esi
jne 0x60f8b1
mov esi, 0x830150
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x60f8f8
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x60f8f8
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x60f8f8
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x60f8d0
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push edi
push ebx
push ebp
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x60f900
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
test edx, edx
je 0x60f952
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x60f952
mov eax, dword [esp + 0x14]
test eax, eax
je 0x60f952
push esi
mov esi, 4
mov dword [esp + 8], esi
mov dword [esp + 4], esi
lea esi, [esp + 4]
push esi
lea esi, [esp + 0x14]
push esi
lea esi, [esp + 0x10]
push esi
push eax
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
mov eax, dword [esp + 0x10]
pop esi
je 0x60f956
mov eax, dword [esp + 0x18]
add esp, 8
ret

Function at 0x60f960
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x60f992
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x60f992
mov eax, dword [esp + 0xc]
test eax, eax
je 0x60f992
push esi
push 4
lea esi, [esp + 0x18]
push esi
push 4
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop esi
ret
xor eax, eax
ret
Function at 0x610ed0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push 0x1000
lea eax, [esp + 8]
push 0
push eax
call fcn.007202b0
add esp, 0xc
push 0x80a6e8
push 0x800
lea ecx, [esp + 0xc]
push ecx
call fcn.00589b20
push 0x82fa80
push 0x800
lea edx, [esp + 0xc]
push edx
call fcn.00589b20
push 0x80a6bc
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.00589b20
push 0x82fa80
push 0x800
lea ecx, [esp + 0xc]
push ecx
call fcn.00589b20
push str.vL
push 0x800
lea edx, [esp + 0xc]
push edx
call fcn.00589b20
mov eax, dword [esp + 0x100c]
push eax
push 0x800
lea ecx, [esp + 0xc]
push ecx
call fcn.00589b20
push 0x80a678
push 0x800
lea edx, [esp + 0xc]
push edx
call fcn.00589b20
push 0x14
push 0x82fa80
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x610fc4
push 5
push 0
push 0
push str.http:__dl.ludashi.com_ludashi_ludashisetup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1010], 0
je 0x610fd5
push 0
call fcn.0072effd
mov ecx, dword [esp + 0x1004]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0071fe0b
add esp, 0x1004
ret

Function at 0x6110f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x611162
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x611162
push esi
push edi
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push esi
push eax
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x611157
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x24
ret
xor eax, eax
xor edx, edx
pop ebx
add esp, 0x24
ret
Function at 0x6111b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x6111f8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x20c
ret
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x6111dc
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x611220
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x6111dc
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.007202b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 8]
push eax
push 0
push 0
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 8]
push edx
call edi
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x611295
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x6111dc
push 4
push eax
lea eax, [esp + 0x10]
push eax
jmp 0x61129c
mov esi, dword [esi]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.0071fe0b
add esp, 0x20c
ret

Function at 0x611fd0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x611fdf
mov eax, dword [eax + 4]
jmp 0x611fe2
add eax, 4
push ebx
push 0x80a7f0
push eax
call fcn.0072b299
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x612002
call fcn.007261ee
mov eax, dword [eax]
neg eax
pop ebx
ret
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x612016
mov eax, dword [edi + 4]
jmp 0x612019
lea eax, [edi + 4]
push ebx
push ecx
push 1
push eax
call fcn.0072b81c
push ebx
mov esi, eax
call fcn.0072ab63
add esp, 0x14
xor eax, eax
cmp esi, dword [edi + 0x14]
pop edi
setne al
dec eax
and eax, esi
pop esi
pop ebx
ret
Function at 0x612920
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x86b5d0
push 0x725dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x89b044]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x80c]
mov edi, dword [ebp + 0x810]
mov ebx, dword [ebp + 0x820]
mov dword [ebp - 4], 0
test esi, esi
je 0x612aa1
cmp word [esi], 0
je 0x612aa1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x612994
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x612aa1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x612aa1
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea ecx, [ebp + 2]
push ecx
call fcn.007202b0
push esi
push 0x80a8a0
push 0x3ff
lea edx, [ebp]
push edx
call fcn.00579c80
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.007202b0
add esp, 0x28
mov dword [ebp - 0x54], 0x3c
lea ecx, [ebp]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x40], edi
mov edx, dword [ebp + 0x814]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x50], 0x440
cmp dword [ebp + 0x818], 0
je 0x612a42
push 0
push esi
call fcn.00417fd0
add esp, 8
test eax, eax
jne 0x612a42
push str.RunApp_check_360_sign_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x612aa1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x612a6c
cmp dword [ebp + 0x81c], 0
je 0x612a6c
mov ecx, dword [ebp + 0x824]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
je 0x612a7f
test esi, esi
je 0x612a8d
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x612a8d
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x612aaa
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0071fe0b
add ebp, 0x804
mov esp, ebp
pop ebp
ret

Function at 0x612ad0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x612afd
cmp dword [esp + 0xc], 0
je 0x612af6
push 0
push esi
call fcn.00612480
add esp, 8
test eax, eax
je 0x612afd
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x613b70
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x7c231b
mov eax, dword fs:[0]
push eax
mov eax, 0x2014
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x2028]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2040]
mov esi, dword [esp + 0x2038]
mov ebx, dword [esp + 0x203c]
mov ebp, dword [esp + 0x2044]
push 0x1fff
lea ecx, [esp + 0x29]
push 0
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x30], 0
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x613cec
cmp eax, 0x1fff
ja 0x613cec
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x613cec
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x82f470
lea ecx, [esp + 0x30]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x613cec
cmp dword [esp + 0x2048], 0
mov eax, dword [esp + 0x18]
je 0x613c53
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
jmp 0x613c59
mov edi, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
test ebx, ebx
je 0x613c5f
mov dword [ebx], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x613c69
mov dword [eax], esi
test ebp, ebp
je 0x613ce5
lea ecx, [esp + 0x14]
call fcn.00405e90
movzx edx, si
push edx
movzx eax, di
shr esi, 0x10
push esi
push eax
shr edi, 0x10
push edi
lea ecx, [esp + 0x24]
push str._d._d._d._d
push ecx
mov dword [esp + 0x2048], 0
call fcn.0040e430
mov esi, dword [esp + 0x2c]
add esp, 0x18
mov edx, 0x104
mov eax, ebp
sub esi, ebp
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x613cd0
movzx ecx, word [esi + eax]
test cx, cx
je 0x613cd0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x613cb0
jmp 0x613cd4
test edx, edx
jne 0x613cd7
sub eax, 2
xor edx, edx
lea ecx, [esp + 0x14]
mov word [eax], dx
call fcn.00405ef0
mov eax, 1
jmp 0x613cee
xor eax, eax
mov ecx, dword [esp + 0x2028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x2020
ret
Function at 0x614660
Capabilities:
Check if file exists
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x7c2418
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x61476b
xor edi, edi
mov dword [esp + 0xc], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x614755
call fcn.00452ec0
test eax, eax
jl 0x61476b
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x6146f3
call fcn.00452ec0
test eax, eax
jl 0x614760
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jb 0x614760
ja 0x614701
test esi, esi
jbe 0x614760
test eax, eax
ja 0x614760
jb 0x61470f
cmp esi, 0x500000
jae 0x614760
mov edi, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.0045fb90
push esi
push 0
mov ecx, edi
call fcn.004a9dd0
push eax
lea ecx, [esp + 0x14]
call fcn.0060ed00
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00610900
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x6146cf
test edi, edi
je 0x61476b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x614780
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x61478f
mov eax, dword [eax + 4]
jmp 0x614792
add eax, 4
push edi
push 0x80aa48
push eax
call fcn.0072b299
mov edi, eax
add esp, 8
test edi, edi
jne 0x6147b2
call fcn.007261ee
mov eax, dword [eax]
neg eax
pop edi
ret
push ebx
push 2
push 0
push edi
call fcn.0072b14e
push edi
call fcn.0072b056
push 0
push 0
push edi
mov ebx, eax
call fcn.0072b14e
add esp, 0x1c
test ebx, ebx
jne 0x6147e4
push edi
call fcn.0072ab63
add esp, 4
pop ebx
xor eax, eax
pop edi
ret
push esi
xor esi, esi
cmp ebx, 3
jl 0x614841
push edi
push 1
lea ecx, [esp + 0x18]
xor eax, eax
push 3
push ecx
mov byte [esp + 0x20], 0
mov word [esp + 0x21], ax
call fcn.0072ae9c
add esp, 0x10
cmp eax, 1
je 0x614825
push edi
call fcn.0072ab63
add esp, 4
call fcn.007261ee
mov eax, dword [eax]
pop esi
pop ebx
neg eax
pop edi
ret
cmp byte [esp + 0x10], 0xef
jne 0x614841
cmp byte [esp + 0x11], 0xbb
jne 0x614841
cmp byte [esp + 0x12], 0xbf
jne 0x614841
mov esi, 3
sub ebx, esi
push 0
push esi
push edi
call fcn.0072b14e
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + ebx + 1]
add esp, 0xc
cmp eax, ecx
ja 0x614868
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00406cd0
jmp 0x614874
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.00460c90
cmp dword [esi + 0x18], 0x10
jb 0x61487f
mov eax, dword [esi + 4]
jmp 0x614882
lea eax, [esi + 4]
push ebp
push edi
push 1
push ebx
push eax
call fcn.0072ae9c
push edi
mov ebp, eax
call fcn.0072ab63
mov ecx, dword [esi + 0x14]
lea eax, [ecx - 1]
add esp, 0x14
cmp eax, ecx
ja 0x6148ae
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00406cd0
jmp 0x6148ba
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.00460c90
cmp ebp, 1
pop ebp
jne 0x614818
pop esi
mov eax, ebx
pop ebx
pop edi
ret