joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [0x5f613d]
mov byte [ebp - 0x108], al
push 0xfe
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.005323e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x5f4d34], 0
jne 0x463199
jmp 0x4632bf
push 0x1102600
push 0x5c
mov edx, dword [0x5c4c28]
imul edx, edx, 0x127c
add edx, 0x11a6f12
push edx
push 0x5c
push 0x5c44f8
push str._s_c_s.cls_c_s.dzp
lea eax, [ebp - 0x108]
push eax
call fcn.00532706
add esp, 0x1c
cmp dword [0x5f6630], 1
jne 0x4631f9
cmp dword [0x5f663c], 0
je 0x4631f9
push 0x1068ea0
push str._slocal.dzp
lea ecx, [ebp - 0x108]
push ecx
call fcn.00532706
add esp, 0xc
push 0x565490
lea edx, [ebp - 0x108]
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4632b5
push 0
mov eax, dword [0x5f4d34]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00532940
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 1
push 0x14
lea eax, [ebp - 0x1d0]
push eax
call fcn.0053367b
add esp, 0x10
push 0
push 3
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0041aba0
add esp, 0xc
mov edx, dword [ebp + 8]
shl edx, 8
add edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c0], edx
push 0
push 3
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041aba0
add esp, 0xc
push 0
mov ecx, dword [0x5f4d34]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00532940
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 0x14
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.005337fa
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00431d50
add esp, 4
mov dword [0x5f4d34], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret
Function at 0x463970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], 0
cmp dword [0x5f4be0], 1
jne 0x463adf
push 0x5f6150
call fcn.00532e80
add esp, 4
cmp eax, 8
jne 0x4639c2
push 0x5f6140
call fcn.00532e80
add esp, 4
cmp eax, 8
je 0x463adf
push 0x5f6140
push 0x5f6150
push str.ERROR:_LicenseDeleteHistFile__1___s__s
lea eax, [ebp - 0x108]
push eax
call fcn.00532706
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
push 1
call fcn.00436500
add esp, 8
push 0x56562c
push 0x5c5ed8
push 0x565638
lea edx, [ebp - 0x208]
push edx
call fcn.00532706
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push 0xff
push 0x5f6150
push 0x5f627a
push str.next_run
push 0x56564c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x463a8c
push 8
push 0x5f6158
push 0x5f6140
call fcn.00532bd0
add esp, 0xc
mov byte [0x5f6158], 0
mov byte [0x5f6148], 0
lea ecx, [ebp - 0x208]
push ecx
push 0xff
push 0x5c44f8
push 0x5f627b
push 0x5c5fd8
push 0x565654
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5f6150
call fcn.00532e80
add esp, 4
cmp eax, 8
jne 0x463ab0
push 0x5f6140
call fcn.00532e80
add esp, 4
cmp eax, 8
je 0x463adf
push 0x5f6140
push 0x5f6150
push str.ERROR:_LicenseDeleteHistFile__2___s__s
lea edx, [ebp - 0x108]
push edx
call fcn.00532706
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push 1
call fcn.00436500
add esp, 8
push 0x5f6150
call fcn.00532e80
add esp, 4
cmp eax, 8
jne 0x463ba5
push 0x5f6140
call fcn.00532e80
add esp, 4
cmp eax, 8
jne 0x463ba5
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [0x5c4c28]
imul edx, edx, 0x127c
add edx, 0x11a6ec0
push edx
call fcn.004281d0
add esp, 8
push 0x5f6140
push 0x5c
push 0x5f6150
push 0x5c
lea eax, [ebp - 0x21c]
push eax
push 0x5c44f8
push 0x565684
lea ecx, [ebp - 0x208]
push ecx
call fcn.00532706
add esp, 0x20
lea edx, [ebp - 0x208]
push edx
call fcn.00429360
add esp, 4
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x463ba5
lea eax, [ebp - 0x208]
push eax
push str.ERROR:_LicenseDeleteHistFile__3___s
lea ecx, [ebp - 0x108]
push ecx
call fcn.00532706
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 1
call fcn.00436500
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret
Function at 0x467f80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa08]
push ecx
call fcn.00532580
add esp, 8
lea edx, [ebp - 0xa08]
push edx
call fcn.00532e80
add esp, 4
test eax, eax
jbe 0x467fec
lea eax, [ebp - 0xa08]
push eax
call fcn.00532e80
add esp, 4
movsx ecx, byte [ebp + eax - 0xa09]
cmp ecx, 0x5c
jne 0x467fec
lea edx, [ebp - 0xa08]
push edx
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0xa09], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x608]
push ecx
call fcn.00532580
add esp, 8
lea edx, [ebp - 0x608]
push edx
call fcn.00532e80
add esp, 4
test eax, eax
jbe 0x468045
lea eax, [ebp - 0x608]
push eax
call fcn.00532e80
add esp, 4
movsx ecx, byte [ebp + eax - 0x609]
cmp ecx, 0x5c
jne 0x468045
lea edx, [ebp - 0x608]
push edx
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x609], 0
lea eax, [ebp - 0xa08]
push eax
push 0x565e84
lea ecx, [ebp - 0x808]
push ecx
call fcn.00532706
add esp, 0xc
lea edx, [ebp - 0xb50]
push edx
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xa0c], eax
cmp dword [ebp - 0xa0c], 0xffffffff
je 0x4681a3
movsx ecx, byte [ebp - 0xb24]
cmp ecx, 0x2e
jne 0x468098
jmp 0x468171
movsx edx, byte [ebp - 0xb24]
cmp edx, 0x30
jne 0x4680cc
movsx eax, byte [ebp - 0xb23]
cmp eax, 0x30
jne 0x4680cc
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xb22]
push edx
call fcn.005327a0
add esp, 8
test eax, eax
je 0x4680cc
jmp 0x468171
mov eax, dword [ebp - 0xb50]
and eax, 0x10
je 0x468146
lea ecx, [ebp - 0xb24]
push ecx
lea edx, [ebp - 0x608]
push edx
push 0x565e8c
lea eax, [ebp - 0x408]
push eax
call fcn.00532706
add esp, 0x10
lea ecx, [ebp - 0x408]
push ecx
call fcn.00486e30
add esp, 4
lea edx, [ebp - 0xb24]
push edx
lea eax, [ebp - 0xa08]
push eax
push 0x565e94
lea ecx, [ebp - 0x208]
push ecx
call fcn.00532706
add esp, 0x10
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.00467f80
add esp, 0xc
jmp 0x468171
lea edx, [ebp - 0x608]
push edx
lea eax, [ebp - 0xa08]
push eax
lea ecx, [ebp - 0xb24]
push ecx
call fcn.004811c0
add esp, 0xc
test eax, eax
jne 0x468171
mov dword [0x5f8f0c], 1
lea edx, [ebp - 0xb50]
push edx
mov eax, dword [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x468196
cmp dword [0x5f8f0c], 0
je 0x468087
mov ecx, dword [ebp - 0xa0c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret
Function at 0x46d800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
or eax, 0xffffffff
mov word [ebp - 0x20c], ax
cmp dword [0x5f6608], 1
jne 0x46d832
mov ax, word [ebp - 0x20c]
jmp 0x46d8bf
lea ecx, [ebp - 0x108]
push ecx
call fcn.00485fc0
add esp, 4
push 0x567b98
lea edx, [ebp - 0x108]
push edx
call fcn.00532590
add esp, 8
lea eax, [ebp - 0x108]
push eax
push 0xff
lea ecx, [ebp - 0x208]
push ecx
push 0x5f660e
push 0x567ba4
push 0x567bb4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x208]
push edx
call fcn.0053aa0e
add esp, 4
movsx eax, byte [ebp - 0x208]
test eax, eax
je 0x46d8b8
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0
call fcn.0046dc50
add esp, 0xc
mov dx, word [0xd851a0]
mov word [ebp - 0x20c], dx
mov ax, word [ebp - 0x20c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret
Function at 0x478250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x478261
xor eax, eax
jmp 0x4783fe
call fcn.00478410
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4783c0
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 0x478272
cmp dword [ebp + 0x10], 0
je 0x4783f8
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 0x4783c6
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x478430
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
call fcn.005324a9
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47844e
jmp 0x4784c6
mov dword [ebp - 4], 0
jmp 0x478460
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x4784bd
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 8
jmp 0x478481
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x4784af
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x47849f
mov ecx, dword [ebp - 0x10]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0x14], ecx
jmp 0x4784a7
mov edx, dword [ebp - 0x10]
shr edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x478478
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
jmp 0x478457
mov ecx, dword [ebp - 8]
mov dword [0x5f8cdc], ecx
mov esp, ebp
pop ebp
ret
Function at 0x47a440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x47a558
cmp dword [0x72cb90], 0
jg 0x47a4ea
push 0x2000
mov ecx, dword [0x72cb88]
push ecx
mov edx, dword [0x72cbac]
push edx
call fcn.0053b251
add esp, 0xc
mov dword [0x72cb90], eax
cmp dword [0x72cb90], 0
jne 0x47a499
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
jmp 0x47a55b
cmp dword [0x72cb90], 0
jge 0x47a4cf
push 0x401
push str.error:__zipfile_read_error_n
call fcn.00532e80
add esp, 4
push eax
push str.error:__zipfile_read_error_n
push 0x7202c0
call dword [0x72cdc8]
add esp, 0x10
xor eax, eax
jmp 0x47a55b
mov eax, dword [0x72cbb4]
add eax, 0x2000
mov dword [0x72cbb4], eax
mov ecx, dword [0x72cb88]
mov dword [0x72cb8c], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [0x72cb90]
jae 0x47a4fd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x47a506
mov ecx, dword [0x72cb90]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x72cb8c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00533040
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov ecx, dword [0x72cb8c]
add ecx, dword [ebp - 4]
mov dword [0x72cb8c], ecx
mov edx, dword [0x72cb90]
sub edx, dword [ebp - 4]
mov dword [0x72cb90], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
jmp 0x47a44c
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x47a560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x72cc50], 0
je 0x47a575
or eax, 0xffffffff
jmp 0x47a669
cmp dword [0x720358], 0
jg 0x47a59d
mov eax, dword [0x720358]
sub eax, 1
mov dword [0x720358], eax
mov dword [0x72cb90], 0
or eax, 0xffffffff
jmp 0x47a669
cmp dword [0x72cb90], 0
jg 0x47a63d
push 0x2000
mov ecx, dword [0x72cb88]
push ecx
mov edx, dword [0x72cbac]
push edx
call fcn.0053b251
add esp, 0xc
mov dword [0x72cb90], eax
cmp dword [0x72cb90], 0
jne 0x47a5e7
mov dword [0x72cb90], 0
or eax, 0xffffffff
jmp 0x47a669
cmp dword [0x72cb90], 0
jge 0x47a61d
push 0x401
push str.error:__zipfile_read_error_n
call fcn.00532e80
add esp, 4
push eax
push str.error:__zipfile_read_error_n
push 0x7202c0
call dword [0x72cdc8]
add esp, 0x10
push 3
call fcn.00536c41
mov eax, dword [0x72cbb4]
add eax, 0x2000
mov dword [0x72cbb4], eax
mov ecx, dword [0x72cb88]
mov dword [0x72cb8c], ecx
call fcn.0047a3c0
mov edx, dword [0x72cb90]
sub edx, 1
mov dword [0x72cb90], edx
mov eax, dword [0x72cb8c]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [0x72cb8c]
add edx, 1
mov dword [0x72cb8c], edx
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x47fe30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x72cc78]
push eax
call fcn.00535898
add esp, 4
cmp dword [0x7202d0], 0
je 0x47fe52
jmp 0x47ffbd
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.0047ffd0
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0x72cc90
call fcn.0047fb50
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
mov edx, dword [0x720b7c]
mov eax, dword [edx + 0x18]
and eax, 0x7f
and eax, 0xffffffdf
je 0x47fef4
mov ecx, dword [0x720b7c]
mov edx, dword [ecx + 0x18]
and edx, 0x7f
push edx
push 0x72cc90
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x47fef4
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push 0x720b80
call fcn.00532706
add esp, 0xc
push eax
push 0x720b80
push 0x7202c0
call dword [0x72cdc8]
add esp, 0x10
cmp dword [ebp - 0x14], 0xffffffff
jne 0x47ff2e
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push 0x720b80
call fcn.00532706
add esp, 0xc
push eax
push 0x720b80
push 0x7202c0
call dword [0x72cdc8]
add esp, 0x10
jmp 0x47ffbd
cmp dword [ebp - 0x10], 0
je 0x47ffb3
mov eax, dword [ebp - 0x10]
and eax, 1
neg eax
sbb eax, eax
lea ecx, [ebp - 0xc]
and eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x10]
and edx, 2
neg edx
sbb edx, edx
lea eax, [ebp - 0x24]
and edx, eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x10]
and ecx, 4
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x1c]
and ecx, edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x47ffb3
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
push 0x720b80
call fcn.00532706
add esp, 0xc
push eax
push 0x720b80
push 0x7202c0
call dword [0x72cdc8]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x480340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 2
push 0x569db4
mov eax, dword [ebp + 8]
push eax
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x480381
push 2
push 0x569db8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x4803ab
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 2]
test eax, eax
je 0x4803ab
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 2]
cmp edx, 0x2f
je 0x4803ab
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 2]
cmp ecx, 0x5c
je 0x4803ab
xor eax, eax
jmp 0x48051d
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
push eax
call fcn.00535568
add esp, 4
test eax, eax
je 0x4803d5
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 1]
cmp edx, 0x3a
jne 0x4803d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
jmp 0x480409
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4803fd
xor eax, eax
jmp 0x48051d
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], ecx
push 2
mov edx, dword [ebp - 0x224]
push edx
push 0x72cdf4
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x480518
push 2
mov eax, dword [ebp - 0x224]
push eax
push 0x72cdf4
call fcn.00532bd0
add esp, 0xc
mov byte [0x72cdf6], 0x2f
mov byte [0x72cdf7], 0
push 0x104
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0x72cdf4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x48048c
mov byte [0x72cdf4], 0
xor eax, eax
jmp 0x48051d
mov eax, 0xc
cmp eax, dword [ebp - 0xc]
sbb ecx, ecx
add ecx, 1
mov dword [0x72cdf8], ecx
push 4
push str.VFAT
lea edx, [ebp - 0x118]
push edx
call fcn.0053aa0e
add esp, 4
push eax
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x480502
push 4
push str.HPFS
lea eax, [ebp - 0x118]
push eax
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x480502
push 3
push 0x569dcc
lea ecx, [ebp - 0x118]
push ecx
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x480502
mov dword [ebp - 0x228], 0
jmp 0x48050c
mov dword [ebp - 0x228], 1
mov edx, dword [ebp - 0x228]
mov dword [0x72cdfc], edx
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret
Function at 0x4811c0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00532e80
add esp, 4
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x481214
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x569dd8
lea edx, [ebp - 0x208]
push edx
call fcn.00532706
add esp, 0x10
jmp 0x481230
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x569de0
lea edx, [ebp - 0x208]
push edx
call fcn.00532706
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
call fcn.00532e80
add esp, 4
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x481267
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x569de8
lea edx, [ebp - 0x410]
push edx
call fcn.00532706
add esp, 0x10
jmp 0x481283
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x569df0
lea edx, [ebp - 0x410]
push edx
call fcn.00532706
add esp, 0x10
lea eax, [ebp - 0x550]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x4812aa
xor eax, eax
jmp 0x4813b0
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x4812f8
push 0x80
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x4813b0
push 0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x481336
push 0x80
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x4813b0
lea eax, [ebp - 0x310]
push eax
push 0x569df8
push 0
call fcn.0046d1b0
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 0x569e18
push 0x569e1c
lea edx, [ebp - 0x208]
push edx
push 0x569e20
push 0x569e24
push 0x569e28
lea eax, [ebp - 0x310]
push eax
push str._s_s_s_From:_s_s_sTo:_s__s
lea ecx, [ebp - 0x108]
push ecx
call fcn.00532706
add esp, 0x28
lea edx, [ebp - 0x108]
push edx
push 0x5f8f10
push 0x569e48
lea eax, [ebp - 0x108]
push eax
call fcn.00422b80
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret