joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4119f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411a79
lea ecx, [esp + 0xc]
mov dword [esp + 4], eax
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
mov esi, 4
push ecx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
inc eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push esi
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
lea ecx, [esp + 0x18]
call fcn.0058f6df
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x534abe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push 0x80000001
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x534bff
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x534b32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x534bff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.005771b0
mov eax, dword [0x64885c]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x534bc4
cmp dword [ebp - 0x128], 1
jne 0x534bc4
push edi
push edi
lea eax, [ebp - 0x340]
push 0x100
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.005214c5
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00521595
add esp, 0x10
test eax, eax
je 0x534bd2
inc dword [ebp - 8]
cmp ebx, 1
jne 0x534b43
jmp 0x534bf1
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.00576e70
mov eax, dword [0x613e0c]
add esp, 0xc
test byte [eax + 8], 1
je 0x534bff
mov eax, dword [0x64885c]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5356fa
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x535791
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x535746
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x619070]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x535728
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x53576d
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x619070]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x535750
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x53fc5c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push 0x80000002
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x53fcc4
lea ecx, [ebp - 0x84]
mov eax, ebx
push 0x80
push ecx
push eax
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x53fcc4
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.0053fcf6
add esp, 0x10
mov dword [esi], eax
jmp 0x53fc8e
cmp dword [ebp - 4], edi
je 0x53fcd2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
jmp 0x53fcdf
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
cmp eax, edi
jne 0x53fcd6
cmp dword [esi + 4], edi
je 0x53fcef
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x53fcf6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x53fe40
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53fe5d
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push esi
push str.clsid
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x53fe34
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0053fe63
add esp, 0xc
test eax, eax
jne 0x53fe34
mov ebx, 0x29c
push ebx
call fcn.0058f420
mov esi, eax
pop ecx
test esi, esi
je 0x53fe34
push ebx
push 0
push esi
call fcn.005771b0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push 0x64
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x53fdee
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.00576e70
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 1
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x53fe23
lea eax, [ebp - 0x114]
push eax
jmp 0x53fe26
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.005772e0
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x53fe5d
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push dword [edi]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053fcf6
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x53fe63
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.00576df0
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x53ffd4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x53ffc9
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x53ffc9
lea eax, [ebp - 0x2a8]
push eax
call fcn.00576df0
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00577890
pop ecx
test eax, eax
pop ecx
jne 0x53feb0
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x53ffba
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x53ffb1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x53ffa8
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.005771b0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x53ffa8
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x53feb0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret

Function at 0x54f340
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x664954]
push esi
push edi
xor edi, edi
test eax, eax
je 0x54f397
mov eax, dword [0x678680]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x54f397
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x54f38f
push esi
call fcn.00550660
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x54f9f0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x678680]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x54fa75
mov ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x97e]
lea ecx, [esp + 0xc]
push 0
lea esi, [edi + 0x8f5c]
push ecx
push ebp
push esi
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54fa75
cmp dword [esp + 0xc], ebp
jne 0x54fa75
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x54fa6d
push 0x2e
push esi
call fcn.005767a0
add esp, 8
test eax, eax
je 0x54fa66
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.005767a0
add esp, 8
test eax, eax
jne 0x54fa54
mov byte [edi + 0x8f67], 0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x54fac0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x678680]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x54fad8
or eax, 0xffffffff
pop esi
ret
call fcn.0054fa80
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x54fb10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x678680]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x54fb2a
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9070], 0
test eax, eax
mov dword [esi + 0x9074], 0
jne 0x54fbb2
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x54fb99
push edi
call fcn.005578f0
add esp, 4
mov dword [esi + 0x9070], eax
mov dword [esi + 0x9074], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x8f04]
push ecx
push ebx
call fcn.00556a50
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x54fbb2
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x54fbc0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x678680]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x54fc2e
mov ebp, dword [esp + 0x18]
lea esi, [ebx + 0x8f5c]
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x54fc2e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0054fc40
lea eax, [edi + eax + 0x2e]
xor edi, edi
mov di, word [ebx + 0xc56]
add esp, 8
lea ecx, [edi + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push esi
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5521a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x678680]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5521ba
mov eax, 9
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
dec edx
mov dword [esi + 0x8cf8], eax
and edx, 9
pop esi
mov eax, edx
ret
Function at 0x557760
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x678680]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x557811
mov ecx, dword [esi + 0x9068]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov ax, word [esi + 0xb00]
mov cx, word [esi + 0xb02]
lea edx, [esp + 0x18]
mov dword [esi + 0x9068], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push 0x80000000
push 3
push 0
lea ebx, [esi + 0x75e]
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x557811
mov ecx, dword [esi + 0x966]
or ecx, 0x20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x557820
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x678680]
sub esp, 0x64
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x557840
mov eax, 4
pop edi
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
push esi
test eax, eax
je 0x5578e5
cmp byte [eax], 0
je 0x5578e5
push eax
call fcn.0054f4c0
mov esi, eax
mov eax, dword [edi + 0xc7c]
add esp, 4
test eax, eax
je 0x5578e5
push esi
call fcn.0054f460
add esp, 4
test eax, eax
je 0x5578e5
add esi, 0x40
lea ecx, [esp + 0x50]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x5578e5
mov ebx, 1
mov eax, ebx
pop esi
pop ebx
pop edi
add esp, 0x64
ret

Function at 0x5578f0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55791a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x557934
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.00574350
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x5628b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
mov ecx, dword [eax + 0x1e2]
test ecx, ecx
je 0x5628d0
mov eax, 1
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
test eax, eax
jl 0x562927
cmp eax, 0x1a
jg 0x562927
test eax, eax
jne 0x5628e9
call fcn.005634f0
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.005635e0
add esp, 8
test eax, eax
je 0x56291d
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x562918
mov eax, esi
pop esi
add esp, 0x104
ret
mov esi, 1
mov eax, esi
pop esi
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x562930
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x10]
cmp al, 0x5c
mov al, byte [esp + 0x11]
jne 0x562979
cmp al, 0x5c
jne 0x562979
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.005642e0
test eax, eax
je 0x562987
inc eax
push 0x5c
push eax
call fcn.005642e0
test eax, eax
je 0x562987
mov byte [eax + 1], 0
jmp 0x562987
cmp al, 0x3a
jne 0x562987
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x5629b1
mov eax, 0x7fffffff
jmp 0x5629bf
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp]
test eax, 0x80000000
je 0x5629cb
mov eax, 0x7fffffff
add esp, 0x114
ret
Function at 0x565180
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
call fcn.00556a50
mov ebp, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x5651c1
cmp word [esp + 0x18], 1
jg 0x5651d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5651c1
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x56525e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x565200
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x24
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x565230
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push edi
call fcn.00565380
add esp, 0x10
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
test eax, eax
jne 0x565268
test ebx, ebx
jne 0x565268
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x56527e
cmp ebx, 0xa
mov eax, ebx
jne 0x565260
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x24
ret

Function at 0x565380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x2000
call fcn.005738e8
mov esi, eax
add esp, 4
test esi, esi
jne 0x5653a7
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
cmp edi, 0xffffffff
je 0x5653c9
cmp ebx, edi
jae 0x565445
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jb 0x5653ce
mov eax, 0x2000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56542f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x565445
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x56546e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x56546e
mov eax, dword [esp + 0x28]
push eax
call fcn.0055c4c0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x8e]
test eax, eax
jne 0x565458
add ebx, dword [esp + 0x14]
jmp 0x5653b1
push esi
call fcn.005737ff
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005737ff
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005737ff
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005737ff
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x415290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4151d0
sub esp, 0x6c
mov eax, dword [0x577434]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401352
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.0040273e
add esp, 4
mov edi, 0x4bd14e
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x415246
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.0040273e
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415258
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.00403422
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x415362
test ebx, ebx
je 0x415288
push ebx
push edi
push ebp
call fcn.004058a8
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.00403233
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.00403233
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x415335
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403d96
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403d96
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x415349
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403102
add esp, 0x6c
ret 8
call fcn.004010af
int3