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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x808], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x814], edi
test ebx, ebx
je 0x48b022
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
je 0x48b022
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 1
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x808]
push dword [eax]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x48b022
lea esi, [ebp - 0x804]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48af22
sub esi, ecx
sar esi, 1
jne 0x48af4d
mov ecx, edi
call fcn.0047b100
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
lea ebx, [ebp - 0x804]
sub ebx, edx
sar ebx, 1
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x808], eax
test esi, esi
js 0x48b035
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x48af85
push esi
mov ecx, edi
call fcn.00477120
mov edx, dword [edi]
lea edi, [esi + esi]
mov eax, dword [edx - 8]
cmp ebx, dword [ebp - 0x808]
ja 0x48afbe
lea ecx, [edx + ebx*2]
test edi, edi
je 0x48aff7
test ecx, ecx
jne 0x48afab
call fcn.004b588e
mov dword [eax], 0x16
jmp 0x48aff2
add eax, eax
cmp eax, edi
jb 0x48afe7
push edi
push ecx
push edx
call fcn.004ad230
add esp, 0xc
jmp 0x48aff7
add eax, eax
test edi, edi
je 0x48aff7
cmp eax, edi
jb 0x48afdb
push edi
lea eax, [ebp - 0x804]
push eax
push edx
call fcn.004ad230
add esp, 0xc
jmp 0x48aff7
push eax
push 0
push edx
call fcn.004ad7b0
add esp, 0xc
call fcn.004b588e
mov dword [eax], 0x22
call fcn.004b03ff
mov eax, dword [ebp - 0x814]
mov ecx, dword [eax]
cmp esi, dword [ecx - 8]
jg 0x48b035
mov dword [ecx - 0xc], esi
xor ecx, ecx
mov eax, dword [eax]
mov word [edi + eax], cx
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00476460
int3
Function at 0x48b080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0e8d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5203c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x48b1c2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x48b1c2
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x48b0e3
cmp ecx, dword [esi]
jne 0x48b0e3
lock inc dword [eax]
jmp 0x48b13d
mov eax, dword [ecx]
lea edx, [esi + 4]
push 2
push dword [edx]
mov dword [ebp + 0x14], edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x48b1d6
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx]
lea ecx, [esi + 0x10]
inc eax
add eax, eax
je 0x48b13d
test ecx, ecx
je 0x48b12d
push eax
test edi, edi
je 0x48b122
push edi
push ecx
call fcn.004ad230
add esp, 0xc
jmp 0x48b13d
push 0
push ecx
call fcn.004ad7b0
add esp, 0xc
call fcn.004b588e
mov dword [eax], 0x16
call fcn.004b03ff
add esi, 0x10
mov dword [ebp + 0x14], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 0
test edi, edi
js 0x48b1db
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x48b172
push edi
lea ecx, [ebp + 0x14]
call fcn.00477120
mov esi, dword [ebp + 0x14]
lea eax, [edi + edi]
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48b1ae
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00478020
push 0x80070057
call fcn.00476460
int3
Function at 0x48c230
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10bb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x4e7cd4
push 1
push 0
push 0x4eb868
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x48c2ad
xor bl, bl
jmp 0x48c3a6
mov dword [ebp - 0x220], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4eb878
push eax
mov byte [ebp - 4], 1
call dword [ecx]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x48c390
mov eax, dword [ebp - 0x21c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x48c38a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ad7b0
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b9505
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x21c]
push dword [ebp + 0x18]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test ebx, ebx
je 0x48c358
mov eax, dword [ebp - 0x21c]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test esi, esi
je 0x48c369
mov eax, dword [ebp - 0x21c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x220]
push 1
push dword [ebp - 0x224]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov eax, dword [ebp - 0x220]
setns bl
jmp 0x48c392
mov eax, dword [ebp - 0x220]
xor bl, bl
mov byte [ebp - 4], 0
test eax, eax
je 0x48c3a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x48c3b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
Function at 0x48c3e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x230
mov dword [ebp - 0x878], eax
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.004ad7b0
lea eax, [ebp - 0x644]
push eax
push 0xffffffffffffffff
push dword [0x5286b4]
call fcn.00494580
add esp, 0x18
test eax, eax
je 0x48c45d
mov eax, dword [0x52829c]
test eax, eax
je 0x48c63d
push 0xb
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [ebp - 0x644], esi
jle 0x48c5ed
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
push 0x230
lea eax, [ebp - 0x874]
push 0
push eax
call fcn.004ad7b0
lea eax, [ebp - 0x874]
push eax
push esi
push dword [0x5286b4]
call fcn.00494580
add esp, 0x18
test eax, eax
jne 0x48c628
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
push dword [ebp - 0x878]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004ad7b0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004b9505
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c532
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x48c563
test byte [ebp - 0x438], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x48c58f
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c5dd
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x48c5dd
mov eax, dword [0x52829c]
test eax, eax
je 0x48c63d
push 4
push 0
push 0x7e9
push eax
call ebx
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
push esi
push dword [0x5286b4]
call fcn.00494e50
add esp, 0xc
test eax, eax
jne 0x48c600
mov eax, edi
cdq
idiv dword [ebp - 0x644]
cmp eax, dword [0x528298]
jg 0x48c5bc
cmp byte [0x5286b1], 0
jne 0x48c5dd
mov ecx, dword [0x52829c]
mov dword [0x528298], eax
test ecx, ecx
je 0x48c5dd
push eax
push 0
push 0x7e8
push ecx
mov byte [0x5286b1], 1
call ebx
inc esi
add edi, 0x64
cmp esi, dword [ebp - 0x644]
jl 0x48c473
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x52829c]
test eax, eax
je 0x48c63d
push 5
push 0
push 0x7e9
push eax
call ebx
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x52829c]
test eax, eax
je 0x48c63d
push 3
push 0
push 0x7e9
push eax
call ebx
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
Function at 0x48c650
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x668], ebx
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4e6794
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48c6c4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
xor esi, esi
lea ecx, [ecx]
test byte [ebp - 0x664], 0x10
jne 0x48c6e4
add esi, dword [ebp - 0x644]
jmp 0x48c7a0
mov ecx, 0x5055f8
lea eax, [ebp - 0x638]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48c716
test dx, dx
je 0x48c712
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48c716
add eax, 4
add ecx, 4
test dx, dx
jne 0x48c6f0
xor eax, eax
jmp 0x48c71b
sbb eax, eax
or eax, 1
test eax, eax
je 0x48c7a0
mov eax, 0x4e7a20
lea ecx, [ebp - 0x638]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x48c756
test dx, dx
je 0x48c752
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x48c756
add ecx, 4
add eax, 4
test dx, dx
jne 0x48c730
xor eax, eax
jmp 0x48c75b
sbb eax, eax
or eax, 1
test eax, eax
je 0x48c7a0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call fcn.0048c650
add esp, 4
add esi, eax
lea eax, [ebp - 0x664]
push eax
push edi
call ebx
test eax, eax
jne 0x48c6d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
Function at 0x48cab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e11eb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], esi
je 0x48caf5
or edi, 0x8000
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x48cb54
call fcn.00476b10
test eax, eax
je 0x48cbe2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4f9904
mov dword [ebp - 4], 0
push 0
test eax, 0xffff0000
je 0x48cb83
push eax
jmp 0x48cbbe
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48cbe2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x48cb9e
push 0
movzx edi, ax
push edi
call fcn.004763e0
add esp, 8
test eax, eax
je 0x48cbc5
push edi
push eax
mov ecx, esi
call fcn.0048b6d0
jmp 0x48cbc5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48cba7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00477ed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
int3
Function at 0x48d880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5282a0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d890
sub eax, edx
sar eax, 1
jne 0x48d8a6
call fcn.0048ce60
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0048c7d0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48d8dc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48dc70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0xa
push 0xcd
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x48dce4
push esi
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test edi, edi
je 0x48dce4
test esi, esi
je 0x48dce4
mov ecx, dword [0x5286b4]
test ecx, ecx
je 0x48dccb
push ecx
call fcn.00493b10
add esp, 4
mov dword [0x5286b4], 0
push 0
push esi
push edi
call fcn.004947a0
add esp, 0xc
mov dword [0x5286b4], eax
test eax, eax
setne al
pop edi
pop esi
ret
mov eax, dword [0x52829c]
test eax, eax
je 0x48dcfd
push 0xa
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor al, al
pop esi
ret
Function at 0x48e730
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x528720
mov dword [0x528298], 0
call fcn.0046bce0
test al, al
je 0x48e750
xor eax, eax
jmp 0x48e75d
push 0
push str.360GameAssistantSetupWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, 0x5282a0
mov dword [0x52829c], eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e770
sub ecx, edx
sar ecx, 1
jne 0x48e786
call fcn.0048ce60
mov ecx, 0x5282a0
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e790
sub ecx, edx
sar ecx, 1
jne 0x48e7a6
call fcn.0048ce60
lea eax, [ebp - 4]
push eax
call fcn.0048c7d0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
test eax, eax
je 0x48e7de
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e7da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x48e7f5
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e7f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov byte [0x5286b0], al
mov eax, dword [0x52829c]
test eax, eax
je 0x48e84f
push 0
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [0x528298], 0
jl 0x48e825
cmp byte [0x5286b1], 0
jne 0x48e84f
mov eax, dword [0x52829c]
mov dword [0x528298], 0
test eax, eax
je 0x48e84f
push 0
push 0
push 0x7e8
push eax
mov byte [0x5286b1], 1
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0048dc70
test al, al
jne 0x48e876
push str.runInstaller_openEmbeddedFilesArchive_false
push str.App___SetupHelper
call fcn.0047ed90
push eax
call fcn.00477180
add esp, 0xc
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, 0x528720
call fcn.0046bce0
push 0
test al, al
je 0x48e891
call fcn.0048b330
mov al, 1
mov esp, ebp
pop ebp
ret
push 0
push 0
push fcn.0048b330
push 0
push 0
call fcn.004b7554
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x48e8c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1547
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5203c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x5282a0
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e8f0
sub ecx, edx
sar ecx, 1
jne 0x48e906
call fcn.0048ce60
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x5282a0
call esi
test eax, eax
je 0x48e94e
lea eax, [ebp - 0x10]
push eax
call fcn.0048c7d0
add esp, 4
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x48e933
mov byte [0x5286b0], 1
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e94e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x528720
call fcn.0046bce0
test al, al
je 0x48e9be
push str.runSetup_silent
push str.App___SetupHelper
call fcn.0047ed90
push eax
call fcn.00477180
add esp, 0xc
call fcn.0048d5b0
test al, al
je 0x48e9a7
push str.runSetup_isLowerSetup
push str.App___SetupHelper
call fcn.0047ed90
push eax
call fcn.00477180
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0048e730
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.runSetup_window
push str.App___SetupHelper
call fcn.0047ed90
push eax
call fcn.00477180
add esp, 0xc
push 0
push str.360GameAssistantSetupWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x48ea19
push str.runSetup_window_already_exist
push str.App___SetupHelper
call fcn.0047ed90
push eax
call fcn.00477180
push esi
call fcn.004855e0
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x4eb980
push 0x2c
call fcn.004a8e8b
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x48ea41
mov ecx, eax
call fcn.004988f0
mov esi, eax
jmp 0x48ea43
xor esi, esi
push 0
push 0
push 0x86020000
push 0x4f9904
push 0
push esi
push str.SetupWnd.xml
push str.SetupWnd
mov dword [ebp - 4], 0xffffffff
call fcn.00407c90
add esp, 0x20
test eax, eax
jne 0x48ea90
test esi, esi
je 0x48ea7e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x14]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491580
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4916db
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x49160c
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x4916db
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4916a7
lea esp, [esp]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00491580
mov esi, eax
test esi, esi
jne 0x4916db
lea eax, [ebp - 0x228]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x491660
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4916be
push eax
call ebx
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x210], 0
call fcn.00490d60
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4916e8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 4