joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480110
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
call fcn.004800d0
test eax, eax
jne 0x48018f
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x6e94bc]
push eax
lea ecx, [ebp - 0x418]
push str.__ssteam.exe___silent
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.plug:scl:_tid_d_n
call fcn.005152d0
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00451ad0
add esp, 0x18
test eax, eax
je 0x480189
mov ecx, dword [ebp - 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x18]
push edx
call esi
pop esi
xor al, al
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x4800e0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], 0x1e
setae al
mov esp, ebp
pop ebp
ret

Function at 0x4801c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0x6e94bc], 0
push edi
mov edi, ecx
mov dword [ebp - 4], edi
jne 0x4801e1
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x404]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4801f0
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0047fed0
lea ecx, [ebp - 0x404]
push str._steamappscommon_
push ecx
call dword [sym.imp.msvcrt.dll_strstr]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x48022c
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xd74]
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x48025f
push eax
lea edx, [esi + 0xb]
push str.appmanifest__u.acf
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call ebx
test eax, eax
jne 0x480288
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xd78]
test eax, eax
je 0x480293
push eax
push str.appmanifest__u.acf
add esi, 0xb
push esi
call edi
add esp, 0xc
lea edx, [ebp - 0x404]
push edx
call ebx
test eax, eax
je 0x480293
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4802a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0x6e94bc], 0
push edi
mov edi, ecx
mov dword [ebp - 4], edi
je 0x480304
cmp dword [edi + 0xd74], 0
jne 0x4802ca
cmp dword [edi + 0xd78], 0
je 0x480304
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x404]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4802d5
lea eax, [ebp - 0x404]
push eax
call fcn.0047fed0
lea ecx, [ebp - 0x404]
push str._steamappscommon_
push ecx
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x48030d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0xd74]
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push ebx
push esi
push edx
lea esi, [eax + 0xb]
push str.appmanifest__u.acf
push esi
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call ebx
test eax, eax
je 0x48034f
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xd74]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xd78]
push eax
push str.appmanifest__u.acf
push esi
call edi
add esp, 0xc
lea ecx, [ebp - 0x404]
push ecx
call ebx
test eax, eax
je 0x480383
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xd78]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x480570
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x140
push ebx
lea eax, [ebp - 0x140]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x480599
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x480609
lea eax, [ebp - 0x114]
mov edx, eax
sub esi, edx
jmp 0x4805b0
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4805b0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call edi
test eax, eax
je 0x480608
nop
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x114]
push ecx
push edx
call sym.GameRanger.exe_int___cdecl_strcasecmp_char_const___char_const__
add esp, 8
test eax, eax
jns 0x4805fa
lea eax, [ebp - 0x114]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4805f0
lea eax, [ebp - 0x140]
push eax
push ebx
call edi
test eax, eax
jne 0x4805d0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4809a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0x20019
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4809d1
xor al, al
mov esp, ebp
pop ebp
ret 0x14
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0
push eax
push ecx
mov dword [ebp + 0xc], 0x400
call edi
mov esi, eax
test esi, esi
je 0x480a5f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x480a5f
cmp byte [eax], 0
je 0x480a5f
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp + 0xc], 0x400
call edi
mov esi, eax
test esi, esi
je 0x480a5f
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x480a5f
cmp byte [eax], 0
je 0x480a5f
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x408]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push edx
mov dword [ebp + 0xc], 0x400
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x480b7a
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x480a82
cmp eax, 2
jne 0x480b7a
cmp byte [ebp - 0x408], 0
je 0x480b7a
cmp eax, 2
jne 0x480ae2
xor eax, eax
jmp 0x480aa0
mov cl, byte [ebp + eax - 0x408]
mov byte [ebp + eax - 0x808], cl
inc eax
test cl, cl
jne 0x480aa0
push 0x400
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x480b7a
cmp eax, 0x400
ja 0x480b7a
push 0x400
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
mov esi, eax
test esi, esi
je 0x480b25
cmp esi, 0x400
jae 0x480b25
xor eax, eax
jmp 0x480b10
mov cl, byte [ebp + eax - 0x808]
mov byte [ebp + eax - 0x408], cl
inc eax
test cl, cl
jne 0x480b10
jmp 0x480b29
mov esi, dword [ebp + 0xc]
dec esi
cmp byte [ebp - 0x408], 0
je 0x480b63
cmp byte [ebp + esi - 0x409], 0x5c
je 0x480b63
lea edx, [ebp - 0x408]
push 0x606d18
push edx
call sym.GameRanger.exe_long_int___cdecl_strcasesuffix_char_const___char_const__
add esp, 8
test eax, eax
jne 0x480b63
mov byte [ebp + esi - 0x408], 0x5c
mov byte [ebp + esi - 0x407], al
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push eax
call fcn.00480950
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x481220
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
push 0
push 0x26
lea eax, [ebp - 0x104]
push eax
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x48124c
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
je 0x48125f
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push edx
lea eax, [ebp - 0x104]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x104]
push edx
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [ebp - 0x104]
push ecx
mov ecx, edi
call fcn.00480950
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x481a90
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push 0x400
lea eax, [ebp - 0x40c]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x40c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x481ae1
pop esi
mov eax, str.Not_found
pop ebx
mov esp, ebp
pop ebp
ret
push edi
cmp esi, 0x400
ja 0x481af2
lea edi, [ebp - 0x80c]
jmp 0x481aff
push esi
call fcn.00401148
mov ebx, eax
add esp, 4
mov edi, ebx
push edi
push esi
push 0
lea eax, [ebp - 0x40c]
mov edx, 0x3f
push eax
mov word [0x6e94f0], dx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x481b60
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x6055c4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x481b60
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
push edx
movzx edx, word [eax + 0x12]
push ecx
push edx
push str._u._u._u._u
push 0x6e94f0
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x18
pop edi
test ebx, ebx
je 0x481b6e
push ebx
call fcn.0040107c
add esp, 4
pop esi
mov eax, 0x6e94f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x481b80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x481bd9
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x481bcc
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482090
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x482181
push ebx
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x482174
mov edi, edi
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004804f0
test al, al
je 0x48214a
mov edx, dword [ebp - 0x12c]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x48214a
push 0x400
lea eax, [ebp - 0x534]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push esi
mov edi, eax
call ebx
test edi, edi
je 0x482147
mov ecx, dword [ebp - 8]
add ecx, 0x40b
push ecx
lea edx, [ebp - 0x534]
push edx
call fcn.004522e0
add esp, 8
test al, al
jne 0x482168
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4820e0
push edi
call ebx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x12c]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push edi
call ebx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x482190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push reloc.WS2_32.dll_accept
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4821e2
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push eax
mov byte [esi], al
mov eax, dword [ebp + 0xc]
push edx
push eax
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x482200
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x6e94e7], 0
push edi
mov edi, ecx
je 0x4822af
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4822a8
mov edx, dword [0x6e94ec]
test edx, edx
je 0x48228d
mov eax, edx
push esi
lea esi, [eax + 1]
jmp 0x482250
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482250
mov ecx, dword [ebp - 4]
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
add edi, 0x40b
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x6e94ec]
push edx
call fcn.0040107c
add esp, 4
mov dword [0x6e94ec], 0
pop esi
jmp 0x48229e
mov eax, dword [ebp - 4]
add edi, 0x40b
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x6e94e7], 0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4823a0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp byte [ebp + 0xc], 0
mov esi, eax
jne 0x4823fa
lea eax, [ebp - 8]
push eax
push 0x482320
mov byte [ebp - 8], 0
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_EnumWindows]
test esi, esi
je 0x48240e
cmp byte [ebp - 8], 0
je 0x4823fa
push 0
push 0
push 0
push 0
push esi
push 0x482360
call sub.MFC42.dll_AfxBeginThread
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x48240e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4824a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, ecx
cmp dword [ebx + 0xcd8], 0
je 0x482680
movzx eax, word [ebx + 8]
test ax, ax
je 0x4824cc
inc eax
mov word [ebx + 8], ax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xd88], 0
jne 0x482680
push esi
push edi
lea esi, [ebx + 0x80b]
mov ecx, 0x100
lea edi, [ebp - 0x400]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x400]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4824f5
mov ax, word [0x607dec]
lea ecx, [ebp - 0x400]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0xd88], eax
test eax, eax
je 0x48267e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SaveSettings
mov edx, 1
push eax
mov word [ebx + 8], dx
call esi
mov dword [ebx + 0xc90], eax
mov eax, dword [ebx + 0xd88]
push str.LoadSettings
push eax
call esi
mov ecx, dword [ebx + 0xd88]
push str.ShowHostOptions
push ecx
mov dword [ebx + 0xc94], eax
call esi
mov edx, dword [ebx + 0xd88]
push str.PreHost
push edx
mov dword [ebx + 0xc98], eax
call esi
mov dword [ebx + 0xc9c], eax
mov eax, dword [ebx + 0xd88]
push str.PreJoin
push eax
call esi
mov ecx, dword [ebx + 0xd88]
push str.PostHost
push ecx
mov dword [ebx + 0xca0], eax
call esi
mov edx, dword [ebx + 0xd88]
push str.PostJoin
push edx
mov dword [ebx + 0xca4], eax
call esi
mov dword [ebx + 0xca8], eax
mov eax, dword [ebx + 0xd88]
push str.PostCleanup
push eax
call esi
mov ecx, dword [ebx + 0xd88]
push str.GetHostOptions
push ecx
mov dword [ebx + 0xcac], eax
call esi
mov edx, dword [ebx + 0xd88]
push str.ServerInfo
push edx
mov dword [ebx + 0xcb0], eax
call esi
mov dword [ebx + 0xcb4], eax
mov eax, dword [ebx + 0xd88]
push str.ServerHeader
push eax
call esi
mov ecx, dword [ebx + 0xd88]
push str.ServerHeaderAttr
push ecx
mov dword [ebx + 0xcb8], eax
call esi
mov edx, dword [ebx + 0xd88]
push str.CheckIntegrity
push edx
mov dword [ebx + 0xcbc], eax
call esi
mov dword [ebx + 0xcc0], eax
mov eax, dword [ebx + 0xd88]
push str.PrepareInfoQuery
push eax
call esi
mov ecx, dword [ebx + 0xd88]
push str.ProcessInfoResp
push ecx
mov dword [ebx + 0xcc4], eax
call esi
mov edx, dword [ebx + 0xd88]
push str.PrepareHeaderQuery
push edx
mov dword [ebx + 0xcc8], eax
call esi
mov dword [ebx + 0xccc], eax
mov eax, dword [ebx + 0xd88]
push str.ProcessHeaderResp
push eax
call esi
mov dword [ebx + 0xcd0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4827e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call sym.GameRanger.exe_public:_unsigned_short_int___thiscall_CRecord::Read_uword_void_
movzx eax, ax
mov dword [esi + 0xd80], eax
test eax, eax
je 0x482876
mov ecx, edi
call sym.GameRanger.exe_public:_unsigned_short_int___thiscall_CRecord::Read_uword_void_
movzx ecx, ax
mov eax, dword [esi + 0xd80]
mov dword [esi + 0xd84], ecx
cmp ecx, eax
jb 0x48282d
push 0x637c4c
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
push ebx
push eax
call fcn.00401148
mov ecx, dword [esi + 0xd80]
add esp, 4
push ecx
mov dword [esi + 0xd7c], eax
mov ebx, dword [edi + 8]
push eax
mov ecx, edi
call sym.GameRanger.exe_public:_void___thiscall_CRecord::Read_data_void___unsigned_int_
xor eax, eax
cmp dword [esi + 0xd80], eax
jbe 0x482875
lea esp, [esp]
mov ecx, dword [esi + 0xd7c]
lea edx, [eax + ebx]
xor byte [ecx + eax], dl
inc eax
cmp eax, dword [esi + 0xd80]
jb 0x482860
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x482d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x410
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftDirectPlayApplicationsGameRanger_Launch
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x482e4b
push ebx
push esi
push edi
push str.____Begin_values:_n
call fcn.00481590
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 4
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
xor esi, esi
push esi
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
mov ebx, 0x200
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call edi
cmp eax, 0x103
je 0x482e2d
jmp 0x482d80
inc esi
test eax, eax
jne 0x482dea
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x482dd2
cmp eax, 2
jbe 0x482db4
cmp eax, 4
jne 0x482dd2
mov edx, dword [ebp - 0x410]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
push str._________u:__s:__08X_n
call fcn.00481590
add esp, 0x10
jmp 0x482df9
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x210]
push edx
push esi
push str._________u:__s:__s_n
call fcn.00481590
add esp, 0x10
jmp 0x482df9
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push str._________u:__s:_Type_u_n
call fcn.00481590
add esp, 0x10
jmp 0x482df9
push eax
push esi
push str._________u:_RegEnumValue_Error:__d_n
call fcn.00481590
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x210]
push edx
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call edi
cmp eax, 0x103
jne 0x482d80
push str.____End_values:_n
call fcn.00481590
mov ecx, dword [ebp - 4]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.____RegOpenKeyEx_failed:__d_n
call fcn.00481590
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x483210
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 0x60ce80
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 0x483255
mov ecx, dword [ebp - 4]
push str.GameRanger_Launch
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call ebx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x60ce80
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x483281
mov ecx, dword [ebp - 4]
push str.GameRanger_Launch
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x483290
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftDirectPlay8Applications_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4832cc
mov ecx, dword [ebp - 4]
push str.9853a461_efca_4d67_9d03_2b5d6e0d84fb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x483e80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, ecx
call fcn.004b9900
call fcn.004baea0
call fcn.0044cb80
call fcn.0044c570
mov ecx, esi
call fcn.00482420
add esi, 0x40b
push esi
call fcn.004521c0
add esp, 4
test al, al
jne 0x483f38
lea edx, [ebp - 0x104]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x483ec4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.wsock32.dll
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea edx, [ebp - 0x104]
push edx
call esi
test eax, eax
je 0x483f38
lea eax, [ebp - 0x104]
push eax
call fcn.004526a0
add esp, 4
test eax, eax
jne 0x483f20
lea ecx, [ebp - 0x104]
push ecx
call esi
test eax, eax
je 0x483f38
push str.___Please_delete_the_custom_wsock32.dll_file_from_your_game_folder____r
push 5
push 0
call fcn.004adea0
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret