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

Disassembly:
sub esp, 0xc
mov eax, dword [0x6bd09c]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 0
mov dword [esp + 0xc], 4
jle 0x525a19
nop
mov eax, dword [0x6bd098]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0x2d
jne 0x525a0f
push eax
push str._nogamma
call fcn.005ce0db
add esp, 8
test eax, eax
je 0x525a32
mov eax, dword [0x6bd09c]
inc esi
cmp esi, eax
jl 0x5259f0
mov eax, dword [0x6b46bc]
test eax, eax
jne 0x525a32
mov eax, dword [0x6bdd68]
test eax, eax
mov byte [0x6b83b8], 0
je 0x525a39
mov byte [0x6b83b8], 1
mov ecx, dword [0x75bfec]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
shr ecx, 0x11
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
and cl, 1
push closesocket
mov byte [0x67c580], cl
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.gamma
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov eax, dword [esp + 4]
test eax, eax
je 0x525ad7
xor eax, eax
jmp 0x525ab0
mov ecx, eax
shl ecx, 8
mov word [eax*2 + 0x67b980], cx
mov word [eax*2 + 0x67bb80], cx
mov word [eax*2 + 0x67bd80], cx
inc eax
cmp eax, 0x100
jl 0x525ab0
jmp 0x525b02
mov ecx, dword [0x6e13c8]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x67b980
push edi
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
mov edx, dword [0x6e13c8]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, 0x67b980
call fcn.00525d40
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
push closesocket
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.gamma
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call esi
mov dword [0x6b83bc], 1
pop esi
add esp, 0xc
ret
Function at 0x525b70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov al, byte [0x6b83b8]
test al, al
mov dword [esp], 0
jne 0x525c3e
mov eax, dword [0x6b83bc]
test eax, eax
je 0x525c3e
cmp byte [0x67c580], 1
jne 0x525bc2
mov al, byte [0x6b833c]
test al, al
je 0x525bc2
mov eax, dword [0x6b8344]
test eax, eax
je 0x525bc2
mov ecx, dword [eax]
push 0x67b980
push 0
push 0
push eax
call dword [ecx + 0x54]
add esp, 8
ret
mov edx, dword [0x6e13c8]
push esi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x67b980
push esi
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
mov eax, dword [0x6e13c8]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo_CE
push closesocket
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 8]
push edx
push 4
push 0
push str.gamma
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x53bca0
Capabilities:
Copy file

Disassembly:
sub esp, 0x240
push ebx
push ebp
mov ebp, dword [esp + 0x24c]
push edi
push esi
lea eax, [esp + 0x10]
push str._s_s.sav
push eax
xor bl, bl
call fcn.005c87a3
add esp, 0x10
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x53bd6b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
push esi
lea eax, [esp + 0x110]
push str._s_s.bin
push eax
call fcn.005c87a3
push edi
push esi
lea ecx, [esp + 0x20]
push str._s_s.bin
push ecx
call fcn.005c87a3
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x20
push 0
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x10]
push eax
call ebx
push edi
push esi
lea ecx, [esp + 0x10]
push str._s_s.sav
push ecx
call fcn.005c87a3
push ebp
push esi
lea edx, [esp + 0x120]
push str._s_s.sav
push edx
call fcn.005c87a3
add esp, 0x20
push 0
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x10]
push ecx
call ebx
pop ebp
mov al, 1
pop ebx
add esp, 0x240
ret
pop ebp
mov al, bl
pop ebx
add esp, 0x240
ret
Function at 0x53c7f0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov al, byte [0x67def8]
push ebx
xor bl, bl
test al, al
je 0x53c81e
mov al, byte [0x67def8]
test al, al
je 0x53c81e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 0
call esi
mov al, byte [0x67def8]
test al, al
jne 0x53c810
pop esi
mov eax, dword [0x67dcf0]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x53c86b
mov edx, dword [0x67dce8]
mov eax, dword [0x67dce4]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x67dcf0]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53c86b
mov edx, dword [esp + 4]
cmp edx, dword [0x67dce8]
jne 0x53c86b
mov al, 1
pop ebx
pop ecx
ret
push 1
push 0x8c
push 0x8b
call fcn.00582630
add esp, 0xc
mov al, bl
pop ebx
pop ecx
ret

Function at 0x53c890
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x404
push ebx
push esi
push 0
push 0x67ddf4
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x410]
push eax
push 0x67ddf4
lea ecx, [esp + 0x14]
push 0x60d1c4
push ecx
call fcn.005c87a3
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53c90d
mov ecx, dword [esp + 0x414]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53c90d
cmp dword [esp + 8], edi
jne 0x53c90d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
add esp, 0x404
ret

Function at 0x53c920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push ebx
push esi
push eax
push 0x67ddf4
lea ecx, [esp + 0x14]
push 0x60d1c4
push ecx
xor bl, bl
call fcn.005c87a3
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53c989
mov ecx, dword [esp + 0x410]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53c989
cmp dword [esp + 8], edi
jne 0x53c989
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
add esp, 0x404
ret

Function at 0x53c9a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push esi
push eax
push 0x67ddf4
lea ecx, [esp + 0x10]
push 0x60d1c4
push ecx
call fcn.005c87a3
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53ca04
mov ecx, dword [esp + 0x40c]
push 0
lea eax, [esp + 8]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53ca04
cmp dword [esp + 4], edi
je 0x53ca18
push 1
push 0x8c
push 0x8b
call fcn.00582630
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x404
ret
Function at 0x53ca30
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x20114
call fcn.005cd210
push ebp
mov ebp, dword [esp + 0x2011c]
push esi
push edi
push 0
mov esi, ecx
mov edi, edx
call fcn.0053cda0
mov ecx, dword [esp + 0x2012c]
xor dl, dl
add esp, 4
test ecx, ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0xf], dl
je 0x53ca69
mov byte [ecx], dl
cmp eax, 0xffffffff
je 0x53cbbc
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x53cb88
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53cb88
cmp dword [esp + 0x18], edi
jne 0x53cb88
mov edx, dword [ebp]
push edi
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], 0xffffffff
mov dword [ebp], 0
call fcn.004d36d0
sub esi, edi
add esp, 0xc
test esi, esi
jle 0x53cb35
lea esp, [esp]
cmp esi, 0x20000
mov edi, esi
jb 0x53caef
mov edi, 0x20000
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53cb2a
cmp dword [esp + 0x18], edi
jne 0x53cb2a
push edi
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004d36d0
add esp, 0xc
call fcn.0054d1d0
sub esi, edi
test esi, esi
jg 0x53cae0
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
jne 0x53cb5d
mov ecx, dword [esp + 0x10]
push ecx
mov byte [esp + 0x13], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
add esp, 0x20114
ret
mov eax, dword [esp + 0x20128]
test eax, eax
je 0x53cba3
test ecx, ecx
je 0x53cba3
mov ecx, dword [esp + 0x10]
push ecx
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
add esp, 0x20114
ret
mov eax, dword [0x6afd54]
lea esi, [esp + 0x20]
call fcn.00540540
test al, al
je 0x53cba3
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
add esp, 0x20114
ret
pop edi
pop esi
mov al, dl
pop ebp
add esp, 0x20114
ret
Function at 0x53cbd0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x904
push ebx
push esi
push edi
push 0
mov edi, eax
call fcn.0053cda0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x53cd08
mov esi, dword [ebp + 8]
push 0x440000
lea eax, [esp + 0x10]
push esi
push eax
mov dword [edi], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.004d36d0
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edi], ecx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, eax
shr ecx, 2
add esp, 0xc
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call edi
cmp eax, 0xffffffff
je 0x53ccb5
mov ecx, dword [ebp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call esi
test eax, eax
je 0x53ccb5
mov edx, dword [ebp + 0x10]
cmp dword [esp + 0xc], edx
jne 0x53ccb5
push 0
push 0
push 0
push ebx
call edi
cmp eax, 0xffffffff
je 0x53ccb5
mov edi, dword [ebp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x11c]
push ecx
push ebx
call esi
test eax, eax
je 0x53ccb8
cmp dword [esp + 0xc], edi
je 0x53cce7
jmp 0x53ccb8
mov edi, dword [ebp + 0xc]
push 1
push 0x8c
push 0x8b
call fcn.00582630
mov eax, dword [0x6afd54]
add esp, 0xc
lea esi, [esp + 0x10]
call fcn.00540540
test al, al
je 0x53cce7
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov edi, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x110]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53cd10
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x104
push esi
push edi
push 0
mov esi, eax
call fcn.0053cda0
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x53cd94
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x53cd5e
mov ecx, dword [esp + 0x110]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53cd5e
cmp dword [esp + 8], esi
je 0x53cd8d
push 1
push 0x8c
push 0x8b
call fcn.00582630
mov eax, dword [0x6afd54]
add esp, 0xc
lea esi, [esp + 0xc]
call fcn.00540540
test al, al
je 0x53cd8d
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x104
ret
Function at 0x53cda0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4204
call fcn.005cd210
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
jne 0x53cee0
mov eax, dword [0x6afd54]
lea esi, [esp + 0x10]
call fcn.00540540
test al, al
je 0x53ced6
mov eax, dword [0x6afd54]
call fcn.00540540
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x53cde3
mov eax, dword [str.savegame.bin]
mov ecx, dword [0x610248]
mov edx, dword [0x61024c]
push 0
push 0
push 4
mov dword [edi], eax
mov al, byte [0x610250]
push 0
mov dword [edi + 4], ecx
push 0
push 0xc0000000
lea ecx, [esp + 0x28]
mov dword [edi + 8], edx
push ecx
mov byte [edi + 0xc], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x53ced6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x480000
je 0x53cef5
xor eax, eax
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, 0x1000
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
push 0x4000
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53ce9d
cmp dword [esp + 0xc], 0x4000
jne 0x53ce9d
push 0
push 0
push 0x480000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x53ce9d
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x53cef5
push 1
push 0x8c
push 0x8b
call fcn.00582630
mov eax, dword [0x6afd54]
add esp, 0xc
lea esi, [esp + 0x110]
call fcn.00540540
test al, al
je 0x53cecf
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x53cee6
jmp 0x53cdde
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x540340
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50c
push ebx
push esi
push edi
sar eax, 0x10
lea ecx, [esp + 0x210]
and eax, 0xfff
push ecx
push eax
mov bl, 1
mov dword [esp + 0x14], eax
call fcn.005415a0
add esp, 8
test al, al
je 0x540534
mov esi, dword [ebp + 8]
test esi, esi
je 0x540534
cmp word [esi], 0
je 0x540534
lea edx, [esp + 0x310]
push esi
push edx
call fcn.005ccce6
add esp, 8
test eax, eax
je 0x540534
xor eax, eax
mov byte [esp + 0x110], 0
mov ecx, 0x3f
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0x114]
push eax
push 1
mov eax, esi
mov ecx, 0x6bc751
call fcn.00554fe0
test eax, eax
jne 0x540534
movsx eax, word [esp + 0x410]
sub eax, 0
je 0x54043c
dec eax
je 0x5403f9
xor bl, bl
jmp 0x540528
push str.blam.lst
lea ecx, [esp + 0x114]
push ecx
push str._s_s
lea edx, [esp + 0x1c]
push 0xff
push edx
call fcn.005c8b3d
add esp, 0x14
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x218]
push ecx
mov byte [esp + 0x11b], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x5404b5
push str.blam.sav
lea edx, [esp + 0x114]
push edx
push str._s_s
lea eax, [esp + 0x1c]
push 0xff
push eax
call fcn.005c8b3d
push 0xff
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x434]
push edx
mov byte [esp + 0x12f], 0
call fcn.005c8ba0
lea eax, [esp + 0x438]
push str.blam.sav
push eax
call fcn.005ca410
add esp, 0x28
test eax, eax
je 0x5404bc
lea ecx, [esp + 0x110]
push ecx
lea esi, [esp + 0x41c]
mov byte [eax], 0
call fcn.00540030
mov esi, dword [ebp + 8]
add esp, 4
mov bl, al
cmp bl, 1
jne 0x540524
lea eax, [esp + 0x310]
mov ecx, 0x6bc751
call fcn.00555270
push 0xff
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x218]
push eax
call fcn.005c8ba0
push 0x7f
lea ecx, [esp + 0x320]
push esi
push ecx
mov byte [esp + 0x327], 0
call fcn.005cca83
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x228]
push edx
push eax
mov word [esp + 0x42e], 0
call fcn.005416b0
add esp, 0x20
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x540534
mov eax, esi
mov ecx, 0x6bc751
call fcn.00555270
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5405e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x35c
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x6bc751
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x540628
mov eax, dword [esp + 8]
test eax, eax
ja 0x540628
jb 0x54061b
cmp dword [esp + 4], 0x2800000
jae 0x540628
mov eax, 1
pop ebx
add esp, 0x35c
ret
push esi
push edi
push 0x6bc751
lea eax, [esp + 0x28]
call fcn.00555490
mov esi, eax
cmp esi, 0xffffffff
mov edi, 1
je 0x540689
cmp edi, 0x3e7
jae 0x54065c
lea eax, [esp + 0x24]
mov ecx, esi
inc edi
call fcn.00555610
cmp al, 1
je 0x540644
test esi, esi
je 0x540672
mov eax, esi
call fcn.00554fa0
test al, al
je 0x540672
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x3e7
jb 0x540689
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x35c
ret
pop edi
pop esi
mov ax, bx
pop ebx
add esp, 0x35c
ret
Function at 0x544790
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x34]
push esi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5447be
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5447df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x54480a
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x54481b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
cmp dword [esp + 0x10], ebx
jne 0x544803
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push ebx
push edi
call fcn.005bf8f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x14]
mov ecx, 4
mov edx, eax
sub ecx, edx
jmp 0x544850
xor dword [eax], 0x524f4752
add eax, 4
lea edx, [ecx + eax]
cmp edx, 0x21
jb 0x544850
xor ecx, ecx
movzx eax, byte [esp + ecx + 0x14]
cdq
mov esi, 0x1a
idiv esi
add dl, 0x41
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0x20
jb 0x544863
mov ecx, 6
mov edi, ebp
lea esi, [esp + 0x14]
xor eax, eax
mov byte [esp + 0x38], 0
repe cmpsd dword [esi], dword es:[edi]
jne 0x544811
lea edi, [ebp + 0x1c]
mov ecx, 9
lea esi, [esp + 0x2c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop ebx
pop esi
sete al
pop ebp
add esp, 0x2c
ret
Function at 0x5452c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x5452d8
mov eax, dword [0x6e13c4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push ebx
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x54531a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x545320
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push eax
push edx
mov bl, 1
call fcn.005c8ba0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov al, bl
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov al, bl
pop ebx
ret
Function at 0x5462d0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x10
push esi
push edi
push 0
push 2
call fcn.005cc4ec
add esp, 8
mov edi, eax
mov esi, 0x6106e8
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5462f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x546322
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea eax, [esp + 0xc]
push 0x6106e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push ecx
push 2
call fcn.005cc4ec
add esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
push 0
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push 0
call ebp
mov esi, eax
push esi
push edi
call ebx
push 0
push esi
push 0
call fcn.005cbb24
add esp, 0xc
mov edi, eax
inc edi
lea edx, [edi + edi]
push edx
push 0
call ebp
push edi
push esi
push eax
mov dword [0x6bd0b0], eax
call fcn.005cbb24
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x6b46bc]
test eax, eax
pop ebp
pop ebx
je 0x54638d
pop edi
mov dword [0x6bd0a4], 0
pop esi
add esp, 0x10
ret
push str.keystone.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x6bd0a4], eax
je 0x5464e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.KeystoneCreate
push eax
call esi
mov dword [0x6bd0a8], eax
mov eax, dword [0x6bd0a4]
push str.Call_KsTranslateAccelerator
push eax
call esi
mov ecx, dword [0x6bd0a4]
push str.Call_KsCreateWindow
push ecx
mov dword [0x6bd0b8], eax
call esi
mov edx, dword [0x6bd0a4]
push str.Call_KsGetWindow
push edx
mov dword [0x6bd0bc], eax
call esi
mov dword [0x6bd0c0], eax
mov eax, dword [0x6bd0a4]
push str.Call_KsUpdate
push eax
call esi
mov ecx, dword [0x6bd0a4]
push str.Call_KsDispatchMessage
push ecx
mov dword [0x6bd0c4], eax
call esi
mov edx, dword [0x6bd0a4]
push str.Call_KW_Release
push edx
mov dword [0x6bd0c8], eax
call esi
mov dword [0x6bd0d0], eax
mov eax, dword [0x6bd0a4]
push str.Call_KsSetFocusWindow
push eax
call esi
mov ecx, dword [0x6bd0a4]
push str.Call_KW_GetControlByID
push ecx
mov dword [0x6bd0cc], eax
call esi
mov edx, dword [0x6bd0a4]
push str.Call_KC_GetAttribute
push edx
mov dword [0x6bd0d4], eax
call esi
mov dword [0x6bd0e8], eax
mov eax, dword [0x6bd0a4]
push str.Call_KC_SetAttribute
push eax
call esi
mov ecx, dword [0x6bd0a4]
push str.Call_KC_SendMessage
push ecx
mov dword [0x6bd0ec], eax
call esi
mov edx, dword [0x6bd0a4]
push str.Call_KW_ReLayout
push edx
mov dword [0x6bd0f0], eax
call esi
mov dword [0x6bd0d8], eax
mov eax, dword [0x6bd0a4]
push str.Call_KW_SetFocusControl
push eax
call esi
mov ecx, dword [0x6bd0a4]
push str.Call_KW_AddDirtyControl
push ecx
mov dword [0x6bd0dc], eax
call esi
mov edx, dword [0x6bd0a4]
push str.Call_KsRelease
push edx
mov dword [0x6bd0e0], eax
call esi
mov dword [0x6bd0b4], eax
push str.Call_KW_ShowWindow
mov eax, dword [0x6bd0a4]
push eax
call esi
mov dword [0x6bd0e4], eax
pop edi
pop esi
add esp, 0x10
ret