joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451e50
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
push esi
push str.TEMP
call edi
test eax, eax
je 0x451e93
cmp eax, ebx
jae 0x451e93
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00441510
add esp, 4
test al, al
je 0x451e93
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x606d0c
call edi
test eax, eax
je 0x451eba
cmp eax, ebx
jae 0x451eba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00441510
add esp, 4
test al, al
jne 0x451e8a
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 1
push 0x1c
push esi
push 0
call edi
test eax, eax
je 0x451eea
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451ed2
sub eax, edx
je 0x451eea
push esi
call fcn.00441510
add esp, 4
test al, al
jne 0x451e8a
push 1
push 0x1a
push esi
push 0
call edi
test eax, eax
je 0x451f1c
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451f00
sub eax, edx
je 0x451f1c
push esi
call fcn.00441510
add esp, 4
test al, al
jne 0x451e8a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x451f42
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00441510
add esp, 4
test al, al
jne 0x451e8a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x4521ef
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4524f0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
mov esi, 0xa
call ebx
test eax, eax
jne 0x452527
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
mov ecx, eax
je 0x45252c
call fcn.004523c0
test al, al
je 0x45252c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
test eax, eax
je 0x452504
pop esi
xor eax, eax
pop ebx
ret
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x452540
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
push edi
mov esi, 0xa
call ebx
test eax, eax
jne 0x452577
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
mov ecx, eax
je 0x45257c
call fcn.004523c0
test al, al
je 0x45257c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
test eax, eax
je 0x452554
pop esi
xor eax, eax
pop ebx
ret
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x452590
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov ax, word [0x606d28]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov word [ebx], ax
mov cl, byte [0x606d2a]
lea edx, [ebp - 0x144]
push edx
xor esi, esi
mov byte [ebx + 2], cl
push edi
mov dword [ebp - 4], esi
inc ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x45267f
cmp byte [ebp - 0x118], 0x2e
jne 0x4525f4
mov al, byte [ebp - 0x117]
test al, al
je 0x45265c
cmp al, 0x2e
jne 0x4525f4
cmp byte [ebp - 0x116], 0
je 0x45265c
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.0045b740
mov esi, eax
mov eax, dword [ebp - 0x144]
add esp, 8
test al, 1
je 0x452621
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x452631
push esi
push edi
call fcn.00452590
add esp, 8
jmp 0x45264f
lea eax, [ebp - 0x118]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x452640
call fcn.004524f0
test eax, eax
je 0x45265c
cmp dword [ebp - 4], 0
jne 0x45265c
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x144]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4525d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 4]
mov byte [ebx], 0
call fcn.00452540
test eax, eax
je 0x45268f
test esi, esi
je 0x452691
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4526a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x404
test eax, eax
je 0x452745
cmp byte [eax], 0
je 0x452745
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0045b740
mov esi, eax
mov al, byte [esi - 1]
add esp, 8
cmp al, 0x5c
je 0x4526db
cmp al, 0x2f
jne 0x4526df
dec esi
mov byte [esi], 0
push ebx
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4526ff
pop ebx
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x452717
mov edx, ebx
and edx, 0xfffffffe
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 0x10
jne 0x45272f
push edi
lea edi, [ebp - 0x404]
call fcn.004524f0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x404]
push esi
push ecx
call fcn.00452590
add esp, 8
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xa1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004526a0
Function at 0x452770
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x400]
mov ecx, 0x100
mov esi, ebx
lea edi, [ebp - 0x400]
push eax
rep movsd dword es:[edi], dword [esi]
call sym.GameRanger.exe_void___cdecl_StripFileFromPath_struct_FileSpec__
mov eax, dword [ebp + 0xc]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4527a2
lea edi, [ebp - 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4527b2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x400]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4527e5
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret

Function at 0x4527f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret

Function at 0x452830
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 8], ebx
xor edi, edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x45285f
pop edi
pop esi
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x400
ja 0x452872
lea edx, [ebp - 0x410]
mov dword [ebp - 4], edx
jmp 0x452881
push esi
call fcn.00401148
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4528c0
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push 0x6055c4
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4528c0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edi, edi
xor eax, eax
or edi, edx
or ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4528d0
push eax
call fcn.0040107c
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x452aea
test al, 1
je 0x452aea
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x452b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0x606d40
push eax
call sym.GameRanger.exe_struct__iobuf____cdecl_fopen_FileSpec_struct_FileSpec_const___char_const__
mov esi, eax
add esp, 8
test esi, esi
jne 0x452b6e
pop esi
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.msvcrt.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.msvcrt.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
lea ecx, [ebx + 1]
push ecx
call fcn.00401148
mov edi, eax
add esp, 0x20
test edi, edi
je 0x452bb1
push esi
push 1
push ebx
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
mov byte [edi + ebx], 0
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x452d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00452060
push str.GameRanger_Prefs
push esi
call fcn.00452c50
add esp, 0xc
test eax, eax
je 0x452d73
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call sym.GameRanger.exe_void___cdecl_SetAsDirectory_struct_FileSpec__
push str.GameRanger_
push esi
call fcn.00452bd0
push str.GameRangerGameRanger_Prefs
push esi
call fcn.00452bd0
push str.GameRangerGameRanger_Prefs
push esi
call fcn.00452c50
add esp, 0x1c
test eax, eax
je 0x452d73
push esi
call fcn.00452060
add esp, 4
pop esi
pop ebp
ret

Function at 0x4535d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x400]
mov ecx, 0x100
lea edi, [ebp - 0x400]
push eax
rep movsd dword es:[edi], dword [esi]
call ebx
push str.SaveGameMulti
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45363a
lea ecx, [ebp - 0x400]
push ecx
call fcn.004534f0
add esp, 4
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x400]
mov ecx, 0x100
lea edi, [ebp - 0x400]
push edx
rep movsd dword es:[edi], dword [esi]
call ebx
lea eax, [ebp - 0x400]
push eax
call ebx
push str.SaveGameMulti
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x45369e
lea ecx, [ebp - 0x400]
push ecx
call fcn.004534f0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x453ae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
mov ecx, dword [0x6a318c]
je 0x453af5
pop ebp
jmp fcn.0044f1c0
pop ebp
jmp fcn.0044f240
Function at 0x453de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
mov eax, esi
or eax, dword [ebp + 0xc]
jne 0x453df8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x453df1
cmp dword [ebp - 0xc], 0x1000
jne 0x453df1
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x453df1
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x453df1
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x453df1
mov ecx, dword [esi + eax + 0xc]
sub ecx, 2
jne 0x453df1
push edi
mov edi, dword [esi + eax + 0x14]
test edi, edi
je 0x453e72
mov eax, dword [edi + esi]
cmp eax, 0x3031424e
je 0x453ef4
cmp eax, 0x53445352
je 0x453e7a
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + esi + 0x14]
movzx ecx, byte [edi + esi + 0x13]
movzx edx, byte [edi + esi + 0x12]
push eax
movzx eax, byte [edi + esi + 0x11]
push ecx
movzx ecx, byte [edi + esi + 0x10]
push edx
movzx edx, byte [edi + esi + 0xf]
push eax
movzx eax, byte [edi + esi + 0xe]
push ecx
movzx ecx, byte [edi + esi + 0xd]
push edx
movzx edx, byte [edi + esi + 0xc]
push eax
movzx eax, word [edi + esi + 0xa]
push ecx
movzx ecx, word [edi + esi + 8]
push edx
mov edx, dword [edi + esi + 4]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X_X
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x38
lea ecx, [edi + esi + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, dword [ebp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x453ee2
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + esi + 0xc]
mov eax, dword [edi + esi + 8]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push str._X_X
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea edx, [edi + esi + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, dword [ebp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x453f20
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x455250
Capabilities:
Allocate or change rwx memory
Check if file exists
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x750
push edi
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x455272
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push ebx
push eax
push edi
call fcn.00455180
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45528f
lea eax, [ebx + 2]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4552a9
pop ebx
mov eax, 3
pop edi
mov esp, ebp
pop ebp
ret
push 0x606f50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4552c4
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, edi
push esi
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4552d0
sub ecx, esi
lea esi, [ecx + 1]
mov cl, 0x68
push esi
mov byte [ebp - 0x484], cl
mov byte [ebp - 0x47d], cl
lea ecx, [ebp - 0x467]
push edi
push ecx
mov word [ebp - 0x47f], 0x609c
mov byte [ebp - 0x478], 0xb8
mov dword [ebp - 0x477], eax
mov word [ebp - 0x473], 0xd0ff
mov byte [ebp - 0x471], 5
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x46c], 0x9d61d0ff
mov byte [ebp - 0x468], 0xc3
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push ebx
add esi, 0x1d
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x455356
pop esi
pop ebx
mov eax, 6
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push 0x40
push 0x1000
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x45544f
push 0x2cc
lea eax, [ebp - 0x750]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x750]
push ecx
push ebx
mov dword [ebp - 0x750], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x455423
mov edx, dword [ebp - 0x698]
push 0
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x484]
push ecx
push edi
lea eax, [edi + 0x1d]
push esi
mov dword [ebp - 0x483], edx
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x698], edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45541a
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea edx, [ebp - 0x750]
push edx
push ebx
mov dword [ebp - 0x750], 0x10007
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x455411
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xa
jmp 0x45542d
mov dword [ebp - 4], 9
jmp 0x45542d
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 8
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov esi, 7
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x455470
Capabilities:
Allocate or change rwx memory
Check if file exists
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x455492
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push ebx
push eax
push edi
call fcn.00455180
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4554af
lea eax, [ebx + 2]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4554c9
pop ebx
mov eax, 3
pop edi
mov esp, ebp
pop ebp
ret
push 0x606f50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4554e4
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, edi
push esi
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4554f0
sub ecx, esi
lea esi, [ecx + 1]
push esi
lea ecx, [ebp - 0x46c]
push edi
push ecx
mov byte [ebp - 0x484], 0x68
mov byte [ebp - 0x47f], 0xb8
mov dword [ebp - 0x47e], eax
mov word [ebp - 0x47a], 0xd0ff
mov byte [ebp - 0x478], 5
mov dword [ebp - 0x477], ebx
mov dword [ebp - 0x473], 0xc033d0ff
mov word [ebp - 0x46f], 0x4c2
mov byte [ebp - 0x46d], dl
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp + 8]
add esp, 0xc
push 0x40
push 0x1000
lea edi, [esi + 0x18]
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x455625
push 0
push edi
lea eax, [ebp - 0x484]
push eax
push esi
lea edx, [esi + 0x18]
push ebx
mov dword [ebp - 0x483], edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x455608
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0
push 0
push 0
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x4555eb
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov edi, eax
neg edi
sbb edi, edi
push ecx
and edi, 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push ebx
mov edi, 0xb
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push ebx
mov edi, 9
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
pop esi
mov edi, 7
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4557a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 1
push 0x1a
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.GameRangerGameRanger
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea edx, [ebp - 0x208]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x208]
push edx
call sym.GameRanger.exe_long_int___cdecl_strcaseprefix_char_const___char_const__
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x455850
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x455895
mov ecx, dword [ebp - 4]
push 0x604348
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call ebx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SOFTWARE_
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x4558c1
mov ecx, dword [ebp - 4]
push 0x604348
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call ebx
call fcn.00450a60
call fcn.00483210
call fcn.00483290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4558e0
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
lea eax, [ebp - 0x158]
push 0x104
push eax
call fcn.00451e50
add esp, 8
test al, al
je 0x455a21
push str.GameRanger_Uninst_Cleanup.bat
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
push 1
push 0x1a
lea ecx, [ebp - 0x360]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x455a21
push esi
lea edx, [ebp - 0x158]
push 0x6070e4
push edx
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x455a20
push edi
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
push str.:Repeat_n
push esi
call edi
push str.rmdir__s__q__GameRangerGameRanger__n
push esi
call edi
push str.if_exist__GameRangerGameRanger__goto_Repeat_n
push esi
call edi
add esp, 0x18
cmp byte [ebp + 8], 0
je 0x4559b1
push str.:Repeat2_n
push esi
call edi
push str.rmdir__s__q__GameRangerGameRanger_Prefs__n
push esi
call edi
push str.if_exist__GameRangerGameRanger_Prefs__goto_Repeat2_n
push esi
call edi
push str.rmdir__q__GameRanger__n
push esi
call edi
add esp, 0x20
lea eax, [ebp - 0x25c]
push eax
push str.del___s__n
push esi
call edi
push esi
call dword [sym.imp.msvcrt.dll_fclose]
push 0x44
lea ecx, [ebp - 0x54]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0x1c
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x360]
push ecx
push 0
push 0x8000000
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x158]
push edx
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
test eax, eax
je 0x455a20
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret