joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a8c0
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 0x50aa5d
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0x50a8fd
lea edx, [esp + 0xa0]
mov edi, str.security.dll
jmp 0x50a912
cmp eax, 1
jne 0x50aa5d
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 + 0x208]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x50a94d
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x208], eax
mov eax, dword [ebx + 0x208]
test eax, eax
je 0x50aa5d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeCredentialsHandle
push eax
call esi
mov edx, dword [ebx + 0x208]
push str.QuerySecurityPackageInfoA
push edx
mov dword [ebx + 0x20c], eax
call esi
mov dword [ebx + 0x214], eax
mov eax, dword [ebx + 0x208]
push str.AcquireCredentialsHandleA
push eax
call esi
mov ecx, dword [ebx + 0x208]
push str.FreeContextBuffer
push ecx
mov dword [ebx + 0x210], eax
call esi
mov edx, dword [ebx + 0x208]
push str.InitializeSecurityContextA
push edx
mov dword [ebx + 0x218], eax
call esi
mov dword [ebx + 0x21c], eax
mov eax, dword [ebx + 0x208]
push str.CompleteAuthToken
push eax
call esi
mov ecx, dword [ebx + 0x208]
push str.EnumerateSecurityPackagesA
push ecx
mov dword [ebx + 0x220], eax
call esi
mov edx, dword [ebx + 0x208]
push str.DeleteSecurityContext
push edx
mov dword [ebx + 0x224], eax
call esi
mov dword [ebx + 0x228], eax
mov eax, dword [ebx + 0x20c]
test eax, eax
je 0x50aa46
mov eax, dword [ebx + 0x214]
test eax, eax
je 0x50aa46
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x50aa46
mov eax, dword [ebx + 0x218]
test eax, eax
je 0x50aa46
mov eax, dword [ebx + 0x21c]
test eax, eax
je 0x50aa46
mov eax, dword [ebx + 0x224]
test eax, eax
je 0x50aa46
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x198
ret
mov eax, dword [ebx + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x208], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x198
ret
Function at 0x50b8b0
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x5bda6c
push edi
mov dword [ebx], edi
call fcn.00529450
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x50b909
mov al, byte [0x5c8428]
test al, al
jne 0x50b8f6
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 0x5c8428
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x5c8428
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 0x50b92c
cmp al, 0x5c
je 0x50b92c
cmp al, 0x2f
je 0x50b92c
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 0x50beb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x565d40
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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x50befd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x50bfe0
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 0x50bfd7
cmp dword [esp + 8], esi
je 0x50bfd7
lea eax, [esp + 0xc]
push eax
call fcn.00529859
lea ecx, [esp + 0x10]
push str._HTML
push ecx
call fcn.005271a0
add esp, 0xc
test eax, eax
jne 0x50bf70
lea edx, [esp + 0xc]
push str.__HTML
push edx
call fcn.005271a0
add esp, 8
test eax, eax
je 0x50bf75
mov esi, 1
lea eax, [esp + 0xc]
push str._BODY
push eax
call fcn.005271a0
add esp, 8
test eax, eax
jne 0x50bfa1
lea ecx, [esp + 0xc]
push str.__BODY
push ecx
call fcn.005271a0
add esp, 8
test eax, eax
je 0x50bfa6
mov esi, 1
lea edx, [esp + 0xc]
push str._HEAD
push edx
call fcn.005271a0
add esp, 8
test eax, eax
jne 0x50bfd2
lea eax, [esp + 0xc]
push str.__HEAD
push eax
call fcn.005271a0
add esp, 8
test eax, eax
je 0x50bfd7
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 0x50c480
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 0x50c4bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50c4bb
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.0050d7b0
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.005291e0
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
ret 4
Function at 0x50d220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.00527220
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.0050e9d0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x50d2a1
jl 0x50d274
cmp ecx, edi
jae 0x50d2a1
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x50d29d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0050ea00
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 + 0xc]
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 0x50d31f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50d31f
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.0050ea10
cmp eax, 0xa
jne 0x50d332
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 [0x5c7df8]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.0053afda
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0050ea00
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.0050d7b0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.0050ea00
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 0x50d370
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push connect
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x50d3b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x50d3ad
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.0050d7b0
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.0050c480
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], ecx
mov al, 1
pop esi
ret 8
Function at 0x50d560
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x565e46
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.0050ddf0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x50d5ce
jl 0x50d5a6
cmp dword [esi + 0x18], 0x80
jae 0x50d5ce
mov esi, dword [esi + 0x10]
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
mov dword [esp + 0x164], 0xffffffff
and esi, 0xfffffffe
add esi, 3
call fcn.0050def0
mov eax, esi
jmp 0x50d78a
mov eax, dword [esi + 0xc]
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 0x50d5fc
call edi
test eax, eax
je 0x50d5fc
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::GetLastMp3___r_n
jmp 0x50d76e
mov eax, dword [esi + 0xc]
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 0x50d766
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50d766
lea ecx, [esp + 0x14]
call fcn.0050e800
cmp eax, 0x51
jne 0x50d775
lea ecx, [esp + 0x64]
call fcn.0053afed
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x50d66f
lea edi, [esi + 8]
push 0x5c7e0c
mov ecx, edi
call fcn.005425d6
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.005425d6
lea ecx, [esp + 0x6c]
call fcn.0053afed
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50d69e
lea edi, [esi + 8]
push 0x5c7e08
mov ecx, edi
call fcn.005425d6
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.005425d6
lea ecx, [esp + 0x68]
call fcn.0053afed
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x50d6cd
lea edi, [esi + 8]
push 0x5c7e04
mov ecx, edi
call fcn.005425d6
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.005425d6
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0054222c
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.0053afed
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x50d712
lea edi, [esi + 8]
push 0x5be44c
mov ecx, edi
call fcn.0054259a
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.005425d6
lea ecx, [esp + 0x70]
call fcn.0053afed
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x50d741
add esi, 8
push 0x5c7e00
mov ecx, esi
call fcn.005425d6
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.005425d6
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.005421be
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.0050def0
xor eax, eax
jmp 0x50d78a
call edi
push eax
push str.ReadFile___error__ld_in_CFormatParsing::GetLastMp3___r_n
mov ecx, esi
call fcn.0050d7b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.0050def0
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x512190
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
push edi
mov eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x7c]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0x374]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jl 0x5122aa
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [esi + 0x7c]
push ebx
push ebx
push 0x10
push ebx
push 0xc11c
push ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ebx
call dword [ecx + 0x364]
mov edi, eax
cmp edi, ebx
jl 0x5122aa
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x5122aa
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x5122aa
push ebx
push ecx
mov ecx, dword [esi + 0x2e74]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x512295
cmp eax, ebx
je 0x512295
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.004cfa50
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x7c]
push eax
call dword [edx + 0x38c]
jmp 0x5122aa
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
jmp 0x5122aa
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x7c]
push edx
call dword [ecx + 0x370]
mov eax, dword [esi + 0x7c]
add esi, 0x2f68
push esi
call dword [eax + 0x35c]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x512410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51241b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x51251e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x572bc0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x572bc0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x572bc0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x572bc0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x572bc0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x572bc0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x572bc0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x572bc0]
xor eax, edx
inc ecx
dec edi
jne 0x512436
pop edi
test esi, esi
je 0x512540
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x572bc0]
xor eax, edx
inc ecx
dec esi
jne 0x512522
pop esi
pop ebx
not eax
ret
Function at 0x519800
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x519845
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 2
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4

Function at 0x519850
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x519871
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x519898
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x5198cc
test ebx, ebx
jne 0x5198cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5198cc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.005291e0
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x51994d
push 0
push 4
push ebx
push esi
call fcn.00528840
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x51992b
mov eax, dword [edi + 0xc]
push eax
call fcn.00542796
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*4]
push ecx
call fcn.0054276d
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x51992b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51994a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x519a40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x519a85
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 4
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x519a90
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x519ab1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x519ad8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x519b0c
test ebx, ebx
jne 0x519b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x519b0c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.005291e0
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x519b89
push 0
push 0x10
push ebx
push esi
call fcn.00528840
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x519b67
mov eax, dword [edi + 0xc]
push eax
call fcn.00542796
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
shl eax, 4
push eax
call fcn.0054276d
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x519b67
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x519b86
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x519fa0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x519fe5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 3
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x51a120
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51a141
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x51a168
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x51a19c
test ebx, ebx
jne 0x51a19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x51a19c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.005291e0
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x51a21d
push 0
push 8
push ebx
push esi
call fcn.00528840
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x51a1fb
mov eax, dword [edi + 0xc]
push eax
call fcn.00542796
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*8]
push ecx
call fcn.0054276d
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x51a1fb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51a21a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x51ad10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5663f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x5c2a74]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x60]
xor edi, edi
test eax, eax
mov byte [esp + 0x44], 1
jle 0x51ad95
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0051a340
test al, al
je 0x51ad8c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x51ad8c
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x51ad66
pop ebp
lea ecx, [esi + 0x68]
call fcn.00519710
lea ecx, [esi + 0x50]
call fcn.00519ce0
mov al, byte [esp + 0x4c]
mov dword [esi + 0x60], 0
test al, al
je 0x51adc1
mov eax, dword [esi + 0x64]
push 0
push eax
mov ecx, esi
call fcn.0051aa80
lea ecx, [esp + 8]
mov byte [esp + 0x44], 0
call fcn.005421be
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 5
call fcn.005421be
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.005421be
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.005421be
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 4