joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbdbd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51a3c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x487c52
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x487c52
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 0x487b73
cmp ecx, dword [esi]
jne 0x487b73
lock inc dword [eax]
jmp 0x487bcd
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 0x487c66
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 0x487bcd
test ecx, ecx
je 0x487bbd
push eax
test edi, edi
je 0x487bb2
push edi
push ecx
call fcn.004a88a0
add esp, 0xc
jmp 0x487bcd
push 0
push ecx
call fcn.004a8e20
add esp, 0xc
call fcn.004b0efe
mov dword [eax], 0x16
call fcn.004aba6f
add esi, 0x10
mov dword [ebp + 0x14], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 0
test edi, edi
js 0x487c6b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x487c02
push edi
lea ecx, [ebp + 0x14]
call fcn.004763d0
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 0x487c3e
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.004768c0
push 0x80070057
call fcn.00475e90
int3
Function at 0x4884d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbeeb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x51a3c4]
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 0x4e1b68
push 1
push 0
push 0x4e5538
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x48854d
xor bl, bl
jmp 0x488646
mov dword [ebp - 0x220], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4e5548
push eax
mov byte [ebp - 4], 1
call dword [ecx]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x488630
mov eax, dword [ebp - 0x21c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x48862a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8e20
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b49a5
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 0x4885f8
mov eax, dword [ebp - 0x21c]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test esi, esi
je 0x488609
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 0x488632
mov eax, dword [ebp - 0x220]
xor bl, bl
mov byte [ebp - 4], 0
test eax, eax
je 0x488640
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x488657
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.004a44be
mov esp, ebp
pop ebp
ret
Function at 0x488680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x51a3c4]
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.004a8e20
lea eax, [ebp - 0x644]
push eax
push 0xffffffffffffffff
push dword [0x5225d4]
call fcn.0048fad0
add esp, 0x18
test eax, eax
je 0x4886fd
mov eax, dword [0x5223c4]
test eax, eax
je 0x4888dd
push 0xa
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.004a44be
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [ebp - 0x644], esi
jle 0x48888d
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
push 0x230
lea eax, [ebp - 0x874]
push 0
push eax
call fcn.004a8e20
lea eax, [ebp - 0x874]
push eax
push esi
push dword [0x5225d4]
call fcn.0048fad0
add esp, 0x18
test eax, eax
jne 0x4888c8
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004a8e20
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.004a8e20
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004b49a5
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 0x4887d2
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x488803
test byte [ebp - 0x438], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x48882f
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48887d
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x48887d
mov eax, dword [0x5223c4]
test eax, eax
je 0x4888dd
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.004a44be
mov esp, ebp
pop ebp
ret
push esi
push dword [0x5225d4]
call fcn.004903a0
add esp, 0xc
test eax, eax
jne 0x4888a0
mov eax, edi
cdq
idiv dword [ebp - 0x644]
cmp eax, dword [0x5223c0]
jg 0x48885c
cmp byte [0x5225d1], 0
jne 0x48887d
mov ecx, dword [0x5223c4]
mov dword [0x5223c0], eax
test ecx, ecx
je 0x48887d
push eax
push 0
push 0x7e8
push ecx
mov byte [0x5225d1], 1
call ebx
inc esi
add edi, 0x64
cmp esi, dword [ebp - 0x644]
jl 0x488713
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5223c4]
test eax, eax
je 0x4888dd
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.004a44be
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5223c4]
test eax, eax
je 0x4888dd
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.004a44be
mov esp, ebp
pop ebp
ret
Function at 0x4888f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x51a3c4]
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.004a8e20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4e078c
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 0x488964
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44be
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 0x488984
add esi, dword [ebp - 0x644]
jmp 0x488a40
mov ecx, 0x4ff258
lea eax, [ebp - 0x638]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4889b6
test dx, dx
je 0x4889b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4889b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x488990
xor eax, eax
jmp 0x4889bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488a40
mov eax, 0x4e18d0
lea ecx, [ebp - 0x638]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4889f6
test dx, dx
je 0x4889f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4889f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4889d0
xor eax, eax
jmp 0x4889fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488a40
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004a8e20
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.004888f0
add esp, 4
add esi, eax
lea eax, [ebp - 0x664]
push eax
push edi
call ebx
test eax, eax
jne 0x488970
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.004a44be
mov esp, ebp
pop ebp
ret
Function at 0x488df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc06b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x51a3c4]
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 0x488e35
or edi, 0x8000
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8e20
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 0x488ea5
call fcn.004762a0
test eax, eax
je 0x488f1f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4f35d4
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x488e9c
movzx eax, ax
push eax
call fcn.0047df50
jmp 0x488f02
push 0
push 0x4f35d4
jmp 0x488efd
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x488f1f
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 0x488edb
movzx eax, ax
mov ecx, esi
push eax
call fcn.0047df50
jmp 0x488f02
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488ee4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00476770
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.004a44be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00475e90
int3
Function at 0x489b20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5223c8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489b30
sub eax, edx
sar eax, 1
jne 0x489b46
call fcn.00489190
push 0x5223c8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x489e70
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 0x489ee4
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 0x489ee4
test esi, esi
je 0x489ee4
mov ecx, dword [0x5225d4]
test ecx, ecx
je 0x489ecb
push ecx
call fcn.0048f060
add esp, 4
mov dword [0x5225d4], 0
push 0
push esi
push edi
call fcn.0048fcf0
add esp, 0xc
mov dword [0x5225d4], eax
test eax, eax
setne al
pop edi
pop esi
ret
mov eax, dword [0x5223c4]
test eax, eax
je 0x489efd
push 9
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor al, al
pop esi
ret
Function at 0x489f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc2cf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00488a70
add esp, 4
mov dword [ebp - 4], 0
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x48a142
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push str.setup
push str.from
push str.setup
push str.tray
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push str.___s____s____s_s
push eax
call fcn.004760e0
add esp, 0x18
mov ecx, 0x522640
call fcn.0046bc20
test al, al
je 0x489fc3
push str.silent
lea eax, [ebp - 0x2c]
push 0x4e1e5c
push eax
call fcn.004816a0
add esp, 0xc
mov ecx, 0x522640
call fcn.0048eed0
test al, al
je 0x489fe7
push str.show
lea eax, [ebp - 0x2c]
push 0x4e1e5c
push eax
call fcn.004816a0
add esp, 0xc
cmp byte [0x5225d0], 0
je 0x48a006
push str.update
lea eax, [ebp - 0x2c]
push 0x4e1e5c
push eax
call fcn.004816a0
add esp, 0xc
push str.param
lea eax, [ebp - 0x28]
mov ecx, 0x522640
push eax
call fcn.0048eeb0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x48a025
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push str.___param__s_
push eax
call fcn.004816a0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x48a075
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48a06b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a14c
push edx
push ecx
call fcn.004a42a7
add esp, 8
mov esi, dword [ebp - 0x2c]
xor eax, eax
push 1
push eax
push esi
push dword [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
push eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [0x521ca4]
test eax, eax
jne 0x48a0d2
push 0x4e5650
push 0x2c
call fcn.004a44fb
add esp, 8
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x48a0c7
mov ecx, eax
call fcn.00475270
jmp 0x48a0c9
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x521ca4], eax
push esi
push dword [ebp - 0x30]
push str.runApp___s____s_
push str.App___SetupHelper
push eax
call fcn.00476430
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
add esp, 0x14
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a107
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48a126
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00475e90
call fcn.004aba7f
int3
Function at 0x48a160
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x522640
mov dword [0x5223c0], 0
call fcn.0046bc20
test al, al
je 0x48a180
xor eax, eax
jmp 0x48a18d
push 0
push str.360GameAssistantSetupWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, 0x5223c8
mov dword [0x5223c4], eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a1a0
sub ecx, edx
sar ecx, 1
jne 0x48a1b6
call fcn.00489190
mov ecx, 0x5223c8
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a1c0
sub ecx, edx
sar ecx, 1
jne 0x48a1d6
call fcn.00489190
push 0x5223c8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [0x5223c4]
setne byte [0x5225d0]
test eax, eax
je 0x48a23f
push 0
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [0x5223c0], 0
jl 0x48a215
cmp byte [0x5225d1], 0
jne 0x48a23f
mov eax, dword [0x5223c4]
mov dword [0x5223c0], 0
test eax, eax
je 0x48a23f
push 0
push 0
push 0x7e8
push eax
mov byte [0x5225d1], 1
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00489e70
test al, al
jne 0x48a266
push str.runInstaller_openEmbeddedFilesArchive_false
push str.App___SetupHelper
call fcn.0047c530
push eax
call fcn.00476430
add esp, 0xc
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, 0x522640
call fcn.0046bc20
push 0
test al, al
je 0x48a281
call fcn.00487dc0
mov al, 1
mov esp, ebp
pop ebp
ret
push 0
push 0
push fcn.00487dc0
push 0
push 0
call fcn.004b29fd
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x48cb60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x51a3c4]
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 0x48ccbb
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x48cbec
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 0x48ccbb
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 0x48cc87
lea esp, [esp]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0048cb60
mov esi, eax
test esi, esi
jne 0x48ccbb
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 0x48cc40
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x48cc9e
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.0048c340
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x48ccc8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44be
mov esp, ebp
pop ebp
ret 4
Function at 0x48ce80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc78b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x48cf2c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x48cf2c
call fcn.0047c190
mov edi, eax
jmp 0x48d04b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48cf4f
call fcn.0047c190
jmp 0x48d03e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x48cf6d
call fcn.0047c190
jmp 0x48d03e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x48cf8e
mov edi, 0x8007000e
jmp 0x48d040
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x48d084
jb 0x48cfac
cmp eax, 0xffffffff
ja 0x48d084
cmp eax, 0x400
jbe 0x48cfc1
push eax
lea ecx, [ebp - 0x418]
call fcn.0048c1d0
jmp 0x48cfe7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x48cfe7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x48cffe
mov edi, 0x8007000e
jmp 0x48d040
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x48d01e
call fcn.0047c190
jmp 0x48d03e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0048cce0
mov edi, eax
test esi, esi
je 0x48d04b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x48d064
lea ecx, [ebp - 0x418]
call fcn.0048c470
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00475e90
int3
Function at 0x48f160
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x48f194
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48f194
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x48f28c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x48f1b3
cmp dx, 0x5c
jne 0x48f1b5
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x48f1a7
cmp edi, ebx
je 0x48f203
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004a88a0
add esp, 0xc
cmp edi, 0x208
jae 0x48f29c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0048f160
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x48f230
lea ecx, [ebp - 0x20c]
sub ecx, esi
jmp 0x48f220
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x48f220
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x48f232
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x48f250
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x48f250
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x48f28c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44be
mov esp, ebp
pop ebp
ret
call fcn.004a4ada
int3