joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407820
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x879b10
push 0x725dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x89b044]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, ebx
je 0x40788f
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x4078c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4079b0
lea ecx, [ebp - 0x28]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, ebx
je 0x4079b0
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4079b0
mov dword [ebp - 0x2c], ebx
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push 2
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call esi
cmp eax, ebx
jne 0x4079b0
cmp dword [ebp - 0x2c], ebx
jbe 0x4079b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4079b0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00724cfe
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x4079b0
mov dword [ebp - 0x38], ebx
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push edi
push 2
mov eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, ebx
je 0x4079b0
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x2c]
jne 0x4079b0
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 5
lea edx, [ebp - 0x30]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
je 0x4079b0
cmp dword [ebp - 0x30], ebx
je 0x4079b0
xor esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x44], esi
cmp esi, dword [edi]
jae 0x4079ae
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [edi + esi*8 + 4]
push edx
call ebx
test eax, eax
jne 0x407996
inc esi
jmp 0x40797d
mov eax, dword [ebp - 0x3c]
mov dword [eax], 1
mov ecx, dword [edi + esi*8 + 8]
shr ecx, 2
and ecx, 1
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004079df
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 4
Function at 0x407c50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.006351a0
test eax, eax
lea eax, [esp]
push eax
je 0x407c9d
push 0x20206
push 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407ce9
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0x20206
jmp 0x407cc9
push 0x20006
push 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407ce9
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x407ce9
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push 0x82f630
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x407d60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x7d2c82
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x24], ax
call fcn.007202b0
add esp, 0xc
cmp word [esp + 0x18], 0
jne 0x407e13
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Setup_Path
push str.SoftwareLDSGameCenter
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x407e13
push 0x830150
mov ecx, esi
call fcn.004068d0
jmp 0x407e7a
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e20
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
je 0x407e6e
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e40
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x2f
je 0x407e6e
push 0x82f470
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.007256d3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x22c], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x228
ret
Function at 0x407f30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x7d2c32
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x24], ax
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Setup_Path
push str.SoftwareLudashi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x407fdb
push 0x830150
mov ecx, esi
call fcn.004068d0
jmp 0x40803a
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407fe2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
je 0x40802e
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408000
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x2f
je 0x40802e
push 0x82f470
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.007256d3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x22c], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x228
ret
Function at 0x408140
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x7d2be2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x24], ax
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360wpapp.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4081eb
push 0x830150
mov ecx, esi
call fcn.004068d0
jmp 0x40824a
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4081f2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
je 0x40823e
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408210
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x2f
je 0x40823e
push 0x82f470
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.007256d3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x22c], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x228
ret

Function at 0x408770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7d2b01
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea esi, [esp + 0x18]
mov dword [esp + 0xc], 0
call fcn.00409190
mov edi, eax
mov dword [esp + 0x24], 1
lea esi, [esp + 0x14]
call fcn.00409080
mov byte [esp + 0x24], 2
push 0x82f86c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00403a70
mov byte [esp + 0x30], 3
mov esi, dword [esp + 0x38]
push edi
push eax
push esi
call fcn.004039c0
add esp, 0x18
mov dword [esp + 0xc], 1
mov byte [esp + 0x24], 2
lea ecx, [esp + 0x10]
call fcn.00405ef0
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x14]
call fcn.00405ef0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x18]
call fcn.00405ef0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x408df0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x7d3121
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0
call fcn.00405e90
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x14]
call fcn.00405e90
mov byte [esp + 0x28], 2
lea eax, [esp + 0xc]
push eax
call fcn.00408770
mov bl, 3
mov byte [esp + 0x2c], bl
lea ecx, [esp + 0x10]
push 0x82f924
push ecx
call fcn.0040cb60
add esp, 0xc
test al, al
je 0x408e76
lea edx, [esp + 0x1c]
push edx
call fcn.00407f30
add esp, 4
mov byte [esp + 0x28], 4
jmp 0x408e88
lea eax, [esp + 0x1c]
push eax
call fcn.00408140
add esp, 4
mov byte [esp + 0x28], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00404210
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x1c]
call fcn.00405ef0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x408ec2
mov edx, dword [esp + 0xc]
push edx
push ecx
lea eax, [esp + 0x1c]
push str._sUtilsldsgamecenter__s.exe
push eax
call fcn.0040e430
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x408edd
push eax
call esi
test eax, eax
jne 0x408f7c
lea ecx, [esp + 0xc]
push 0x82f924
push ecx
call fcn.0040cb60
add esp, 8
test al, al
je 0x408f23
lea edx, [esp + 0x1c]
push edx
call fcn.00408140
add esp, 4
mov byte [esp + 0x28], 6
push eax
lea ecx, [esp + 0x14]
call fcn.00404210
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x1c]
call fcn.00405ef0
push 0x82f968
jmp 0x408f51
lea eax, [esp + 0x1c]
push eax
call fcn.00407f30
add esp, 4
mov byte [esp + 0x28], 7
push eax
lea ecx, [esp + 0x14]
call fcn.00404210
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x1c]
call fcn.00405ef0
push 0x82f924
lea ecx, [esp + 0x10]
call fcn.00404150
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x408f7c
mov ecx, dword [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push str._sUtilsldsgamecenter__s.exe
push edx
call fcn.0040e430
add esp, 0x10
mov eax, dword [esp + 0x14]
push eax
call esi
mov esi, dword [esp + 0x30]
test eax, eax
je 0x408f99
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00405d50
jmp 0x408fa5
push 0x830150
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x18], 1
mov byte [esp + 0x28], 2
lea ecx, [esp + 0xc]
call fcn.00405ef0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x14]
call fcn.00405ef0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x10]
call fcn.00405ef0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x408ff0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.LDSGameCenterSetupMutext
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40902e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40902e
push str.User_is_installing_or_uninstalling_the_game_center.
call fcn.00609080
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x409080
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x7d2aa2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 4], 0
mov ecx, dword [0x82fa24]
mov eax, dword [str.ludashi]
mov edx, dword [0x82fa28]
push 0x1f8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [0x82fa2c]
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.VendorID
push str.SoftwareLDSGameCenter
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40914a
cmp word [esp + 0x14], ax
je 0x40914a
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004068d0
jmp 0x409156
push str.ludashi
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x228], 0
mov dword [esp + 4], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x228
ret

