joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x63f070]
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 0x471ca0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x471cac
mov al, 1
jmp 0x471e54
mov dword [ebp - 0x44], 8
call fcn.004552b0
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.004552b0
mov word [ebp - 0x38], ax
lea ecx, [ebp - 0x36]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00455220
add esp, 8
movzx eax, al
test eax, eax
je 0x471cf4
xor al, al
jmp 0x471e54
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042a550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042a270
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.0042a270
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.00431810
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x471d6f
cmp dword [ebp - 0x3c], 1
je 0x471d76
cmp dword [ebp - 0x3c], 3
je 0x471e10
jmp 0x471e28
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3e], 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042a270
mov ecx, eax
call fcn.00415d20
mov edx, dword [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x471dd9
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.0042a270
mov ecx, eax
call fcn.00415d20
push eax
call fcn.00582e51
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x471dd9
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x2d]
jmp 0x471e54
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x471dfc
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x2e]
jmp 0x471e54
cmp dword [ebp - 0x34], 0
jne 0x471e0e
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042f4a0
jmp 0x471e40
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x2f]
jmp 0x471e54
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411780
mov al, byte [ebp - 0x30]
jmp 0x471e54
jmp 0x471d07
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x479740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae0bc
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.004aeee8
add esp, 4
lea eax, [ebp - 0x94]
push eax
call fcn.004aa25b
add esp, 4
mov dword [ebp - 4], 0
call fcn.004aa40e
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 1
je 0x4797ad
cmp dword [ebp - 0xa4], 4
je 0x4797d6
jmp 0x479899
push 0x605d18
lea ecx, [ebp - 0x94]
call fcn.004b3759
lea ecx, [ebp - 0x94]
call fcn.004b3701
push eax
call fcn.004aee9f
add esp, 4
jmp 0x479899
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.004b3759
lea ecx, [ebp - 0x94]
call fcn.004b3701
push eax
call fcn.004aee9f
add esp, 4
push 0x605d04
push 0x8a
call fcn.004aa1d8
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x479899
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004aa1d8
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x47988c
mov edx, dword [ebp - 0x98]
push edx
call fcn.004aa1d8
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jbe 0x47988c
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.004aeef5
add esp, 0xc
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push 0x47fb40
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0xffffffffffffffff
push str.CProgressExUI
call fcn.004b3501
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
call fcn.004d16cb
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004d1745
push 0x47f3e0
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0xbc], esp
push 0xffffffffffffffff
push str.COptionExUI
call fcn.004b3501
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 2
call fcn.004d16cb
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004d1745
push 0x47ec90
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 0xffffffffffffffff
push str.CControlExUI
call fcn.004b3501
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 3
call fcn.004d16cb
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004d1745
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b3603
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x4824b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4824b9
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 0x4824fc
mov eax, dword [ebp - 8]
jmp 0x482562
cmp dword [ebp - 0xc], 1
je 0x48250f
cmp dword [ebp - 0xc], 2
je 0x48250f
mov eax, 0xd
jmp 0x482562
cmp dword [ebp + 0xc], 0
je 0x482556
cmp dword [ebp - 4], 0
je 0x482545
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x48253c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x482543
mov eax, 0xd
jmp 0x482562
jmp 0x482556
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 0x482570
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 0x61ec68
push 1
push 0
push 0x61ec48
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4825ca
mov edx, dword [ebp - 4]
push edx
push 0x611a68
call fcn.00476460
add esp, 8
jmp 0x482626
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 0x4825fa
mov edx, dword [ebp - 4]
push edx
push str.get_LocalPolicy_failed:_0x_08lx_n
call fcn.00476460
add esp, 8
jmp 0x482626
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 0x482626
mov edx, dword [ebp - 4]
push edx
push str.get_CurrentProfile_failed:_0x_08lx_n
call fcn.00476460
add esp, 8
cmp dword [ebp - 8], 0
je 0x48263a
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 0x48264e
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 0x484640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af68b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x63f070]
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.0057a870
add esp, 0xc
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], 1
push 0x612b40
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 0x484738
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 0x48472b
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.004a6edb
mov esp, ebp
pop ebp
ret

Function at 0x4847a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x63f070]
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.0057a870
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 0x484856
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 0x484849
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.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x485b00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af7fb
mov eax, dword fs:[0]
push eax
mov eax, 0x4044
call fcn.004a8150
mov eax, dword [0x63f070]
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 0x5e48ba
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.0057a870
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 0x485c8c
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 0x485c8c
mov dword [ebp - 0x4040], 0
mov dword [ebp - 0x4050], 0
lea ecx, [ebp - 0x4050]
push ecx
lea edx, [ebp - 0x4040]
push edx
push 0x612d18
lea eax, [ebp - 0x4024]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x485c8c
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.004896e0
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x403c]
call fcn.0042a3d0
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.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x486b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x63f070]
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 0x486bc4
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 0x486bc4
xor al, al
jmp 0x486cc9
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.0057a870
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 0x486c78
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 0x486c78
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x486cc9
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.00588743
add esp, 8
call fcn.005a4ec0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x55f0
jl 0x486cb9
mov dword [ebp - 0x220], 1
jmp 0x486cc3
mov dword [ebp - 0x220], 0
mov al, byte [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret

Function at 0x487730
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 0x487774
mov dword [ebp - 8], 0
lea ecx, [ebp + 8]
call fcn.00413710
mov eax, dword [ebp - 8]
jmp 0x48779e
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 0x487850
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63f070]
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.0057a870
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.0057a870
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.0057a870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0057a870
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.0058cf9f
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x613a94
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 0x4879a3
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.TestEnv
push 0x613a74
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x487991
mov dword [ebp - 0x828], 1
jmp 0x48799b
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x4879a5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x4879c0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63f070]
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.0057a870
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.0057a870
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.0057a870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0057a870
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.0058cf9f
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x613b00
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 0x487b13
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.ReplacePackage
push 0x613ac0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x487b01
mov dword [ebp - 0x828], 1
jmp 0x487b0b
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x487b15
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x487b30
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63f070]
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.0057a870
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.0057a870
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.0057a870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0057a870
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.0058cf9f
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x613ad4
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 0x487c83
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.AutoRun
push 0x613b98
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x487c71
mov dword [ebp - 0x828], 1
jmp 0x487c7b
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x487c85
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
Function at 0x487ca0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x63f070]
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.0057a870
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.0057a870
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.0057a870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0057a870
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.0058cf9f
add esp, 0x24
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x613b4c
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 0x487df3
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.FullLog
push str.Settings
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 1
jne 0x487de1
mov dword [ebp - 0x828], 1
jmp 0x487deb
mov dword [ebp - 0x828], 0
mov al, byte [ebp - 0x828]
jmp 0x487df5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret