joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56e5f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x20]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
je 0x56e62b
push eax
call fcn.005aa012
add esp, 4
mov esi, dword [ebp + 8]
cmp esi, edi
jne 0x56e64a
mov dword [ebx + 0x20], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x56e66e
mov dword [ebx + 0x20], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005a9fe9
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x20], edx
jne 0x56e6af
push str.URL::set_LastModified__:_Not_enough_memory__n
mov ecx, ebx
call fcn.0056b3b0
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x56e6e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x3c0]
test ecx, ecx
jne 0x56e716
push eax
mov ecx, ebx
call fcn.00570c40
test al, al
jne 0x56e716
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 0x3c0]
push edx
push 1
push eax
push str.LastModified
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56ec30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x3c0]
mov dword [ebp - 4], 0
test eax, eax
jne 0x56ec8f
mov eax, dword [ebp + 8]
push eax
call fcn.00570c40
test al, al
jne 0x56ec8f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x3c0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 8]
lea edx, [ebp - 0x21c]
push ecx
push edx
push 0
push 0
mov ebx, 0x208
push str.LocalPath
push eax
mov dword [ebp + 8], ebx
call edi
test eax, eax
je 0x56ecd6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005943f2
add esp, 4
test eax, eax
je 0x56ed01
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x56ed11
push eax
call fcn.005aa012
add esp, 4
lea edx, [ebp - 0x21c]
push edx
call fcn.00591712
lea eax, [eax + eax + 2]
push eax
call fcn.005a9fe9
add esp, 8
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x56ed55
push str.URL::set_localPath__:_Not_enough_memory__n
mov ecx, esi
call fcn.0056b3b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.005918aa
mov ecx, dword [esi + 0x3c0]
add esp, 8
lea edx, [ebp + 8]
lea eax, [ebp - 0x21c]
push edx
push eax
push 0
push 0
push str.LocalFileName
push ecx
mov dword [ebp + 8], ebx
call edi
test eax, eax
je 0x56eda1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x21c]
mov ecx, esi
push edx
call fcn.0056f490
test eax, eax
je 0x56edcb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x3c0]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x21c]
push eax
push ecx
push 0
push 0
push str.LogFileName
push edx
mov dword [ebp + 8], ebx
call edi
test eax, eax
je 0x56ee07
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x3b8]
lea eax, [ebp - 0x21c]
add ecx, 4
push eax
push ecx
call fcn.005918aa
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x56ee70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x68d01c]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push eax
mov byte [ebp - 4], 1
call fcn.005a6a18
add esp, 0x10
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
lea edx, [ebp + 0xc]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x691568
push ebx
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x56f01c
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 8]
lea edx, [ebp - 0x224]
push ecx
push edx
push ebx
push ebx
push str.LocalPath
push eax
mov dword [ebp + 8], 0x208
call edi
test eax, eax
je 0x56ef21
mov ecx, dword [ebp + 0xc]
push ecx
jmp 0x56f016
lea edx, [ebp - 0x224]
push edx
call fcn.005943f2
add esp, 4
test eax, eax
jne 0x56f012
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x56ef48
push eax
call fcn.005aa012
add esp, 4
lea ecx, [ebp - 0x224]
push ecx
call fcn.00591712
lea edx, [eax + eax + 2]
push edx
call fcn.005a9fe9
add esp, 8
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x56ef7d
push str.URL::set_localPath__:_Not_enough_memory__n
mov ecx, esi
call fcn.0056b3b0
mov edx, dword [ebp + 0xc]
push edx
jmp 0x56f016
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.005918aa
mov edx, dword [ebp + 0xc]
add esp, 8
lea eax, [ebp + 8]
lea ecx, [ebp - 0x224]
push eax
push ecx
push ebx
push ebx
push str.LocalFileName
push edx
mov dword [ebp + 8], 0x208
call edi
test eax, eax
jne 0x56f012
lea ecx, [ebp - 0x224]
push ecx
mov ecx, esi
call fcn.0056f490
cmp eax, ebx
je 0x56efef
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005adc4d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x224]
push eax
push ecx
push ebx
push ebx
push str.LogFileName
push edx
mov dword [ebp + 8], 0x208
call edi
test eax, eax
je 0x56f03f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005adc4d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 0x3b8]
lea ecx, [ebp - 0x224]
add edx, 4
push ecx
push edx
call fcn.005918aa
mov eax, dword [ebp + 0xc]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005adc4d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56f6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x692d40]
sub esp, 0x20c
test eax, eax
jne 0x56f77e
mov eax, dword [0x692d3c]
test eax, eax
jne 0x56f756
mov edx, dword [0x691b84]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.ExePath
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x56f74d
lea eax, [esp + 4]
push 0x5c
push eax
call fcn.00592690
add esp, 8
test eax, eax
je 0x56f74d
lea ecx, [esp + 4]
lea edx, [esp + 0x108]
push ecx
push str._sidmftype.dll
push edx
mov byte [eax], 0
call fcn.005920ea
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x692d3c], eax
jmp 0x56f752
mov eax, dword [0x692d3c]
test eax, eax
je 0x56f77e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IDMFileType
push eax
call esi
mov ecx, dword [0x692d3c]
push str.IDMExtensionForMimeType
push ecx
mov dword [0x692d40], eax
call esi
mov dword [0x692d44], eax
pop esi
add esp, 0x20c
ret
Function at 0x570d70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x2c0], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x570dc9
mov ecx, dword [esi + 0x3c0]
test ecx, ecx
jne 0x570d9b
push eax
mov ecx, esi
call fcn.00570c40
test al, al
je 0x570dc9
mov edx, dword [esi + 0x2c0]
mov eax, dword [esi + 0x3c0]
xor ecx, ecx
push 4
test edx, edx
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.needER
setne cl
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x5710a0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x198
push ebx
push esi
lea eax, [esp + 8]
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x57123d
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0x5710dd
lea edx, [esp + 0xa0]
mov edi, str.security.dll
jmp 0x5710f2
cmp eax, 1
jne 0x57123d
lea edx, [esp + 0xa0]
mov edi, str.secur32.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x17c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x57112d
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x17c], eax
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x57123d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeCredentialsHandle
push eax
call esi
mov edx, dword [ebx + 0x17c]
push str.QuerySecurityPackageInfoA
push edx
mov dword [ebx + 0x180], eax
call esi
mov dword [ebx + 0x188], eax
mov eax, dword [ebx + 0x17c]
push str.AcquireCredentialsHandleA
push eax
call esi
mov ecx, dword [ebx + 0x17c]
push str.FreeContextBuffer
push ecx
mov dword [ebx + 0x184], eax
call esi
mov edx, dword [ebx + 0x17c]
push str.InitializeSecurityContextA
push edx
mov dword [ebx + 0x18c], eax
call esi
mov dword [ebx + 0x190], eax
mov eax, dword [ebx + 0x17c]
push str.CompleteAuthToken
push eax
call esi
mov ecx, dword [ebx + 0x17c]
push str.EnumerateSecurityPackagesA
push ecx
mov dword [ebx + 0x194], eax
call esi
mov edx, dword [ebx + 0x17c]
push str.DeleteSecurityContext
push edx
mov dword [ebx + 0x198], eax
call esi
mov dword [ebx + 0x19c], eax
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x571226
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x571226
mov eax, dword [ebx + 0x184]
test eax, eax
je 0x571226
mov eax, dword [ebx + 0x18c]
test eax, eax
je 0x571226
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x571226
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x571226
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x198
ret
mov eax, dword [ebx + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x17c], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x198
ret
Function at 0x571db0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0xaaaaaaab
push esi
lea ecx, [ebp + 3]
mov esi, dword [esp + 0x14]
mul ecx
shr edx, 1
lea edx, [edx + ebp + 4]
push edx
push esi
call fcn.00533910
add esp, 8
test eax, eax
jne 0x571ddd
pop esi
pop ebp
ret 0xc
push esi
call fcn.00533900
mov ecx, eax
add esp, 4
xor eax, eax
test ebp, ebp
jbe 0x571e68
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
mov esi, dword [esp + 0xc]
push ebx
push edi
mov edi, edx
shr edi, 1
lea eax, [edi + edi*2]
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
add esi, 3
shr edx, 2
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 3]
mov bl, byte [esi - 2]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
xor ebx, ebx
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 2]
mov bl, byte [esi - 1]
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 1]
and edx, 0x3f
inc ecx
dec edi
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
jne 0x571e05
pop edi
pop ebx
lea edx, [ebp + 1]
cmp eax, edx
jne 0x571e80
mov byte [ecx - 1], 0x3d
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
ret 0xc
add ebp, 2
cmp eax, ebp
jne 0x571e8f
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
ret 0xc

Function at 0x572530
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x682e74
push edi
mov dword [ebx], edi
call fcn.00592f40
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x572589
mov al, byte [0x692d54]
test al, al
jne 0x572576
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 0x692d54
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x692d54
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
mov byte [eax], 0
mov edx, dword [esi]
inc edx
mov dword [esi], edx
mov esi, edx
mov al, byte [esi]
test al, al
je 0x5725ac
cmp al, 0x5c
je 0x5725ac
cmp al, 0x2f
je 0x5725ac
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x572b40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d7460
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [esp + 0x9c]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x572b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x572c70
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push esi
push ecx
lea edx, [esp + 0x18]
push 0x80
push edx
push ebx
mov dword [esp + 0x20], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x572c67
cmp dword [esp + 8], esi
je 0x572c67
lea eax, [esp + 0xc]
push eax
call fcn.0059468b
lea ecx, [esp + 0x10]
push str._HTML
push ecx
call fcn.00591800
add esp, 0xc
test eax, eax
jne 0x572c00
lea edx, [esp + 0xc]
push str.__HTML
push edx
call fcn.00591800
add esp, 8
test eax, eax
je 0x572c05
mov esi, 1
lea eax, [esp + 0xc]
push str._BODY
push eax
call fcn.00591800
add esp, 8
test eax, eax
jne 0x572c31
lea ecx, [esp + 0xc]
push str.__BODY
push ecx
call fcn.00591800
add esp, 8
test eax, eax
je 0x572c36
mov esi, 1
lea edx, [esp + 0xc]
push str._HEAD
push edx
call fcn.00591800
add esp, 8
test eax, eax
jne 0x572c62
lea eax, [esp + 0xc]
push str.__HEAD
push eax
call fcn.00591800
add esp, 8
test eax, eax
je 0x572c67
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x94]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4

Function at 0x573170
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5731ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5731ab
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.00574770
xor eax, eax
pop edi
xor edx, edx
pop esi
ret 4
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.00593f90
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
ret 4
Function at 0x5741e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.00591b50
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.005750d0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x574261
jl 0x574234
cmp ecx, edi
jae 0x574261
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x57425d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00575100
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov ebx, eax
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x2770]
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5742df
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5742df
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.00575110
cmp eax, 0xa
jne 0x5742f2
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x58]
push eax
mov eax, dword [0x692744]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.005a6a18
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00575100
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, esi
call fcn.00574770
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00575100
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x574330
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push accept
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x574373
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x57436d
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.00574770
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.00573170
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ecx
mov al, 1
pop esi
ret 8
Function at 0x574520
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d7576
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00574d90
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x57458e
jl 0x574566
cmp dword [esi + 0x18], 0x80
jae 0x57458e
mov esi, dword [esi + 0x14]
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
mov dword [esp + 0x164], 0xffffffff
and esi, 0xfffffffe
add esi, 3
call fcn.00574e90
mov eax, esi
jmp 0x57474a
mov eax, dword [esi + 0x10]
push 2
push 0
push 0xffffffffffffff80
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x5745bc
call edi
test eax, eax
je 0x5745bc
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::GetLastMp3___r_n
jmp 0x57472e
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0xcc]
push 0x80
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x574726
mov eax, dword [esp + 0x10]
test eax, eax
je 0x574726
lea ecx, [esp + 0x14]
call fcn.00574f00
cmp eax, 0x51
jne 0x574735
lea ecx, [esp + 0x64]
call fcn.005a6a2b
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x57462f
lea edi, [esi + 8]
push 0x692758
mov ecx, edi
call fcn.005adf8b
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.005adf8b
lea ecx, [esp + 0x6c]
call fcn.005a6a2b
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x57465e
lea edi, [esi + 8]
push 0x692754
mov ecx, edi
call fcn.005adf8b
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.005adf8b
lea ecx, [esp + 0x68]
call fcn.005a6a2b
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x57468d
lea edi, [esi + 8]
push 0x692750
mov ecx, edi
call fcn.005adf8b
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.005adf8b
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.005adcbb
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.005a6a2b
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x5746d2
lea edi, [esi + 8]
push 0x683944
mov ecx, edi
call fcn.005adf4f
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.005adf8b
lea ecx, [esp + 0x70]
call fcn.005a6a2b
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x574701
add esi, 8
push 0x69274c
mov ecx, esi
call fcn.005adf8b
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.005adf8b
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.005adc4d
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.00574e90
xor eax, eax
jmp 0x57474a
call edi
push eax
push str.ReadFile___error__ld_in_CFormatParsing::GetLastMp3___r_n
mov ecx, esi
call fcn.00574770
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.00574e90
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x15c
ret