Function at 0x409190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x7d2a52
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 4], 0
mov ecx, dword [0x82fa24]
mov eax, dword [str.ludashi]
mov edx, dword [0x82fa28]
push 0x1f8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [0x82fa2c]
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.SubPID
push str.SoftwareLDSGameCenter
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40925a
cmp word [esp + 0x14], ax
je 0x40925a
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004068d0
jmp 0x409266
push str.ludashi
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x228], 0
mov dword [esp + 4], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x228
ret

Function at 0x40a840
Capabilities:
Check mutex on windows

Disassembly:
push str.GlobalLDSGAMECENTER_AB23A043_615D_4e3c_A185_C3BA7BCD4A15
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x8a31e4], eax
test eax, eax
je 0x40a870
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a870
cmp eax, 5
je 0x40a870
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40bde0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7d3839
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.00668a40
add esp, 8
mov ebx, 1
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
mov esi, dword [esp + 0x30]
je 0x40be81
push esi
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.0040b660
add esp, 4
mov byte [esp + 0x24], 2
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x40be74
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00405d50
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
jmp 0x40bf23
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.00405ef0
lea ecx, [esp + 0x10]
push 0x19
push ecx
call fcn.00668a40
add esp, 8
mov byte [esp + 0x24], 3
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0
je 0x40bf07
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040cc00
add esp, 8
test al, al
je 0x40bf07
push esi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0040b660
add esp, 4
mov byte [esp + 0x24], 4
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x40bef9
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00405d50
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], 3
lea ecx, [esp + 0x14]
call fcn.00405ef0
jmp 0x40bf1b
mov byte [esp + 0x24], 3
lea ecx, [esp + 0x14]
call fcn.00405ef0
mov esi, dword [esp + 0x2c]
push 0x830150
mov ecx, esi
call fcn.004068d0
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
call fcn.00405ef0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xc]
call fcn.00405ef0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40c030
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x7d2e56
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push 1
push eax
mov esi, ecx
call fcn.00407d60
mov dword [esp + 0x438], 0
push str.GmSvc.dll
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403a70
add esp, 0x14
mov byte [esp + 0x430], 2
lea ecx, [esp + 0x10]
call fcn.00405ef0
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call ebx
test eax, eax
jne 0x40c0e4
mov eax, dword [esp + 0xc]
push eax
push str.CGameCenterUtil::RunServiceFunction___s_not_found
call fcn.00609060
add esp, 8
mov dword [esp + 0x430], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00405ef0
xor eax, eax
jmp 0x40c1f1
mov ecx, dword [esp + 0xc]
push 0
push ecx
mov ecx, 0x88c8d0
call fcn.00611a00
test eax, eax
jne 0x40c105
mov edx, dword [esp + 0xc]
push edx
push str.CGameCenterUtil::RunServiceFunction___s_no_sign
jmp 0x40c0c1
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
call fcn.007202b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call fcn.00407570
test eax, eax
je 0x40c143
push str.SysWOW64_rundll32.exe
push 0x104
lea edx, [esp + 0x1c]
push edx
jmp 0x40c152
push str.System32_rundll32.exe
push 0x104
lea eax, [esp + 0x1c]
push eax
call fcn.007256d3
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x40c16f
lea edx, [esp + 0x14]
push edx
jmp 0x40c0bc
push 0x208
lea eax, [esp + 0x220]
push 0
push eax
call fcn.007202b0
mov ecx, dword [esp + 0x18]
push esi
push ecx
push str.__s___s
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.007259fa
add esp, 0x20
test edi, edi
jne 0x40c1bb
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x40c1d1
push edi
push 0
push 1
push 0
push 0
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00612920
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x430], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00405ef0
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x428
ret
Function at 0x40e940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7d01c1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 0
xor edx, edx
mov dword [esp + 0xc], vtable.CBufferRefT_unsigned_short_int_.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test eax, eax
je 0x40e99c
cmp word [eax], dx
je 0x40e99c
jmp 0x40e990
inc edx
mov dword [esp + 0x14], edx
cmp word [eax + edx*2], 0
jne 0x40e990
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x2c]
push edx
push eax
push esi
call fcn.0040f640
mov dword [esp + 8], 1
mov byte [esp + 0x20], 0
mov dword [esp + 0xc], vtable.CBufferRefT_unsigned_short_int_.0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc
Function at 0x418020
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418096
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x418065
cmp eax, 2
jne 0x418081
mov eax, dword [esp + 0x14]
test esi, esi
je 0x418090
test eax, eax
je 0x41808b
test al, 1
jne 0x418081
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x418090
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc