joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a4e90
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.0055ab60
add esp, 8
test eax, eax
jne 0x5a4ebd
pop esi
pop ebp
ret 0xc
push esi
call fcn.0055ab50
mov ecx, eax
add esp, 4
xor eax, eax
test ebp, ebp
jbe 0x5a4f48
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_http:__www.internetdownloadmanager.com_support_data_corruption.html]
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_http:__www.internetdownloadmanager.com_support_data_corruption.html]
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_http:__www.internetdownloadmanager.com_support_data_corruption.html]
mov byte [ecx - 1], dl
mov dl, byte [esi - 1]
and edx, 0x3f
inc ecx
dec edi
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http:__www.internetdownloadmanager.com_support_data_corruption.html]
mov byte [ecx - 1], dl
jne 0x5a4ee5
pop edi
pop ebx
lea edx, [ebp + 1]
cmp eax, edx
jne 0x5a4f60
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 0x5a4f6f
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 0x5a5c00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60d190
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_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5a5c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x5a5d30
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 0x5a5d27
cmp dword [esp + 8], esi
je 0x5a5d27
lea eax, [esp + 0xc]
push eax
call fcn.005c7e4b
lea ecx, [esp + 0x10]
push str._HTML
push ecx
call fcn.005c4c40
add esp, 0xc
test eax, eax
jne 0x5a5cc0
lea edx, [esp + 0xc]
push str.__HTML
push edx
call fcn.005c4c40
add esp, 8
test eax, eax
je 0x5a5cc5
mov esi, 1
lea eax, [esp + 0xc]
push str._BODY
push eax
call fcn.005c4c40
add esp, 8
test eax, eax
jne 0x5a5cf1
lea ecx, [esp + 0xc]
push str.__BODY
push ecx
call fcn.005c4c40
add esp, 8
test eax, eax
je 0x5a5cf6
mov esi, 1
lea edx, [esp + 0xc]
push str._HEAD
push edx
call fcn.005c4c40
add esp, 8
test eax, eax
jne 0x5a5d22
lea eax, [esp + 0xc]
push str.__HEAD
push eax
call fcn.005c4c40
add esp, 8
test eax, eax
je 0x5a5d27
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 0x5a6230
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 0x5a626b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a626b
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.005a7830
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.005c7440
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
ret 4
Function at 0x5a72a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.005c4f90
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.005a8190
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x5a7321
jl 0x5a72f4
cmp ecx, edi
jae 0x5a7321
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x5a731d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005a81c0
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 0x5a739f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5a739f
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.005a81d0
cmp eax, 0xa
jne 0x5a73b2
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 [0x6cfb70]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.005d9fbb
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005a81c0
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.005a7830
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005a81c0
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 0x5a73f0
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_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x5a7433
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5a742d
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.005a7830
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.005a6230
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 0x5a75e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60d2a6
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.005a7e50
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x5a764e
jl 0x5a7626
cmp dword [esi + 0x18], 0x80
jae 0x5a764e
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.005a7f50
mov eax, esi
jmp 0x5a780a
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 0x5a767c
call edi
test eax, eax
je 0x5a767c
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::GetLastMp3___r_n
jmp 0x5a77ee
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 0x5a77e6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5a77e6
lea ecx, [esp + 0x14]
call fcn.005a7fc0
cmp eax, 0x51
jne 0x5a77f5
lea ecx, [esp + 0x64]
call fcn.005d9fce
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5a76ef
lea edi, [esi + 8]
push 0x6cfb84
mov ecx, edi
call fcn.005e14ca
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.005e14ca
lea ecx, [esp + 0x6c]
call fcn.005d9fce
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5a771e
lea edi, [esi + 8]
push 0x6cfb80
mov ecx, edi
call fcn.005e14ca
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.005e14ca
lea ecx, [esp + 0x68]
call fcn.005d9fce
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x5a774d
lea edi, [esi + 8]
push 0x6cfb7c
mov ecx, edi
call fcn.005e14ca
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.005e14ca
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.005e11fa
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.005d9fce
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x5a7792
lea edi, [esi + 8]
push 0x6c0720
mov ecx, edi
call fcn.005e148e
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.005e14ca
lea ecx, [esp + 0x70]
call fcn.005d9fce
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5a77c1
add esi, 8
push 0x6cfb78
mov ecx, esi
call fcn.005e14ca
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.005e14ca
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.005e118c
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.005a7f50
xor eax, eax
jmp 0x5a780a
call edi
push eax
push str.ReadFile___error__ld_in_CFormatParsing::GetLastMp3___r_n
mov ecx, esi
call fcn.005a7830
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.005a7f50
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 0x5ac370
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d7d0
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 + 0xb0]
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 + 0x3bc]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jl 0x5ac493
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 + 0xb0]
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 + 0x3ac]
mov edi, eax
cmp edi, ebx
jl 0x5ac493
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x5ac493
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x5ac493
push ebx
push ecx
mov ecx, dword [esi + 0x31d8]
push eax
push ecx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5ac47e
cmp eax, ebx
je 0x5ac47e
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.00534940
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
push eax
call dword [edx + 0x3d4]
jmp 0x5ac493
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
jmp 0x5ac493
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3b8]
mov eax, dword [esi + 0xb0]
add esi, 0x3300
push esi
call dword [eax + 0x3a4]
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 0x5ac600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5ac60b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5ac70e
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 + 0x63d400]
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 + 0x63d400]
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 + 0x63d400]
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 + 0x63d400]
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 + 0x63d400]
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 + 0x63d400]
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 + 0x63d400]
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 + 0x63d400]
xor eax, edx
inc ecx
dec edi
jne 0x5ac626
pop edi
test esi, esi
je 0x5ac730
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x63d400]
xor eax, edx
inc ecx
dec esi
jne 0x5ac712
pop esi
pop ebx
not eax
ret
Function at 0x5b3930
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_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b3975
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 0x5b3980
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b39a1
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_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5b39c8
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 0x5b39fc
test ebx, ebx
jne 0x5b39fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b39fc
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.005c7440
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5b3a7d
push 0
push 4
push ebx
push esi
call fcn.005c6a70
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5b3a5b
mov eax, dword [edi + 0xc]
push eax
call fcn.005dd5b6
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*4]
push ecx
call fcn.005dd58d
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5b3a5b
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 0x5b3a7a
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 0x5b3c70
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b3c91
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_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5b3cb8
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 0x5b3cec
test ebx, ebx
jne 0x5b3cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b3cec
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.005c7440
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5b3d69
push 0
push 0x10
push ebx
push esi
call fcn.005c6a70
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5b3d47
mov eax, dword [edi + 0xc]
push eax
call fcn.005dd5b6
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
shl eax, 4
push eax
call fcn.005dd58d
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5b3d47
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 0x5b3d66
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 0x5b3ef0
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_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b3f35
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 0x5b4200
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_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b4245
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 0x5b4250
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b4271
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_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5b4298
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 0x5b42cc
test ebx, ebx
jne 0x5b42cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b42cc
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.005c7440
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5b434d
push 0
push 8
push ebx
push esi
call fcn.005c6a70
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5b432b
mov eax, dword [edi + 0xc]
push eax
call fcn.005dd5b6
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*8]
push ecx
call fcn.005dd58d
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5b432b
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 0x5b434a
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 0x5b5080
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x60d990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x6ca27c]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x60]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x50], 1
jle 0x5b5127
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.005b4470
test al, al
je 0x5b511e
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5b5102
lea eax, [esp + 0x1c]
push eax
call fcn.005c4b4a
add esp, 4
test eax, eax
jbe 0x5b511e
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5b511b
lea eax, [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x5b50de
pop ebp
lea ecx, [esi + 0x70]
call fcn.005b3840
lea ecx, [esi + 0x50]
call fcn.005b3be0
mov al, byte [esp + 0x58]
mov dword [esi + 0x60], ebx
cmp al, bl
je 0x5b5155
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x5b514c
lea eax, [esi + 0x68]
push ebx
push eax
mov ecx, esi
call fcn.005b4c30
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], bl
call fcn.005e118c
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 5
call fcn.005e118c
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.005e118c
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.005e118c
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4