joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 0x40
sub esp, 0x5c
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0
mov esi, dword [edx + 4]
sub esi, dword [edx + 8]
mov edx, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x70]
add edx, 0x24
cmp eax, 0x40
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
cmovbe ebx, eax
xor eax, eax
mov ecx, dword [edx + 0x10]
xor edx, edx
test cl, 0x20
sete al
setne dl
shl eax, cl
shl edx, cl
add eax, 0xffffffff
adc edx, 0xffffffff
test ecx, ecx
je 0x4699bb
cmp ecx, ebx
ja 0x4699bb
sub ebx, ecx
mov ecx, ebx
xor ebx, ebx
shld edx, eax, cl
shl eax, cl
and ecx, 0x20
cmovne edx, eax
cmovne eax, ebx
cmp edi, dword [esp + 0x78]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jae 0x469ae1
mov eax, 1
mov ecx, esi
mov ebp, edi
shl eax, cl
sub eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [esp + 0x14], eax
lea esi, [esi]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x78]
mov edx, ebp
mov dword [esp + 0x3c], 0
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
sub ecx, ebp
mov dword [esp], eax
lea eax, [esp + 0x40]
call fcn.004695f0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
test edx, edx
jne 0x469a3b
jmp 0x469ad3
add edi, 1
cmp edi, edx
jae 0x469ad3
mov eax, dword [esp + 0x10]
mov esi, dword [eax + edi*4]
lea eax, [ebp + esi]
cmp dword [esp + 0x14], eax
ja 0x469a30
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0
add edi, 1
mov dword [esp + 0xc], 0
sub esi, ebx
mov dword [esp + 4], ebx
lea eax, [ebp + esi]
mov dword [esp], eax
mov dword [esp + 0x18], eax
call fcn.00406e20
mov ebx, dword [esp + 0x7c]
and eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
mov ecx, dword [ebx + 8]
mov ebx, dword [esp + 0x70]
mov edx, dword [ebx + 0x20]
add edx, eax
shl eax, cl
movzx esi, byte [edx]
mov ebx, esi
shl esi, 3
lea eax, [esi + eax*8]
mov esi, dword [esp + 0x70]
add ebx, 1
add eax, dword [esi + 0x18]
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0x24]
mov dword [eax], esi
mov esi, dword [esp + 0x1c]
mov dword [eax + 4], esi
mov eax, 1
shl eax, cl
sub eax, 1
and ebx, eax
mov byte [edx], bl
mov edx, dword [esp + 0x3c]
cmp edi, edx
jb 0x469a3b
add ebp, dword [esp + 0x2c]
cmp dword [esp + 0x78], ebp
ja 0x4699f0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d1420
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, edx
sub esp, 0x38
mov eax, dword [eax]
test eax, eax
je 0x4d1482
sub ecx, 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004ec5f0
test eax, eax
jne 0x4d1561
lea eax, [esp + 0x2f]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov byte [esp + 0x2f], 0
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
jne 0x4d14a8
add esp, 0x38
pop ebx
ret
mov dword [esp + 8], 0x85b
mov dword [esp + 4], 0x4ff030
mov dword [esp], str.prefs__sparseFileSupport___0
mov dword [esp + 0x1c], ecx
call fcn.004ec460
mov ecx, dword [esp + 0x1c]
jmp 0x4d142c
cmp dword [0x4f7268], 0
jle 0x4d14c9
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 4
jg 0x4d15eb
cmp dword [0x4f7268], 0
jle 0x4d1555
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x45
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jle 0x4d1555
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Write_error_:_cannot_write_last_zero_:__s
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jle 0x4d1555
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0x45
call sub.msvcrt.dll_exit
cmp dword [0x4f7268], 0
jle 0x4d1582
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 4
jg 0x4d1618
cmp dword [0x4f7268], 0
jle 0x4d1555
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x45
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jle 0x4d1555
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Final_skip_error__sparse_file_support_
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jg 0x4d153d
jmp 0x4d1555
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x863
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
jmp 0x4d14d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x85e
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
jmp 0x4d158f
Function at 0x4deaa0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x51a098]
test eax, eax
je 0x4deab0
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x2c], 0
mov dword [esp], str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 4], str.GetLogicalProcessorInformation
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
mov esi, eax
lea edi, [esp + 0x2c]
je 0x4deba0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x2c]
xor ebx, ebx
lea esi, [esi]
mov dword [esp + 4], edi
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x4deb51
call ebp
cmp eax, 0x7a
jne 0x4deba0
test ebx, ebx
je 0x4deb27
mov dword [esp], ebx
call fcn.004f1ae0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
jne 0x4deb00
mov dword [esp], str.zstd
call sub.msvcrt.dll_perror
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov ecx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [0x51a098]
mov edx, 0x18
cmp ecx, 0x17
jbe 0x4deb83
mov edi, dword [ebx + edx - 0x14]
test edi, edi
jne 0x4deb76
add eax, 1
mov esi, 1
add edx, 0x18
cmp ecx, edx
jae 0x4deb66
mov ecx, esi
test cl, cl
jne 0x4debd1
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4debc0
mov dword [0x51a098], eax
jmp 0x4deb93
mov dword [0x51a098], 1
mov eax, 1
jmp 0x4deb93
mov dword [0x51a098], eax
jmp 0x4deb83

Function at 0x4debe0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x51a098]
test eax, eax
je 0x4debf0
repz ret
mov eax, 1
jmp fcn.004dc9f0
Function at 0x4eb300
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004eb360

Function at 0x4eb360
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x51a420]
test esi, esi
jle 0x4eb44d
mov edi, dword [0x51a424]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4eb394
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4eb446
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4eb380
mov dword [esp], eax
mov esi, eax
call fcn.004ebcb0
test eax, eax
mov edi, eax
je 0x4eb48a
mov esi, dword [0x51a424]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004ebdc0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x51a424]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4eb46a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4eb43f
sub eax, 0x40
and eax, 0xffffffbf
je 0x4eb43f
mov eax, dword [esp + 0x20]
add ebx, dword [0x51a424]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4eb454
add dword [0x51a420], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x4eb39e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004eb300
mov eax, dword [0x51a424]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004eb300
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004eb300
lea esi, [esi]
Function at 0x4eb920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x51a438
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x51a430]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4eb975
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4eb96e
test esi, esi
je 0x4eb96e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4eb950
mov dword [esp], 0x51a438
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4ed8a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x4ed8f3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4ed8e0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x4ed970
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.004ed160
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.004ecd10
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004ed5a0
mov eax, dword [0x4f72e8]
cmp eax, 0xffffffff
je 0x4ed99b
test eax, eax
je 0x4ed98b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x4ed8fb
call fcn.004f1cd0
test al, 1
mov edx, 3
jne 0x4ed97e
jmp 0x4ed983
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4ed9c1
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x4f72e8], eax
jmp 0x4ed97a
xor eax, eax
jmp 0x4ed9b7
Function at 0x40cc70
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x55181c
push ecx
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
mov esi, edx
call fcn.004ee7d3
mov eax, dword [ebp - 0x474]
add esp, 0xc
test eax, eax
jne 0x40ccc0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret
push eax
push 0x400
lea eax, [ebp - 0x408]
mov dword [ebp - 0x46c], 0
push 1
push eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x468], 0x67452301
mov dword [ebp - 0x464], 0xefcdab89
mov dword [ebp - 0x460], 0x98badcfe
mov dword [ebp - 0x45c], 0x10325476
call fcn.004eeb09
add esp, 0x10
test eax, eax
je 0x40cd52
nop word [eax + eax]
push eax
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x470]
call fcn.004b1bd0
push dword [ebp - 0x474]
lea eax, [ebp - 0x408]
push 0x400
push 1
push eax
call fcn.004eeb09
add esp, 0x14
test eax, eax
jne 0x40cd20
mov edx, esi
lea ecx, [ebp - 0x470]
call fcn.004b1c90
push dword [ebp - 0x474]
call fcn.004ee8b2
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop esi
call fcn.004e24d7
mov esp, ebp
pop ebp
ret
Function at 0x40e700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f1a9
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x18
xor eax, eax
mov dword [ebp - 0x10c], edi
push str.Start_CheckReDownloadRes
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040b450
push 0x137
push str.t_netConfigManager.cpp
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0
call fcn.00411450
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [eax + 0x64], 2
cmp eax, ecx
je 0x40e79a
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0040b450
lea ecx, [ebp - 0x108]
call fcn.00411690
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b3f0
cmp dword [edi + 0x104], 0
lea ebx, [edi + 0xf4]
je 0x40e86c
cmp dword [edi + 0x11c], 0
je 0x40e86c
mov edx, ebx
lea ecx, [ebp - 0x70]
call fcn.00413a30
mov esi, eax
push 0x551b6c
lea edx, [edi + 0x18]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0040c440
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040f000
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.0040b3f0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.0040b3f0
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x10c]
push eax
push ebx
lea ecx, [ebp - 0x10c]
call fcn.0040e960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e85d
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x190]
call fcn.0040c1e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b3f0
cmp dword [edi + 0x7c], 2
jne 0x40e933
cmp dword [edi + 0x134], 0
lea ebx, [edi + 0x124]
je 0x40e933
cmp dword [edi + 0x14c], 0
je 0x40e933
mov edx, ebx
lea ecx, [ebp - 0xa0]
call fcn.00413a30
mov esi, eax
push 0x551b6c
lea edx, [edi + 0x18]
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.0040c440
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.0040f000
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.0040b3f0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.0040b3f0
lea eax, [ebp - 0x40]
push eax
lea eax, [edi + 0x13c]
push eax
push ebx
lea ecx, [ebp - 0x10c]
call fcn.0040e960
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e92b
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x1a8]
call fcn.0040c1e0
lea ecx, [ebp - 0x40]
call fcn.0040b3f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret
Function at 0x413810
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f863
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x288
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], edx
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41387c
mov eax, dword [esi]
push 0x40
push 0x55181c
push eax
call fcn.004ee81a
add esp, 0xc
mov dword [ebp - 0x288], eax
test eax, eax
je 0x413908
cmp dword [esi + 0x14], 8
jb 0x41389e
mov esi, dword [esi]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4138db
or edi, eax
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x281], 1
cmp edi, eax
ja 0x41393b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae eax, dword [ebp - 0x2c]
mov byte [edi + eax], 0
jmp 0x413948
mov edi, dword [ebp - 0x260]
mov esi, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jl 0x4138b9
jg 0x4138f9
cmp edi, 0xffffffff
jbe 0x4138b9
mov esi, dword [ebp - 0x288]
push esi
call fcn.004ee8b2
add esp, 4
mov byte [ebp - 0x281], 0
lea ecx, [ebp - 0x2c]
call fcn.0040ee10
mov al, byte [ebp - 0x281]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
sub edi, eax
lea ecx, [ebp - 0x2c]
push edi
call fcn.0041af80
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x288]
test edi, edi
je 0x413976
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push edi
push 1
push eax
call fcn.004eeb09
add esp, 0x10
cmp eax, edi
sete byte [ebp - 0x281]
push esi
mov byte [ebp - 4], 0
call fcn.004ee8b2
add esp, 4
cmp byte [ebp - 0x281], 0
je 0x413908
cmp dword [ebp - 0x1c], 3
jb 0x4139ec
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax], 0xef
jne 0x4139ec
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edx
cmp byte [eax + 1], 0xbb
jne 0x4139ec
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edx
cmp byte [eax + 2], 0xbf
jne 0x4139ec
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x28c]
cmovae eax, edx
add eax, 3
push eax
call fcn.0040ed20
mov byte [ebp - 0x281], 1
jmp 0x41390f
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x413a23
mov ecx, esi
call fcn.0040ee10
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x281], 1
jmp 0x41390f
Function at 0x413ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f8e3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x1ac], 0
je 0x413f3c
push 0x10
push dword [esi + 0xfc]
mov byte [esi + 0x1ac], 0
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0x30], 0
je 0x413f4f
mov eax, dword [esi]
mov ecx, esi
push 0
mov byte [esi + 0x30], 0
call dword [eax + 0x48]
cmp dword [esi + 0x84], esi
je 0x413f5b
mov byte [esi + 0x64], 1
push 0
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5a2624]
test al, 1
jne 0x413f97
or eax, 1
mov byte [0x5a2614], 0
mov dword [0x5a2624], eax
mov dword [0x5a2618], 0
mov dword [0x5a2620], 0
jmp 0x413fa6
mov ecx, dword [0x5a2610]
test ecx, ecx
je 0x413fb0
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [0x5a2610], 0
push 0xd
xor eax, eax
mov byte [0x5a261c], 0
push str.OnWindowClose
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040b450
push 0x66
push str.t_wndTrayAd.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call fcn.00411450
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [eax + 0x64], 2
cmp eax, ecx
je 0x414018
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0040b450
lea ecx, [ebp - 0x90]
call fcn.00411690
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b3f0
mov eax, dword [0x59b488]
test eax, eax
je 0x41404c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x59b488], 0
mov eax, dword [esi + 0x178]
test eax, eax
je 0x414067
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [esi + 0x178], 0
mov eax, dword [esi + 0x17c]
test eax, eax
je 0x414082
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esi + 0x17c], 0
call fcn.00412ae0
mov ecx, eax
call fcn.00412c60
call fcn.0040cd80
mov ecx, eax
call fcn.0040cb90
mov eax, dword [esi + 0x180]
cmp eax, 2
je 0x4140aa
cmp eax, 3
jne 0x4140d0
call fcn.0040b710
cmp dword [eax + 0x168], 8
lea ecx, [eax + 0x154]
jb 0x4140c0
mov ecx, dword [ecx]
sub esp, 8
call fcn.004ae450
add esp, 8
call fcn.00411160
mov ecx, dword [esi + 0x180]
call fcn.00410f10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret