joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a640
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a989c
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a4], ecx
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00577360
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.00577360
add esp, 0xc
lea ecx, [ebp - 0x468]
call fcn.00413850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00413850
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00413850
mov byte [ebp - 4], 2
lea edx, [ebp - 0x480]
push edx
mov ecx, dword [ebp - 0x4a4]
call fcn.0046a870
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x438]
call fcn.00413760
lea ecx, [ebp - 0x480]
call fcn.00413710
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x46a80f
push 0x104
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00413680
lea edx, [ebp - 0x498]
push edx
mov ecx, dword [ebp - 0x4a4]
call fcn.0046a950
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4b0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046d6b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x498]
call fcn.00413710
push 0x5fe3c4
mov ecx, dword [ebp + 8]
call fcn.0046d690
push 0
mov ecx, dword [ebp + 8]
call fcn.00413640
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0
je 0x46a7d0
cmp dword [ebp - 0x4a0], 0x50
je 0x46a7d0
cmp dword [ebp - 0x4a0], 0xb7
je 0x46a7d0
jmp 0x46a80f
mov byte [ebp - 0x499], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00413710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00413710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00413710
mov al, byte [ebp - 0x499]
jmp 0x46a84c
mov byte [ebp - 0x49a], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00413710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00413710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00413710
mov al, byte [ebp - 0x49a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret 4
Function at 0x46bce0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9a88
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x28]
call fcn.00413850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00413850
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00413850
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.0046a640
push 1
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.0046abb0
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x58]
call fcn.00413760
lea ecx, [ebp - 0x70]
call fcn.00413710
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046d6b0
push 0x5fef64
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.00472f80
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x40]
call fcn.00413760
lea ecx, [ebp - 0x88]
call fcn.00413710
lea ecx, [ebp - 0x28]
call fcn.00413640
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.00413640
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00413710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00413710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00413710
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x470f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x470f80
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x470f8c
mov al, 1
jmp 0x471134
mov dword [ebp - 0x44], 8
call fcn.00454e80
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov word [ebp - 0x36], ax
call fcn.00454e80
mov word [ebp - 0x38], ax
lea ecx, [ebp - 0x36]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00454df0
add esp, 8
movzx eax, al
test eax, eax
je 0x470fd4
xor al, al
jmp 0x471134
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042a140
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x28]
call fcn.00429e60
mov ecx, eax
call fcn.00415d20
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00411720
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00429e60
mov ecx, eax
call fcn.00415d20
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.00431400
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x47104f
cmp dword [ebp - 0x3c], 1
je 0x471056
cmp dword [ebp - 0x3c], 3
je 0x4710f0
jmp 0x471108
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3e], 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00429e60
mov ecx, eax
call fcn.00415d20
mov edx, dword [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x4710b9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x28]
call fcn.00429e60
mov ecx, eax
call fcn.00415d20
push eax
call fcn.0057f941
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x4710b9
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x2d]
jmp 0x471134
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x4710dc
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x2e]
jmp 0x471134
cmp dword [ebp - 0x34], 0
jne 0x4710ee
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042f090
jmp 0x471120
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x2f]
jmp 0x471134
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x30]
jmp 0x471134
jmp 0x470fe7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x478a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa9cc
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.004aba29
add esp, 4
lea eax, [ebp - 0x94]
push eax
call fcn.004a6d9c
add esp, 4
mov dword [ebp - 4], 0
call fcn.004a6f4f
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 1
je 0x478a9d
cmp dword [ebp - 0xa4], 4
je 0x478ac6
jmp 0x478b89
push str...projectCommon_SetupInstallSetupInstallSetup_res_skin_
lea ecx, [ebp - 0x94]
call fcn.004b030a
lea ecx, [ebp - 0x94]
call fcn.004b06da
push eax
call fcn.004ab9e0
add esp, 4
jmp 0x478b89
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.004b030a
lea ecx, [ebp - 0x94]
call fcn.004b06da
push eax
call fcn.004ab9e0
add esp, 4
push 0x601a80
push 0x8a
call fcn.004a6d19
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x478b89
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004a6d19
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x478b7c
mov edx, dword [ebp - 0x98]
push edx
call fcn.004a6d19
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jbe 0x478b7c
push 0
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
call fcn.004aba36
add esp, 0xc
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push 0x47ee30
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0xffffffffffffffff
push str.CProgressExUI
call fcn.004b00a5
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
call fcn.004ce1f2
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004ce26c
push 0x47e6d0
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0xbc], esp
push 0xffffffffffffffff
push str.COptionExUI
call fcn.004b00a5
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 2
call fcn.004ce1f2
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004ce26c
push 0x47df80
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 0xffffffffffffffff
push 0x601a94
call fcn.004b00a5
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 3
call fcn.004ce1f2
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004ce26c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b01a7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x4816e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4816e9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48172c
mov eax, dword [ebp - 8]
jmp 0x481792
cmp dword [ebp - 0xc], 1
je 0x48173f
cmp dword [ebp - 0xc], 2
je 0x48173f
mov eax, 0xd
jmp 0x481792
cmp dword [ebp + 0xc], 0
je 0x481786
cmp dword [ebp - 4], 0
je 0x481775
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x48176c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x481773
mov eax, 0xd
jmp 0x481792
jmp 0x481786
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4817a0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x61a4e0
push 1
push 0
push 0x61a4c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4817fa
mov edx, dword [ebp - 4]
push edx
push 0x60d7c8
call fcn.00475740
add esp, 8
jmp 0x481856
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x48182a
mov edx, dword [ebp - 4]
push edx
push str.get_LocalPolicy_failed:_0x_08lx_n
call fcn.00475740
add esp, 8
jmp 0x481856
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x481856
mov edx, dword [ebp - 4]
push edx
push str.get_CurrentProfile_failed:_0x_08lx_n
call fcn.00475740
add esp, 8
cmp dword [ebp - 8], 0
je 0x48186a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
cmp dword [ebp - 0xc], 0
je 0x48187e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x483870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abf7b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00577360
add esp, 0xc
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], 1
push 0x60e894
lea ecx, [ebp - 0x230]
call fcn.00418610
mov byte [ebp - 4], 2
lea edx, [ebp - 0x234]
push edx
push 0xf003f
push 0
lea ecx, [ebp + 0x10]
call fcn.00413640
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x483968
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x240]
push eax
push 0
lea ecx, [ebp + 0x28]
call fcn.00413640
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48395b
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x230]
call fcn.00413680
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418cc0
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00413710
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00413710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.00413710
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret

Function at 0x4839d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00577360
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x218], 1
mov byte [ebp - 0x20d], 0
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp + 0xc]
call fcn.00413640
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x483a86
lea ecx, [ebp + 0x3c]
call fcn.00411720
shl eax, 1
push eax
lea ecx, [ebp + 0x3c]
call fcn.00413640
push eax
mov ecx, dword [ebp - 0x218]
push ecx
push 0
lea ecx, [ebp + 0x24]
call fcn.00413640
push eax
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x483a79
mov byte [ebp - 0x20d], 1
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x20d]
mov byte [ebp - 0x20e], cl
lea ecx, [ebp + 0xc]
call fcn.00413710
lea ecx, [ebp + 0x24]
call fcn.00413710
lea ecx, [ebp + 0x3c]
call fcn.00413710
mov al, byte [ebp - 0x20e]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x484c60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac0eb
mov eax, dword fs:[0]
push eax
mov eax, 0x4044
call fcn.004a4c50
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4048], 0
push 0x5e0892
lea ecx, [ebp - 0x403c]
call fcn.00411850
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x4024], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4022]
push ecx
call fcn.00577360
add esp, 0xc
mov dword [ebp - 0x4044], 0
mov dword [ebp - 0x404c], 0
lea edx, [ebp - 0x404c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x4044], eax
cmp dword [ebp - 0x4044], 0
je 0x484dec
lea ecx, [ebp - 0x4024]
push ecx
mov edx, dword [ebp - 0x4044]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x484dec
mov dword [ebp - 0x4040], 0
mov dword [ebp - 0x4050], 0
lea ecx, [ebp - 0x4050]
push ecx
lea edx, [ebp - 0x4040]
push edx
push 0x60ea64
lea eax, [ebp - 0x4024]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x484dec
mov byte [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x4040]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x4040]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x4040]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x4040]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._d._d._d._d
lea edx, [ebp - 0x24]
push edx
call fcn.00488460
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x403c]
call fcn.00429fc0
lea ecx, [ebp - 0x403c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004117d0
mov edx, dword [ebp - 0x4048]
or edx, 1
mov dword [ebp - 0x4048], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x403c]
call fcn.00411780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x485cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SOFTWAREWOW6432NodeMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x485d24
lea ecx, [ebp - 0x214]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x485d24
xor al, al
jmp 0x485e29
mov dword [ebp - 0x21c], 1
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00577360
add esp, 0xc
mov dword [ebp - 0x218], 0x104
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push str.CurrentBuild
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x485dd8
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
push str.CurrentBuildNumber
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x485dd8
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x485e29
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.005851a3
add esp, 8
call fcn.005a19a0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x55f0
jl 0x485e19
mov dword [ebp - 0x220], 1
jmp 0x485e23
mov dword [ebp - 0x220], 0
mov al, byte [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret

Function at 0x486890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
lea ecx, [ebp + 8]
call fcn.00413640
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4868d4
mov dword [ebp - 8], 0
lea ecx, [ebp + 8]
call fcn.00413710
mov eax, dword [ebp - 8]
jmp 0x4868fe
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
lea ecx, [ebp + 8]
call fcn.00413710
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4869b0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00577360
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.00577360
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.00577360
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00577360
add esp, 0xc
push 0x100
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.005899ff
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x60f6dc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486b03
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.TestEnv
push 0x60f800
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x486af1
mov dword [ebp - 0x828], 1
jmp 0x486afb
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x486b05
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
Function at 0x486b20
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00577360
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.00577360
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.00577360
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00577360
add esp, 0xc
push 0x100
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.005899ff
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x60f814
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486c73
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.ReplacePackage
push 0x60f7ec
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x486c61
mov dword [ebp - 0x828], 1
jmp 0x486c6b
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x486c75
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret