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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGameRanger
push reloc.WS2_32.dll_accept
call edi
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x455a95
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
mov ecx, ebx
push str.EstimatedSize
shr ecx, 0xa
push eax
mov dword [ebp - 8], ecx
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_ManagementARPCacheGameRanger
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x455bb3
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0xc]
push edx
xor edi, edi
push edi
push str.SlowInfoCache
push eax
mov dword [ebp - 8], 0x228
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x455b0d
cmp dword [ebp - 0xc], 3
jne 0x455ba9
cmp dword [ebp - 8], 0x228
jne 0x455ba9
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], edi
jmp 0x455b78
cmp eax, 0xea
je 0x455ba9
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x248], 0x228
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
push 0xb
push 0x604348
push edi
push edi
mov dword [ebp - 0x230], 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 4]
push 0x228
lea edx, [ebp - 0x248]
push edx
push 3
push edi
push str.SlowInfoCache
push eax
mov dword [ebp - 0x10], edi
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push edi
push str.Changed
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455bc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGameRanger
push reloc.WS2_32.dll_accept
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x455c4e
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.EstimatedSize
push ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x455c44
cmp dword [ebp - 0x10], 4
jne 0x455c44
cmp dword [ebp - 8], 0x80000
jbe 0x455c44
shr dword [ebp - 8], 0xa
push 4
lea edx, [ebp - 8]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.EstimatedSize
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 4]
push edx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_ManagementARPCacheGameRanger
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x455d08
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.SlowInfoCache
mov edi, 0x228
push eax
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
jne 0x455cfe
cmp dword [ebp - 0x10], 3
jne 0x455cfe
cmp dword [ebp - 0xc], edi
jne 0x455cfe
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x230]
test eax, eax
jne 0x455cb8
cmp ecx, 0x20000000
jbe 0x455cfe
mov edx, dword [ebp - 4]
shrd ecx, eax, 0xa
push edi
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x238]
push ecx
push 3
push 0
push str.SlowInfoCache
shr eax, 0xa
push edx
mov dword [ebp - 8], 1
mov dword [ebp - 0x22c], eax
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Changed
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0xff
push esi
push edi
jne 0x455f89
cmp byte [ebx + 1], 0x25
jne 0x455f89
mov eax, dword [ebx + 2]
mov ebx, dword [eax]
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 1], esi
lea edi, [ebx + 1]
je 0x455fd3
lea ecx, [ebp + 8]
push ecx
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x455fd3
sub esi, edi
sub esi, 4
mov dword [edi], esi
lea edx, [ebp + 8]
push edx
mov byte [ebx], 0xe9
mov eax, dword [ebp + 8]
push eax
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x455fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x455ffe
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 4]
push edx
push 0x40
push 5
push esi
call edi
test eax, eax
je 0x45604d
mov ecx, dword [ebp + 0x10]
mov eax, esi
inc esi
sub ecx, esi
sub ecx, 4
mov dword [esi], ecx
lea edx, [ebp - 4]
push edx
mov byte [eax], 0xe9
mov eax, dword [ebp - 4]
push eax
push 5
push esi
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x456700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test ebx, ebx
jne 0x45672a
push str.ERROR_InterceptAPI_Entry:_NULL_curProc_supplied_n
call fcn.00450df0
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00456690
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jns 0x456753
mov eax, dword [ebp + 0x14]
push eax
push str.ERROR_InterceptAPI_Entry:_Unknown_preamble_for__s_n
call fcn.00450df0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp + 8]
push ecx
lea edi, [eax + 5]
push 0x40
push edi
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edx, esi
push edx
lea eax, [ebp - 0x208]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov edi, ebx
test eax, eax
jle 0x4567d8
mov al, byte [edi]
cmp al, 0xe8
je 0x4567ab
cmp al, 0xe9
je 0x4567ab
push edi
call fcn.00456060
add esp, 4
test eax, eax
je 0x4567cc
jmp 0x4567a0
mov cl, byte [edi]
mov byte [esi], cl
inc esi
inc edi
dec eax
jne 0x4567a0
jmp 0x4567cc
mov eax, dword [edi + 1]
sub eax, esi
add eax, edi
lea edx, [eax + esi + 5]
cmp edx, dword [ebp + 0xc]
je 0x456841
mov cl, byte [edi]
mov byte [esi], cl
mov dword [esi + 1], eax
add esi, 5
add edi, 5
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp - 4]
jl 0x456784
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [esi], 0xe9
inc esi
sub eax, esi
lea edx, [eax + ebx - 4]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
mov dword [esi], edx
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
push edx
push eax
call esi
lea ecx, [ebp + 8]
push ecx
push 0x40
push 5
push ebx
call esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 1]
sub ecx, eax
sub ecx, 4
mov byte [ebx], 0xe9
lea edx, [ebp + 8]
push edx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
push ecx
push 5
push eax
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
push ecx
push str.ERROR_Repatching__s_n
call fcn.00450df0
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
push esi
lea edx, [ebp - 0x208]
push edx
push edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp + 8]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4568c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4568dd
push str.ERROR_InterceptAPI_Entry_Restore:_NULL_curProc_supplied_n
call fcn.00450df0
add esp, 4
xor eax, eax
pop edi
pop ebp
ret
cmp byte [edi], 0xe9
je 0x4568f4
push str.ERROR_InterceptAPI_Entry_Restore:_Patch_jump_has_been_removed__n
call fcn.00450df0
add esp, 4
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
lea esi, [edi + 1]
sub eax, esi
sub eax, 4
cmp dword [esi], eax
je 0x456917
push str.ERROR_InterceptAPI_Entry_Restore:_newProc_has_been_replaced_by_something_else__n
call fcn.00450df0
add esp, 4
pop esi
xor eax, eax
pop edi
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 8]
push ecx
push 0x40
push 5
push esi
call ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov al, byte [eax + 4]
lea ecx, [ebp + 8]
push ecx
push edx
push 5
push esi
mov byte [edi + 4], al
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop ebx
pop esi
mov eax, 1
pop edi
pop ebp
ret

Function at 0x4569a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
test eax, eax
je 0x4569f9
push esi
push 0x90
push edi
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push esi
push edi
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.WARN_InterceptAPI_NOP_Code:_VirtualProtect_failed_n
call fcn.00450df0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456d90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x456dc2
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x456dbf
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
pop esi
pop ebp
ret
or eax, 0xffffffff
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
pop esi
pop ebp
ret
Function at 0x456f60
Capabilities:
Terminate process

Disassembly:
call fcn.00475130
test al, al
jne 0x456f6e
jmp 0x5171e0
ret
mov eax, dword [0x717ef8]
test eax, eax
je 0x517212
cmp dword [eax + 0x20], 0
je 0x517212
push str.MF:Q1_n
call fcn.005152d0
mov eax, dword [0x717ef8]
mov ecx, dword [eax + 0x20]
add esp, 4
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
ret
push str.MF:Q2_n
call fcn.005152d0
call fcn.0051fb90
push str.MF:Q2__n
call fcn.005152d0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x457420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
lea edx, [eax + 1]
jmp 0x457430
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457430
sub eax, edx
mov edi, eax
lea eax, [edi + ebx + 1]
call fcn.00524960
mov eax, dword [ebp + 8]
mov esi, esp
push ebx
push eax
push esi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0xc]
inc edi
push edi
push ecx
lea edx, [esi + ebx]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0x18
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x457b20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x457b83
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457b40
sub eax, edx
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub eax, esi
mov edi, edi
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x457b60
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebp
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
ret

Function at 0x457c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SOFTWAREGameRanger_
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x457c78
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Bundle
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x457c67
cmp dword [ebp - 0x10], 4
je 0x457c6e
mov dword [ebp - 4], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x457cf0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x804]
push edx
xor eax, eax
mov esi, 0x400
push 3
mov word [ebp - 0x804], ax
mov dword [ebp - 4], esi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x457d35
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, dword [ebp + 8]
xor edx, edx
push edx
push edx
push 0x100
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push edx
push 0xfde9
mov word [ebp - 0x784], dx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.admin
push esi
call sym.GameRanger.exe_long_int___cdecl_strcaseprefix_char_const___char_const__
add esp, 8
test eax, eax
jne 0x457d82
push str.owner
push esi
call sym.GameRanger.exe_int___cdecl_strcasecmp_char_const___char_const__
add esp, 8
test eax, eax
jne 0x457d85
mov byte [esi], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4587b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 7
push str.http:__
push esi
call fcn.0045b630
add esp, 0xc
test eax, eax
je 0x4587fa
push 8
push str.https:__
push esi
call fcn.0045b630
add esp, 0xc
test eax, eax
je 0x4587fa
push ebx
push esi
push str.https:__
mov ebx, 8
call fcn.00457420
add esp, 8
pop ebx
test al, al
jne 0x458825
jmp 0x458813
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x458825
push str.GameRanger_was_unable_to_open_your_web_browser._Your_web_browser_may_not_be_installed_correctly.
push 0x607640
call fcn.00458400
add esp, 8
pop esi
pop ebp
ret

Function at 0x458830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 7
push str.mailto:
push esi
call fcn.0045b630
add esp, 0xc
test eax, eax
je 0x458866
push ebx
push esi
push str.mailto:
mov ebx, 7
call fcn.00457420
add esp, 8
pop ebx
test al, al
jne 0x458891
jmp 0x45887f
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x458891
push str.GameRanger_was_unable_to_open_your_email_application._Your_email_application_may_not_be_installed_correctly.
push str.Unable_to_Email_Application
call fcn.00458400
add esp, 8
pop esi
pop ebp
ret
Function at 0x4588a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0045a520
add esp, 4
test eax, eax
je 0x4588fe
lea edx, [ebp - 0x800]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4588c2
mov eax, esi
mov edx, esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4588d0
push edi
lea edi, [ebp - 0x800]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4588e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x800]
pop edi
push 7
push str.http:__
push esi
call fcn.0045b630
add esp, 0xc
test eax, eax
je 0x458978
push 8
push str.https:__
push esi
call fcn.0045b630
add esp, 0xc
test eax, eax
je 0x458978
push 7
push str.mailto:
push esi
call fcn.0045b630
add esp, 0xc
test eax, eax
jne 0x458948
push esi
call fcn.00458830
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x458981
push str.GameRanger_was_unable_to_open_the_URL.
push str.Unable_to_Open_URL
call fcn.00458400
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004587b0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov dword [ecx], eax
mov eax, 1
mov edx, ecx
push esi
mov esi, dword [edx]
mov ebx, esi
shr ebx, 0x1e
xor ebx, esi
imul ebx, ebx, 0x6c078965
add ebx, eax
mov dword [edx + 4], ebx
inc eax
add edx, 4
cmp eax, 0x270
jl 0x459311
pop esi
mov dword [ecx + 0x9c0], 1
mov dword [ecx + 0x9c4], 1
pop ebx
pop ebp
ret 4

Function at 0x459430
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c4], 0
push esi
push edi
mov esi, ecx
jne 0x459447
push 0x1571
call fcn.00459300
mov dword [ecx + 0x9c0], 0x270
mov dword [ecx + 0x9c8], ecx
mov edx, 0xe3
lea esp, [esp]
mov eax, dword [esi + 4]
mov edi, dword [esi]
xor edi, eax
and edi, 0x7ffffffe
xor edi, dword [esi]
and al, 1
movzx eax, al
shr edi, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edi, eax
xor edi, dword [esi + 0x634]
add esi, 4
dec edx
mov dword [esi - 4], edi
jne 0x459460
mov edx, 0x18c
mov eax, dword [esi + 4]
mov edi, dword [esi]
xor edi, eax
and edi, 0x7ffffffe
xor edi, dword [esi]
and al, 1
movzx eax, al
shr edi, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edi, eax
xor edi, dword [esi - 0x38c]
add esi, 4
dec edx
mov dword [esi - 4], edi
jne 0x459495
mov eax, dword [ecx]
mov ecx, dword [esi]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
pop edi
mov dword [esi], ecx
pop esi
ret
Function at 0x459500
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
dec dword [esi + 0x9c0]
jne 0x459510
call fcn.00459430
mov eax, dword [esi + 0x9c8]
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x9c8], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret

Function at 0x459550
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
dec dword [esi + 0x9c0]
jne 0x459566
call fcn.00459430
mov ecx, dword [esi + 0x9c8]
mov eax, dword [ecx]
add ecx, 4
mov dword [esi + 0x9c8], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x4595ad
fadd qword [0x607a20]
mov eax, dword [ebp + 8]
fild dword [ebp + 8]
test eax, eax
jns 0x4595bd
fadd qword [0x607a20]
fmul qword [0x607a18]
pop esi
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
fmulp st(1)
or eax, 0xc00
mov dword [ebp - 4], eax
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov eax, dword [ebp - 8]
fldcw word [ebp + 0xa]
mov esp, ebp
pop ebp
ret 4

Function at 0x459620
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, 0x6a3610
jmp fcn.00459500
Function at 0x4599a0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
cmp byte [0x6a3feb], 0
jne 0x459b25
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.GetNativeSystemInfo
push str.kernel32
mov byte [0x6a3feb], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x4599e6
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x4599f0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 9
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x68]
sete al
push edx
mov byte [0x6a3fea], al
mov dword [0x6a3ff8], ecx
mov dword [ebp - 0x68], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x459a2f
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
shrd eax, ecx, 0x14
mov dword [0x6a3ff4], eax
shr ecx, 0x14
jmp 0x459a34
mov eax, dword [0x6a3ff4]
test eax, eax
jne 0x459a42
mov dword [0x6a3ff4], 0x1000
push ebx
mov ebx, 0x11c
push str.ntdll
mov dword [ebp - 0x184], ebx
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x459a75
push str.RtlGetVersion
push eax
call edi
test eax, eax
je 0x459a75
lea edx, [ebp - 0x184]
push edx
call eax
test eax, eax
je 0x459a90
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x459b22
mov ecx, dword [ebp - 0x180]
mov edx, dword [ebp - 0x178]
mov esi, dword [ebp - 0x17c]
mov edi, dword [ebp - 0x70]
mov dword [0x6a3fe4], edx
mov eax, 0xcccccccd
mul ecx
shr edx, 3
mov eax, edx
shl eax, 8
mov ebx, esi
and ebx, 0xf
or eax, ebx
shl eax, 4
mov ebx, edi
and ebx, 0xf
or eax, ebx
mov ebx, ecx
lea edx, [edx + edx*4]
add edx, edx
sub ebx, edx
movzx edx, word [ebp - 0x178]
mov dword [0x6a3ff0], ecx
shl eax, 0x10
shl ebx, 0x18
shl ecx, 4
mov dword [0x6a3fec], esi
and ebx, 0xf000000
and esi, 0xf
or eax, ebx
or ecx, esi
mov word [0x6a3fe8], di
or eax, edx
shl ecx, 4
and edi, 0xf
mov dword [0x6a4000], eax
mov eax, dword [ebp - 4]
or ecx, edi
mov word [0x6a3ffc], cx
call fcn.004597b0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459cc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x459d43
lea eax, [ebp - 0x128]
push eax
push esi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x459d3c
push ebx
mov ebx, dword [ebp + 8]
lea ebx, [ebx]
lea ecx, [ebp - 0x104]
push ebx
push ecx
call sym.GameRanger.exe_int___cdecl_strcasecmp_char_const___char_const__
add esp, 8
test eax, eax
je 0x459d35
lea edx, [ebp - 0x128]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x459d00
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x120]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret