joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4270ef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d288]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041fa4a
mov dword [ebp - 0x14], eax
cmp dword [0x43f3d8], esi
jne 0x4271e2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42716f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4272c2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4272c2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4272c2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43f3d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43f3dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43f3e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f3e8], eax
test eax, eax
je 0x4271df
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f3e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x427207
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4271fa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42721c
push 4
pop eax
jmp 0x4272c4
cmp dword [ebp - 0x14], esi
je 0x42721c
push dword [0x43f3d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x427201
mov eax, dword [0x43f3e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42727a
cmp dword [0x43f3e8], edi
je 0x42727a
push eax
call ebx
push dword [0x43f3e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42727a
test eax, eax
je 0x42727a
call ecx
test eax, eax
je 0x42726f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42726f
test byte [ebp - 8], 1
jne 0x42727a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4272aa
mov eax, dword [0x43f3dc]
cmp eax, edi
je 0x4272a7
push eax
call ebx
test eax, eax
je 0x4272a7
call eax
mov esi, eax
test esi, esi
je 0x4272a7
mov eax, dword [0x43f3e0]
cmp eax, edi
je 0x4272a7
push eax
call ebx
test eax, eax
je 0x4272a7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43f3d8]
call ebx
test eax, eax
je 0x4272c2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4272c4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aa1b
mov esp, ebp
pop ebp
ret
Function at 0x40e083
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004094ef
mov dword [ebp - 0x14], eax
cmp dword [0x813cbc], esi
jne 0x40e176
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e256
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e256
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e256
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813cbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813cc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ccc], eax
test eax, eax
je 0x40e173
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813cc8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e19b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e18e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push 4
pop eax
jmp 0x40e258
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push dword [0x813cbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e195
mov eax, dword [0x813cc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e20e
cmp dword [0x813ccc], edi
je 0x40e20e
push eax
call ebx
push dword [0x813ccc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e20e
test eax, eax
je 0x40e20e
call ecx
test eax, eax
je 0x40e203
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e203
test byte [ebp - 8], 1
jne 0x40e20e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e23e
mov eax, dword [0x813cc0]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
call eax
mov esi, eax
test esi, esi
je 0x40e23b
mov eax, dword [0x813cc4]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813cbc]
call ebx
test eax, eax
je 0x40e256
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040ec
mov esp, ebp
pop ebp
ret
Function at 0x4059a6
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov esi, eax
jbe 0x4059d1
mov eax, dword [esp + 0xc]
push ebx
mov ecx, esi
sub eax, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x42
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4059c4
pop ebx
push 0x408230
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push esi
call fcn.00404b97
push esi
mov edi, eax
call fcn.00405a0a
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x4842686c
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x5cea761d
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x67546dd2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5613d18
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10001032
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x10001240
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.PangyaUS.ini
call esi
cmp eax, 0xffffffff
jne 0x10001277
push str.PangyaJP.ini
call esi
cmp eax, 0xffffffff
je 0x10001266
mov eax, 1
pop esi
ret
push str.PangyaTH.ini
call esi
inc eax
neg eax
pop esi
sbb eax, eax
and eax, 2
ret
xor eax, eax
pop esi
ret

Function at 0x1000104b
Capabilities:
Write file on windows

Disassembly:
jmp 0x100016d0
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 0
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001738
push esi
mov esi, dword [esp + 0x1c]
push edi
test esi, esi
je 0x10001720
mov edi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000172d
add edi, dword [esp + 0x10]
sub esi, dword [esp + 0x10]
jne 0x10001702
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebp
push str.Error_writing_to_file__s.
call fcn.100010c8
push ebp
push str.Error_creating_file__s.
call fcn.100010c8
int3
Function at 0x1000105a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x10002bc0
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor edi, edi
nop dword [eax]
lea eax, [edi + ebx]
push eax
call fcn.10001113
add edi, eax
add esp, 4
cmp edi, 6
jb 0x10002bd0
lea esi, [edi + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov ebp, eax
push ebx
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + ebp], 0xe9
lea eax, [esp + 0x1c]
mov byte [edi + ebp + 5], 0xc3
mov ecx, ebx
sub ecx, ebp
push eax
push 0x40
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ecx, 5
push ebp
mov dword [edi + ebp + 1], ecx
call esi
lea eax, [esp + 0x1c]
mov byte [esp + 0x10], 0xe9
push eax
push 0x40
push 6
push ebx
mov byte [esp + 0x25], 0xc3
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10002c51
call esi
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.100010c8
add esp, 8
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub eax, ebx
sub eax, 5
push 0
mov dword [esp + 0x15], eax
lea eax, [esp + 0x14]
push 6
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10002c8b
call esi
push eax
push str.Failed_to_install_hook:_WriteProcessMemory_failed.___08x_
call fcn.100010c8
add esp, 8
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002cb1
call esi
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.100010c8
add esp, 8
push 6
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10002cd1
call esi
push eax
push str.Failed_to_install_hook:_FlushInstructionCache_failed.___08x_
call fcn.100010c8
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10001073
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x10002d30
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.10001064
add esp, 8
mov ebx, eax
xor edi, edi
nop dword [eax + eax]
lea ecx, [edi + ebx]
push ecx
call fcn.10001113
add edi, eax
add esp, 4
cmp edi, 6
jb 0x10002d50
lea esi, [edi + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov ebp, eax
push ebx
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + ebp], 0xe9
lea eax, [esp + 0x14]
mov byte [edi + ebp + 5], 0xc3
mov ecx, ebx
sub ecx, ebp
push eax
push 0x40
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ecx, 5
push ebp
mov dword [edi + ebp + 1], ecx
call esi
lea eax, [esp + 0x10]
mov byte [esp + 0x18], 0xe9
push eax
push 0x40
push 6
push ebx
mov byte [esp + 0x2d], 0xc3
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10002dd1
call esi
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.100010c8
add esp, 8
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub eax, ebx
sub eax, 5
push 0
mov dword [esp + 0x1d], eax
lea eax, [esp + 0x1c]
push 6
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10002e0b
call esi
push eax
push str.Failed_to_install_hook:_WriteProcessMemory_failed.___08x_
call fcn.100010c8
add esp, 8
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002e31
call esi
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.100010c8
add esp, 8
push 6
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10002e51
call esi
push eax
push str.Failed_to_install_hook:_FlushInstructionCache_failed.___08x_
call fcn.100010c8
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1000107d
Capabilities:
Create thread
Set environment variable

Disassembly:
jmp 0x10001ba0
cmp dword [esp + 8], 1
jne 0x10001c55
push esi
call fcn.10001087
call fcn.10001032
sub eax, 0
je 0x10001bf4
sub eax, 1
je 0x10001bed
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 1
jne 0x10001bdb
push 0
push str.rugburn
push str.No_GameGuard_patch_is_available_for_PangyaTH.
push 0
call esi
push 0
push str.rugburn
push str.It_looks_like_no_patch_exists_for_this_version_of_PangYa._nThe_game_will_likely_exit_a_couple_minutes_after_detecting_GameGuard_is_not_present.
push 0
call esi
jmp 0x10001c0a
mov eax, 0x100010fa
jmp 0x10001bf9
mov eax, 0x10001055
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1000103c
call fcn.1000108c
call fcn.10001032
push eax
call fcn.100010b4
add esp, 4
mov esi, eax
push esi
push str.PANGYA_ARG
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10001c48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_set_PANGYA_ARG___08x_
call fcn.100010c8
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.100010ff
pop esi
mov eax, 1
ret 0xc

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

Disassembly:
jmp 0x100012e0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x1000109b
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x10002a10
push ecx
push ebx
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebp, dword [esp + 0x1c]
cmp ebp, 0x100062e6
je 0x10002a5b
nop word [eax + eax]
push edi
push ebp
push ebx
call sub.msvcrt.dll_memcpy
inc esi
add esp, 0xc
cmp esi, 5
je 0x10002a5b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002a40
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push dword [esp + 0x28]
push str.Patch___Code_:__s___d__r_n
call fcn.10001118
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100010be
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x10002970
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
mov esi, dword [edi]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x14]
cmp esi, eax
je 0x100029a1
mov ebx, 1
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x18]
cmp eax, str.9A7
je 0x100029e2
cmp eax, str.992
je 0x100029e2
cmp eax, str.9A0
je 0x100029e2
cmp eax, 0x10006358
je 0x100029e2
push ebx
push eax
push str.Patch__Code_:__s___d__r_n
call fcn.10001118
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x100010c8
Capabilities:
Terminate process

Disassembly:
jmp 0x10001290
push esi
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0x10
push str.rugburn
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100010eb
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x100015a0
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000163e
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0
push eax
mov dword [esp + 0x20], eax
call sub.msvcrt.dll_memset
mov esi, dword [esp + 0x20]
add esp, 0xc
test edi, edi
je 0x10001620
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001633
add esi, dword [esp + 0x10]
sub edi, dword [esp + 0x10]
jne 0x10001602
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
push str.Error_loading_file__s.
call fcn.100010c8
push ebp
push str.Error_opening_file__s.
call fcn.100010c8
int3

Function at 0x10001118
Capabilities:
Write file on windows

Disassembly:
jmp 0x10001400
push ecx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x1000
push 0
call esi
push 0x80
push 0
mov edi, eax
call esi
mov ecx, dword [0x10008128]
mov ebp, eax
mov esi, edi
test ecx, ecx
je 0x10001446
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [edi], 0
je 0x10001446
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x10001440
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.T:_d_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
je 0x10001476
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x10001470
mov eax, esi
sub eax, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [esp + 0xc], eax
push 0
push 0x80
push 4
push 0
push 3
push 4
push str.gglog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42a5d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bdd
cmp eax, ebx
je 0x401533
push ebx
push dword [0x42a5d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a5d0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c