joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48db50
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp + 0xc]
push eax
call fcn.004c1bd0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48db73
or eax, 0xffffffff
jmp 0x48dc74
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x14]
add edx, 0x76c
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x10]
add ecx, 1
mov word [ebp - 0x1e], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x18]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 0xc]
mov word [ebp - 0x1a], dx
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 8]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 4]
mov word [ebp - 0x16], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x48dbf2
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
jne 0x48dbf7
or eax, 0xffffffff
jmp 0x48dc74
cmp dword [0x529b74], 0
jge 0x48dc15
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
sbb ecx, ecx
neg ecx
mov dword [0x529b74], ecx
push 0
mov edx, dword [0x529b74]
neg edx
sbb edx, edx
and edx, 0x2000000
push edx
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x48dc4b
or eax, 0xffffffff
jmp 0x48dc74
lea ecx, [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret

Function at 0x491d40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00495750
push eax
mov eax, dword [ebp + 8]
push eax
push str._nbzlib2_int._error__d__version_s._n
push 0x52ba60
call fcn.004be45c
add esp, 0x10
cmp dword [ebp + 8], 0x3ef
jne 0x491d7a
push str._nbzlib2_error_1007_occurred._n
push 0x52ba60
call fcn.004be45c
add esp, 8
push 3
call fcn.004be6a3
pop ebp
ret
Function at 0x4982f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 2
push 0x52a188
mov eax, dword [ebp + 0xc]
push eax
call fcn.004bebf0
add esp, 0xc
test eax, eax
je 0x498327
push 2
push 0x52a18c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004bebf0
add esp, 0xc
test eax, eax
jne 0x498351
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 2]
test eax, eax
je 0x498351
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 2]
cmp edx, 0x2f
je 0x498351
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 2]
cmp ecx, 0x5c
je 0x498351
xor eax, eax
jmp 0x498514
cmp dword [0x52bd88], 1
jle 0x498376
push 0x103
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
push eax
call fcn.004c2a2e
add esp, 8
mov dword [ebp - 0x228], eax
jmp 0x498391
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
mov eax, dword [str.________________________________H]
movzx ecx, word [eax + edx*2]
and ecx, 0x103
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x228], 0
je 0x4983b1
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
cmp eax, 0x3a
jne 0x4983b1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x224], ecx
jmp 0x4983e5
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x220]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4983d9
xor eax, eax
jmp 0x498514
lea edx, [ebp - 0x220]
mov dword [ebp - 0x224], edx
push 2
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10cec
push ecx
call fcn.004bebf0
add esp, 0xc
test eax, eax
je 0x49850f
push 2
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10cec
push eax
call fcn.004bfc60
add esp, 0xc
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x10cee], 0x2f
mov edx, dword [ebp + 8]
mov byte [edx + 0x10cef], 0
push 0x104
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0x104
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10cec
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x49847f
mov eax, dword [ebp + 8]
mov byte [eax + 0x10cec], 0
xor eax, eax
jmp 0x498514
mov ecx, 0xc
cmp ecx, dword [ebp - 0xc]
sbb edx, edx
inc edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10cf0], edx
push 4
push str.VFAT
lea ecx, [ebp - 0x118]
push ecx
call fcn.004cbef4
add esp, 4
push eax
call fcn.004bebf0
add esp, 0xc
test eax, eax
je 0x4984f6
push 4
push str.HPFS
lea edx, [ebp - 0x118]
push edx
call fcn.004bebf0
add esp, 0xc
test eax, eax
je 0x4984f6
push 3
push 0x52a1a0
lea eax, [ebp - 0x118]
push eax
call fcn.004bebf0
add esp, 0xc
test eax, eax
je 0x4984f6
mov dword [ebp - 0x22c], 0
jmp 0x498500
mov dword [ebp - 0x22c], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x22c]
mov dword [ecx + 0x10cf4], edx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x49a4f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2f
mov byte [ebp - 1], 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x49a7e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 2
lea eax, [ebp - 4]
push eax
push 0x21
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x49a829
mov cl, byte [ebp - 4]
mov byte [ebp - 8], cl
cmp byte [ebp - 8], 0x30
je 0x49a817
cmp byte [ebp - 8], 0x31
je 0x49a81b
cmp byte [ebp - 8], 0x32
je 0x49a822
jmp 0x49a829
xor eax, eax
jmp 0x49a82b
mov eax, 1
jmp 0x49a82b
mov eax, 2
jmp 0x49a82b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49a830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x1d
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x49a858
movzx ecx, byte [ebp - 4]
test ecx, ecx
je 0x49a858
mov al, byte [ebp - 4]
jmp 0x49a85a
mov al, 0x2d
mov esp, ebp
pop ebp
ret
Function at 0x4a2900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10aec], 0
je 0x4a2918
or eax, 0xffffffff
jmp 0x4a2a78
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xa4], 0
jg 0x4a294e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa4]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa4], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x10a38], 0
or eax, 0xffffffff
jmp 0x4a2a78
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10a38], 0
jg 0x4a2a3c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10a54]
push edx
push 0x2000
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10a30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048bcf0
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10a38], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10a38], 0
jne 0x4a29af
mov eax, dword [ebp + 8]
mov dword [eax + 0x10a38], 0
or eax, 0xffffffff
jmp 0x4a2a78
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10a38], 0
jge 0x4a2a06
push 0x401
push str.error:__zipfile_read_error_n
call fcn.004be7f0
add esp, 4
push eax
push str.error:__zipfile_read_error_n
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x10c90]
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490090
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.004be424
add esp, 4
xor eax, eax
jne 0x4a29e3
push 3
call fcn.004be6a3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10a5c]
add edx, 0x2000
mov eax, dword [ebp + 8]
mov dword [eax + 0x10a5c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a30]
mov dword [ecx + 0x10a34], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a26f0
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a38]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10a38], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a34]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a34]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10a34], eax
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4a46a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4a46b8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x4a4716
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 8
jmp 0x4a46d9
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4a4707
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x4a46f7
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0x10], ecx
jmp 0x4a46ff
mov edx, dword [ebp - 0xc]
shr edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4a46d0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx*4 + 0x596d58], edx
jmp 0x4a46af
mov dword [0x52a7a8], 0
mov esp, ebp
pop ebp
ret
Function at 0x4b4300
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x59715c], 0
je 0x4b4319
mov eax, 1
jmp 0x4b43c0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b4335
xor eax, eax
jmp 0x4b43c0
mov eax, dword [ebp - 4]
push eax
push 0x597160
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b4383
mov ecx, dword [ebp - 8]
push ecx
push 0x597160
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x59715c]
jmp 0x4b43c0
push 0x597640
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x597520
call fcn.004bf170
add esp, 0xc
call fcn.004b46b0
mov dword [0x59715c], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4b5f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x4b5f31
xor eax, eax
jmp 0x4b60ce
call fcn.004a4680
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4b6090
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx*4]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx*4]
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax*4]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx*4]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx*4]
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax*4]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx*4]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx*4]
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 8
mov dword [ebp + 0x10], edx
jmp 0x4b5f42
cmp dword [ebp + 0x10], 0
je 0x4b60c8
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx*4]
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4b6096
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4be5e2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x5971bc], esi
push edi
jne 0x4be602
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x5971b8], esi
mov byte [0x5971b4], al
jne 0x4be668
mov ecx, dword [0x5979f0]
test ecx, ecx
je 0x4be649
mov eax, dword [0x5979ec]
sub eax, 4
cmp eax, ecx
jmp 0x4be642
mov eax, dword [eax]
test eax, eax
je 0x4be634
call eax
mov eax, dword [0x5979ec]
sub eax, 4
cmp eax, dword [0x5979f0]
mov dword [0x5979ec], eax
jae 0x4be62c
mov eax, 0x5290b8
mov esi, 0x5290c0
cmp eax, esi
mov edi, eax
jae 0x4be668
mov eax, dword [edi]
test eax, eax
je 0x4be661
call eax
add edi, 4
cmp edi, esi
jb 0x4be659
mov eax, 0x5290c4
mov esi, 0x5290c8
cmp eax, esi
mov edi, eax
jae 0x4be687
mov eax, dword [edi]
test eax, eax
je 0x4be680
call eax
add edi, 4
cmp edi, esi
jb 0x4be678
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4be6a1
push dword [ebp + 8]
mov dword [0x5971bc], 1
call fcn.004be548
pop ebp
ret
Function at 0x4c0e5e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c0e8c
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4c0e91
cmp eax, 1
je 0x4c0e91
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c0e95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x52bfb8]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4c0f0b
push ebx
call fcn.004c0e5e
test eax, eax
pop ecx
jne 0x4c0eda
mov dword [0x597174], 0xf
mov dword [0x597170], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004c5c96
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4c0f1d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4c0ecd
inc eax
cmp eax, 0x104
ja 0x4c0ecd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4c0f54
cmp eax, dword [ebp + 0x10]
jg 0x4c0f38
mov eax, dword [ebp + 0x10]
push eax
call fcn.004be412
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4c0f68
mov dword [0x597170], 0xc
jmp 0x4c0ecd
cmp eax, dword [ebp + 0x10]
jle 0x4c0f68
mov dword [0x597170], 0x22
jmp 0x4c0ecd
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004be6f0
pop ecx
pop ecx
jmp 0x4c0ecf

Function at 0x4c297e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c299e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c564a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c29bf
test byte [esp + 8], 2
je 0x4c29bf
mov dword [0x597170], 0xd
mov dword [0x597174], 5
jmp 0x4c299a
xor eax, eax
ret

Function at 0x4c29ed
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4c2a1a
test byte [esp + 8], 0x80
je 0x4c2a08
and eax, 0xfffffffe
jmp 0x4c2a0b
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4c2a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c564a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4c4ec4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x5978a0]
mov eax, dword [0x52bfb8]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4c508a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x5978c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4c508a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4c4f2e
xor eax, eax
jmp 0x4c509e
test al, 0x20
je 0x4c4f3f
push 2
push edi
push edi
push ecx
call fcn.004c90cb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4c5014
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4c505b
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4c4fa1
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4c4f92
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4c4f74
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c4fe1
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4c4fed
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4c4f68
jmp 0x4c4fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4c5085
cmp dword [ebp + 0x3a4], edi
je 0x4c505b
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4c504d
mov dword [0x597174], eax
jmp 0x4c5091
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c503f
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4c4fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4c4fef
push dword [ebp + 0x3a4]
call fcn.004c564a
pop ecx
jmp 0x4c509b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4c5073
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4c4f27
mov dword [0x597170], 0x1c
mov dword [0x597174], edi
jmp 0x4c509b
sub eax, dword [ebp - 0x7c]
jmp 0x4c509e
and dword [0x597174], 0
mov dword [0x597170], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004c5c96
add ebp, 0x39c
leave
ret
Function at 0x4c586f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5978a0]
push edi
jae 0x4c5a44
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x5978c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4c5a44
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4c591a
test dl, 2
jne 0x4c591a
test dl, 0x48
je 0x4c58e4
cmp byte [eax + 5], 0xa
je 0x4c58e4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c592d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4c5915
mov dword [0x597174], ecx
jmp 0x4c5a4b
cmp eax, 0x6d
jne 0x4c5921
xor eax, eax
jmp 0x4c5a58
push eax
call fcn.004c564a
pop ecx
jmp 0x4c5a55
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4c5a3f
test eax, eax
je 0x4c5954
cmp byte [ebx], 0xa
jne 0x4c5954
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4c595d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4c5a39
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4c5a29
cmp al, 0xd
je 0x4c598f
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4c5a1b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4c59a9
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4c59a4
add dword [ebp - 8], 2
jmp 0x4c59fd
mov dword [ebp - 8], eax
jmp 0x4c5a17
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c59d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c5a17
cmp dword [ebp - 0x10], 0
je 0x4c5a17
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4c59f2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4c59fd
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4c5a1a
cmp ebx, dword [ebp + 0xc]
jne 0x4c5a02
cmp byte [ebp - 1], 0xa
jne 0x4c5a02
mov byte [ebx], 0xa
jmp 0x4c5a1a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c56a9
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4c5a1b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4c5973
jmp 0x4c5a39
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4c5a39
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4c5a58
and dword [0x597174], 0
mov dword [0x597170], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret