joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5154c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0
push 0x8000000
push 3
push 0
push 0
push closesocket
mov dword [eax], 0
push ecx
mov dword [ebp], 0
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5154fc
pop esi
xor al, al
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x51551a
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x515545
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x515553
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
ret
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.00515450
test al, al
jne 0x515573
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
ret
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
pop ebx
mov dword [ebp], edi
pop edi
pop esi
mov al, 1
pop ebp
ret
Function at 0x51ddd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x713ac4]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 0
mov dword [esp + 0xc], 4
jle 0x51de19
nop
mov eax, dword [0x713ac0]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0x2d
jne 0x51de0f
push eax
push str._nogamma
call fcn.006241cb
add esp, 8
test eax, eax
je 0x51de32
mov eax, dword [0x713ac4]
inc esi
cmp esi, eax
jl 0x51ddf0
mov eax, dword [0x70b434]
test eax, eax
jne 0x51de32
mov eax, dword [0x714784]
test eax, eax
mov byte [0x70ee14], 0
je 0x51de39
mov byte [0x70ee14], 1
mov ecx, dword [0x7b294c]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
shr ecx, 0x11
push str.SoftwareMicrosoftMicrosoft_GamesHalo
and cl, 1
push closesocket
mov byte [0x6dadb8], 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 0x51ded7
xor eax, eax
jmp 0x51deb0
mov ecx, eax
shl ecx, 8
mov word [eax*2 + 0x6da1b8], cx
mov word [eax*2 + 0x6da3b8], cx
mov word [eax*2 + 0x6da5b8], cx
inc eax
cmp eax, 0x100
jl 0x51deb0
jmp 0x51df02
mov ecx, dword [0x737dc8]
push edi
push ecx
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push 0x6da1b8
push edi
call dword [sym.imp.gdi32.dll_GetDeviceGammaRamp]
mov edx, dword [0x737dc8]
push edi
push edx
call dword [sym.imp.user32.dll_ReleaseDC]
pop edi
mov eax, 0x6da1b8
call fcn.0051e140
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
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 [0x70ee18], 1
pop esi
add esp, 0xc
ret
Function at 0x51df70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov al, byte [0x70ee14]
test al, al
mov dword [esp], 0
jne 0x51e03e
mov eax, dword [0x70ee18]
test eax, eax
je 0x51e03e
cmp byte [0x6dadb8], 1
jne 0x51dfc2
mov al, byte [0x70ed9c]
test al, al
je 0x51dfc2
mov eax, dword [0x70eda0]
test eax, eax
je 0x51dfc2
mov ecx, dword [eax]
push 0x6da1b8
push 0
push 0
push eax
call dword [ecx + 0x54]
add esp, 8
ret
mov edx, dword [0x737dc8]
push esi
push edx
call dword [sym.imp.user32.dll_GetDC]
mov esi, eax
push 0x6da1b8
push esi
call dword [sym.imp.gdi32.dll_SetDeviceGammaRamp]
mov eax, dword [0x737dc8]
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
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 0x534010
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.0061ed33
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 0x5340db
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.0061ed33
push edi
push esi
lea ecx, [esp + 0x20]
push str._s_s.bin
push ecx
call fcn.0061ed33
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.0061ed33
push ebp
push esi
lea edx, [esp + 0x120]
push str._s_s.sav
push edx
call fcn.0061ed33
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 0x534b60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov al, byte [0x6dc6a0]
push ebx
xor bl, bl
test al, al
je 0x534b8e
mov al, byte [0x6dc6a0]
test al, al
je 0x534b8e
push esi
mov esi, dword [sym.imp.kernel32.dll_Sleep]
lea ecx, [ecx]
push 0
call esi
mov al, byte [0x6dc6a0]
test al, al
jne 0x534b80
pop esi
mov eax, dword [0x6dc498]
push 0
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x534bdb
mov edx, dword [0x6dc490]
mov eax, dword [0x6dc48c]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x6dc498]
push edx
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x534bdb
mov edx, dword [esp + 4]
cmp edx, dword [0x6dc490]
jne 0x534bdb
mov al, 1
pop ebx
pop ecx
ret
push 1
push 0x8c
push 0x8b
call fcn.0057a2d0
add esp, 0xc
mov al, bl
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x404
push ebx
push esi
push 0
push 0x6dc59c
xor bl, bl
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x410]
push eax
push 0x6dc59c
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call fcn.0061ed33
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 0x534c7d
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 0x534c7d
cmp dword [esp + 8], edi
jne 0x534c7d
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 0x534c90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push ebx
push esi
push eax
push 0x6dc59c
lea ecx, [esp + 0x14]
push str._s_s
push ecx
xor bl, bl
call fcn.0061ed33
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 0x534cf9
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 0x534cf9
cmp dword [esp + 8], edi
jne 0x534cf9
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 0x534d10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push esi
push eax
push 0x6dc59c
lea ecx, [esp + 0x10]
push str._s_s
push ecx
call fcn.0061ed33
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 0x534d74
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 0x534d74
cmp dword [esp + 4], edi
je 0x534d88
push 1
push 0x8c
push 0x8b
call fcn.0057a2d0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
add esp, 0x404
ret
Function at 0x534da0
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x20114
call fcn.00623680
push ebp
mov ebp, dword [esp + 0x2011c]
push esi
push edi
push 0
mov esi, ecx
mov edi, edx
call fcn.00535110
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 0x534dd9
mov byte [ecx], dl
cmp eax, 0xffffffff
je 0x534f2c
push 0
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x534ef8
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 0x534ef8
cmp dword [esp + 0x18], edi
jne 0x534ef8
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.004ce610
sub esi, edi
add esp, 0xc
test esi, esi
jle 0x534ea5
lea esp, [esp]
cmp esi, 0x20000
mov edi, esi
jb 0x534e5f
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 0x534e9a
cmp dword [esp + 0x18], edi
jne 0x534e9a
push edi
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004ce610
add esp, 0xc
call fcn.00545300
sub esi, edi
test esi, esi
jg 0x534e50
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
jne 0x534ecd
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 0x534f13
test ecx, ecx
je 0x534f13
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 [0x706c74]
lea esi, [esp + 0x20]
call fcn.005388b0
test al, al
je 0x534f13
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 0x534f40
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.00535110
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x535078
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.004ce610
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 0x535025
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 0x535025
mov edx, dword [ebp + 0x10]
cmp dword [esp + 0xc], edx
jne 0x535025
push 0
push 0
push 0
push ebx
call edi
cmp eax, 0xffffffff
je 0x535025
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 0x535028
cmp dword [esp + 0xc], edi
je 0x535057
jmp 0x535028
mov edi, dword [ebp + 0xc]
push 1
push 0x8c
push 0x8b
call fcn.0057a2d0
mov eax, dword [0x706c74]
add esp, 0xc
lea esi, [esp + 0x10]
call fcn.005388b0
test al, al
je 0x535057
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 0x535046
Capabilities:
Delete file

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.00535110
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x535078
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.004ce610
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 0x535025
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 0x535025
mov edx, dword [ebp + 0x10]
cmp dword [esp + 0xc], edx
jne 0x535025
push 0
push 0
push 0
push ebx
call edi
cmp eax, 0xffffffff
je 0x535025
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 0x535028
cmp dword [esp + 0xc], edi
je 0x535057
jmp 0x535028
mov edi, dword [ebp + 0xc]
push 1
push 0x8c
push 0x8b
call fcn.0057a2d0
mov eax, dword [0x706c74]
add esp, 0xc
lea esi, [esp + 0x10]
call fcn.005388b0
test al, al
je 0x535057
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 0x535080
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x104
push esi
push edi
push 0
mov esi, eax
call fcn.00535110
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x535104
push 0
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5350ce
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 0x5350ce
cmp dword [esp + 8], esi
je 0x5350fd
push 1
push 0x8c
push 0x8b
call fcn.0057a2d0
mov eax, dword [0x706c74]
add esp, 0xc
lea esi, [esp + 0xc]
call fcn.005388b0
test al, al
je 0x5350fd
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 0x535110
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4204
call fcn.00623680
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
jne 0x535250
mov eax, dword [0x706c74]
lea esi, [esp + 0x10]
call fcn.005388b0
test al, al
je 0x535246
mov eax, dword [0x706c74]
call fcn.005388b0
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x535153
mov eax, dword [str.savegame.bin]
mov ecx, dword [0x66a5e8]
mov edx, dword [0x66a5ec]
push 0
push 0
push 4
mov dword [edi], eax
mov al, byte [0x66a5f0]
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 0x535246
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0x480000
je 0x535265
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 0x53520d
cmp dword [esp + 0xc], 0x4000
jne 0x53520d
push 0
push 0
push 0x480000
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x53520d
push ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x535265
push 1
push 0x8c
push 0x8b
call fcn.0057a2d0
mov eax, dword [0x706c74]
add esp, 0xc
lea esi, [esp + 0x110]
call fcn.005388b0
test al, al
je 0x53523f
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 0x535256
jmp 0x53514e
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5386b0
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.00539910
add esp, 8
test al, al
je 0x5388a4
mov esi, dword [ebp + 8]
test esi, esi
je 0x5388a4
cmp word [esi], 0
je 0x5388a4
lea edx, [esp + 0x310]
push esi
push edx
call fcn.00623165
add esp, 8
test eax, eax
je 0x5388a4
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, 0x713179
call fcn.0054d0d0
test eax, eax
jne 0x5388a4
movsx eax, word [esp + 0x410]
sub eax, 0
je 0x5387ac
dec eax
je 0x538769
xor bl, bl
jmp 0x538898
push str.blam.lst
lea ecx, [esp + 0x114]
push ecx
push 0x66582c
lea edx, [esp + 0x1c]
push 0xff
push edx
call fcn.0061f0cd
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 0x538825
push str.blam.sav
lea edx, [esp + 0x114]
push edx
push 0x66582c
lea eax, [esp + 0x1c]
push 0xff
push eax
call fcn.0061f0cd
push 0xff
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x434]
push edx
mov byte [esp + 0x12f], 0
call fcn.0061f130
lea eax, [esp + 0x438]
push str.blam.sav
push eax
call fcn.00620ad0
add esp, 0x28
test eax, eax
je 0x53882c
lea ecx, [esp + 0x110]
push ecx
lea esi, [esp + 0x41c]
mov byte [eax], 0
call fcn.005383a0
mov esi, dword [ebp + 8]
add esp, 4
mov bl, al
cmp bl, 1
jne 0x538894
lea eax, [esp + 0x310]
mov ecx, 0x713179
call fcn.0054d360
push 0xff
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x218]
push eax
call fcn.0061f130
push 0x7f
lea ecx, [esp + 0x320]
push esi
push ecx
mov byte [esp + 0x327], 0
call fcn.00622e84
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x228]
push edx
push eax
mov word [esp + 0x42e], 0
call fcn.00539a20
add esp, 0x20
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x5388a4
mov eax, esi
mov ecx, 0x713179
call fcn.0054d360
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x538950
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 0x713179
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x538998
mov eax, dword [esp + 8]
test eax, eax
ja 0x538998
jb 0x53898b
cmp dword [esp + 4], 0x2800000
jae 0x538998
mov eax, 1
pop ebx
add esp, 0x35c
ret
push esi
push edi
push 0x713179
lea eax, [esp + 0x28]
call fcn.0054d580
mov esi, eax
cmp esi, 0xffffffff
mov edi, 1
je 0x5389f9
cmp edi, 0x3e7
jae 0x5389cc
lea eax, [esp + 0x24]
mov ecx, esi
inc edi
call fcn.0054d700
cmp al, 1
je 0x5389b4
test esi, esi
je 0x5389e2
mov eax, esi
call fcn.0054d090
test al, al
je 0x5389e2
push esi
call dword [sym.imp.kernel32.dll_FindClose]
cmp edi, 0x3e7
jb 0x5389f9
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 0x53ca60
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 0x53ca8e
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 0x53caaf
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 0x53cada
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 0x53caeb
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 0x53cad3
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push ebx
push edi
call fcn.00615ed0
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 0x53cb20
xor dword [eax], 0x524f4752
add eax, 4
lea edx, [ecx + eax]
cmp edx, 0x21
jb 0x53cb20
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 0x53cb33
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 0x53cae1
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 0x53d530
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 1
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x53d548
mov eax, dword [0x737dc4]
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 0x53d58a
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x53d590
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push eax
push edx
mov bl, 1
call fcn.0061f130
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