joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e94d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x46c85c
push 0x46c830
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
mov dword [ebp - 4], eax
je 0x41ea05
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 4]
mov ebx, eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebx, ebx
mov dword [ebp - 0xc], eax
je 0x41ea05
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
call fcn.0041e8fe
mov eax, dword [eax]
mov dword [esp], 0x46c828
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402703
test esi, esi
jne 0x41e9fa
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_fwrite]
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
jmp 0x41ea07
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x41ea0b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call fcn.0041e8fe
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00402703
leave
ret

Function at 0x41eff4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.CInstall::DeleteUpgradingKey
lea ecx, [ebp - 0xc]
call fcn.00407111
and dword [ebp - 4], 0
push 0x2001f
push str.SOFTWARESymantecNorton_Security_Scan
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
call fcn.00402e79
test eax, eax
jne 0x41f0d3
and dword [ebp - 8], eax
push ebx
lea eax, [ebp - 8]
push eax
mov ebx, str.NSSUpgrading
push ebx
lea ecx, [ebp - 4]
call fcn.0041ed51
test eax, eax
jne 0x41f0ca
push esi
push edi
mov eax, dword [0x488018]
mov esi, 0x488018
cmp eax, esi
mov edi, 0x46cb4c
je 0x41f07a
test byte [eax + 0x1c], 1
je 0x41f07a
cmp byte [eax + 0x19], 4
jb 0x41f07a
push edi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41f0a2
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f0c8
test byte [eax + 0x1c], 1
je 0x41f0c8
cmp byte [eax + 0x19], 2
jb 0x41f0c8
push edi
push 0x15
jmp 0x41f0ba
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f0c8
test byte [eax + 0x1c], 1
je 0x41f0c8
cmp byte [eax + 0x19], 4
jb 0x41f0c8
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
pop edi
pop esi
lea ecx, [ebp - 4]
call fcn.00402e14
pop ebx
lea ecx, [ebp - 4]
call fcn.00402e14
lea ecx, [ebp - 0xc]
call fcn.00407157
leave
ret
Function at 0x41f0e5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push str.CInstall::SetUpgradeKey
lea ecx, [ebp - 8]
call fcn.00407111
and dword [ebp - 4], 0
push 0x2001f
push str.SOFTWARESymantecNorton_Security_Scan
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
call fcn.00402e79
test eax, eax
jne 0x41f192
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.Upgrade
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov esi, 0x488018
mov edi, 0x46cb4c
je 0x41f178
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f1bf
test byte [eax + 0x1c], 1
je 0x41f17d
cmp byte [eax + 0x19], 2
jb 0x41f17d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push edi
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f1bf
test byte [eax + 0x1c], 1
je 0x41f1bf
cmp byte [eax + 0x19], 4
jb 0x41f1bf
push edi
push 0x20
jmp 0x41f1b1
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x41f1bf
test byte [eax + 0x1c], 1
je 0x41f1bf
cmp byte [eax + 0x19], 4
jb 0x41f1bf
push 0x46cb4c
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00402e14
lea ecx, [ebp - 4]
call fcn.00402e14
lea ecx, [ebp - 8]
call fcn.00407157
pop edi
pop esi
leave
ret 4

Function at 0x41f224
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str.CInstall::SetInstallerErrorCode
lea ecx, [ebp - 0xc]
call fcn.00407111
xor eax, eax
push eax
push eax
push 0x2001f
push eax
push eax
push str.SOFTWARESymantecNorton_Security_Scan_Install_Result
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00402e2b
test eax, eax
jne 0x41f2e5
mov eax, dword [0x488018]
mov esi, 0x488018
cmp eax, esi
mov edi, 0x46cb4c
je 0x41f291
test byte [eax + 0x1c], 1
je 0x41f291
cmp byte [eax + 0x19], 4
jb 0x41f291
push edi
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
and dword [ebp - 8], 0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ErrorCode
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41f2cb
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f312
test byte [eax + 0x1c], 1
je 0x41f312
cmp byte [eax + 0x19], 4
jb 0x41f312
push edi
push 0x26
jmp 0x41f304
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f312
test byte [eax + 0x1c], 1
je 0x41f312
cmp byte [eax + 0x19], 4
jb 0x41f312
push edi
push 0x27
jmp 0x41f304
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x41f312
test byte [eax + 0x1c], 1
je 0x41f312
cmp byte [eax + 0x19], 4
jb 0x41f312
push 0x46cb4c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00402e14
lea ecx, [ebp - 4]
call fcn.00402e14
lea ecx, [ebp - 0xc]
call fcn.00407157
pop edi
pop esi
leave
ret
Function at 0x41f32e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.CInstall::SetNSSInstallErrorCode
lea ecx, [ebp - 0xc]
call fcn.00407111
and dword [ebp - 4], 0
push 0x2001f
push str.SOFTWARESymantecNSSInstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
call fcn.00402e79
test eax, eax
jne 0x41f402
push esi
push edi
mov eax, dword [0x488018]
mov esi, 0x488018
cmp eax, esi
mov edi, 0x46cb4c
je 0x41f396
test byte [eax + 0x1c], 1
je 0x41f396
cmp byte [eax + 0x19], 4
jb 0x41f396
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
and dword [ebp - 8], 0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ErrorCode
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41f3d0
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f3f6
test byte [eax + 0x1c], 1
je 0x41f3f6
cmp byte [eax + 0x19], 4
jb 0x41f3f6
push edi
push 0x2a
jmp 0x41f3e8
mov eax, dword [0x488018]
cmp eax, esi
je 0x41f3f6
test byte [eax + 0x1c], 1
je 0x41f3f6
cmp byte [eax + 0x19], 2
jb 0x41f3f6
push edi
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00402e14
pop edi
pop esi
jmp 0x41f42f
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x41f42f
test byte [eax + 0x1c], 1
je 0x41f42f
cmp byte [eax + 0x19], 2
jb 0x41f42f
push 0x46cb4c
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00402e14
lea ecx, [ebp - 0xc]
call fcn.00407157
leave
ret
Function at 0x41fc45
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x460346
call fcn.0045cea5
push str.CInstall::UpdateInstallCount
lea ecx, [ebp - 0x1c]
call fcn.00407111
xor edi, edi
push 0x48c1ac
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00405f70
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push str.SOFTWARESymantecNSSInstall
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00404494
push edi
push edi
push 0x2001f
push edi
push edi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00402e2b
test eax, eax
jne 0x41fd9a
lea eax, [ebp - 0x14]
push eax
mov esi, str.InstallCount
push esi
lea ecx, [ebp - 0x10]
call fcn.0041ed51
test eax, eax
jne 0x41fd18
cmp byte [ebp + 8], al
jne 0x41fd90
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41fd90
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x41fd90
test byte [eax + 0x1c], 1
je 0x41fd90
cmp byte [eax + 0x19], 2
jb 0x41fd90
push 0x46cb4c
push 0x30
jmp 0x41fd82
mov eax, dword [0x488018]
xor ebx, ebx
mov edi, 0x488018
inc ebx
cmp eax, edi
je 0x41fd49
test byte [eax + 0x1c], bl
je 0x41fd49
cmp byte [eax + 0x19], 4
jb 0x41fd49
push 0x46cb4c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41fd90
mov eax, dword [0x488018]
cmp eax, edi
je 0x41fd90
test byte [eax + 0x1c], bl
je 0x41fd90
cmp byte [eax + 0x19], 2
jb 0x41fd90
push 0x46cb4c
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00402e14
jmp 0x41fdc7
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x41fdc7
test byte [eax + 0x1c], 1
je 0x41fdc7
cmp byte [eax + 0x19], 2
jb 0x41fdc7
push 0x46cb4c
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00402e14
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402703
lea ecx, [ebp - 0x1c]
call fcn.00407157
call fcn.0045cf7d
ret 4
Function at 0x42087d
Capabilities:
Create process on windows
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call sub.MSVCR80.dll__get_wpgmptr
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], str.runas
jne 0x4208d4
mov dword [ebp - 0x34], str.open
push esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
mov dword [ecx], edx
je 0x420928
cmp esi, 0x20
jle 0x420928
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x42095c
test byte [eax + 0x1c], 1
je 0x42095c
cmp byte [eax + 0x19], 4
jb 0x42095c
push dword [ebp - 0x34]
push dword [ebp - 4]
push 0x46cf40
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041ed89
add esp, 0x18
jmp 0x42095c
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x42095c
test byte [eax + 0x1c], 1
je 0x42095c
cmp byte [eax + 0x19], 2
jb 0x42095c
push esi
push dword [ebp - 0x34]
push dword [ebp - 4]
push 0x46cf40
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004207c9
add esp, 0x1c
mov eax, esi
pop esi
leave
ret

Function at 0x420961
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCR80.dll__get_wpgmptr
pop ecx
lea ecx, [ebp - 0x30]
call sub.ccL80U.dll_Ordinal_2945
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
push eax
call sub.ccL80U.dll_Ordinal_2955
test eax, eax
je 0x420a1e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
call sub.ccL80U.dll_Ordinal_2955
test eax, eax
je 0x4209fd
push dword [ebp - 4]
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4209f0
mov eax, dword [0x488018]
cmp eax, 0x488018
mov bl, 1
je 0x4209f0
test byte [eax + 0x1c], bl
je 0x4209f0
cmp byte [eax + 0x19], 4
jb 0x4209f0
push dword [ebp - 4]
push 0x46cf40
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004070b8
add esp, 0x14
lea ecx, [ebp - 0x30]
call sub.ccL80U.dll_Ordinal_2946
mov al, bl
pop ebx
leave
ret
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x4209f0
test byte [eax + 0x1c], 1
je 0x4209f0
cmp byte [eax + 0x19], 2
jb 0x4209f0
push 0x46cf40
push 0xd
jmp 0x420a3d
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x4209f0
test byte [eax + 0x1c], 1
je 0x4209f0
cmp byte [eax + 0x19], 2
jb 0x4209f0
push 0x46cf40
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
jmp 0x4209f0
Function at 0x421374
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4213dc
cmp dword [ebp + 0x10], 1
je 0x4213b5
cmp dword [ebp + 0x10], 2
je 0x4213b5
push 0xd
pop eax
jmp 0x4213dc
test edi, edi
mov eax, dword [ebp - 4]
je 0x4213d6
test eax, eax
je 0x4213d2
test al, 1
jne 0x4213b0
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4213d6
jmp 0x4213b0
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x42545f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0xc]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x425586
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x48c1ac
lea ecx, [ebp - 4]
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x28], 5
call fcn.00405f70
push dword [ebp + 8]
lea eax, [ebp - 4]
push str._state_d
push eax
call fcn.00411b91
mov edi, dword [edi + 8]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 4]
call fcn.004069d3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42553b
cmp dword [ebp + 8], esi
jne 0x4254ee
push 0xea60
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x42552b
test byte [eax + 0x1c], 1
je 0x42552b
cmp byte [eax + 0x19], 4
jb 0x42552b
push 0x46ddec
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00402703
xor eax, eax
inc eax
jmp 0x4255b5
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x425574
test byte [eax + 0x1c], 1
je 0x425574
cmp byte [eax + 0x19], 2
jb 0x425574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push 0x46ddec
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov ebx, 0x80004005
call fcn.00402703
jmp 0x4255b3
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x4255b3
test byte [eax + 0x1c], 1
je 0x4255b3
cmp byte [eax + 0x19], 2
jb 0x4255b3
push 0x46ddec
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4255bc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x425615
cmp dword [ebp - 0x7c], 5
jae 0x425611
cmp dword [ebp - 0x7c], 4
jne 0x425615
cmp dword [ebp - 0x78], 0x5a
jb 0x425615
xor eax, eax
jmp 0x425618
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0045ce96
add ebp, 0x98
leave
ret
Function at 0x425cab
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x84
lea ebp, [esp - 4]
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x18
mov eax, 0x45f68d
call fcn.0045cea5
mov ebx, dword [ebp + 0x90]
mov edi, dword [ebp + 0x94]
mov esi, 0x48c1ac
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], 0
call fcn.00405f70
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00405f70
push 0x46df84
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00404494
test ebx, ebx
je 0x425e1a
call fcn.0042ab82
cmp dword [eax + 0xc8], 0
je 0x425d36
call fcn.0042ab82
add eax, 0x818
push eax
lea ecx, [ebp - 0x1c]
call fcn.00415c61
jmp 0x425d6a
call fcn.0042ab82
add eax, 0x818
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00421baf
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00415c61
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00402703
push dword [ebp - 0x20]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x425dd2
push dword [ebp - 0x1c]
lea ecx, [ebp]
call fcn.0041baad
push dword [ebp - 0x24]
mov esi, dword [ebp]
push 1
push esi
call sub.MSVCR80.dll_strlen
pop ecx
push eax
push esi
call dword [sym.imp.MSVCR80.dll_fwrite]
push dword [ebp - 0x24]
test eax, eax
seta byte [ebp - 0xd]
call dword [sym.imp.MSVCR80.dll_fclose]
lea eax, [ebp + 4]
add esp, 0x14
cmp dword [ebp], eax
je 0x425e81
push dword [ebp]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x425e81
push esi
lea ecx, [ebp - 0x14]
call fcn.00405f70
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00405f70
push 0x3fe
mov byte [ebp - 4], 4
call fcn.0041a10a
push eax
lea ecx, [ebp - 0x14]
call fcn.0040444c
push 0x1f46
call fcn.0041a10a
push eax
lea ecx, [ebp - 0x18]
call fcn.0040444c
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jmp 0x425e60
push esi
lea ecx, [ebp - 0x18]
call fcn.00405f70
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00405f70
push 0x40e
mov byte [ebp - 4], 6
call fcn.0041a10a
push eax
lea ecx, [ebp - 0x18]
call fcn.0040444c
push 0x1f46
call fcn.0041a10a
push eax
lea ecx, [ebp - 0x14]
call fcn.0040444c
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
call fcn.00402703
lea ecx, [edi - 0x10]
call fcn.00402703
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402703
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402703
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0045ce96
add ebp, 0x88
leave
ret
Function at 0x425f74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x1c], 2
push edi
mov ebp, ecx
jne 0x425f9f
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x425faa
mov esi, dword [eax + 8]
push 0x46df98
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
jmp 0x425ff3
cmp dword [esp + 0x20], esi
jne 0x425faa
mov eax, dword [ebp + 0x10]
jmp 0x425f8a
push 0x46df98
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x425ff9
mov eax, dword [ebp]
mov esi, dword [eax + 8]
push 0x46df98
push dword [esp + 0x18]
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x425ff9
mov eax, dword [ebp + 4]
mov esi, dword [eax + 8]
push 0x46df98
push dword [esp + 0x18]
push esi
call ebx
mov edi, eax
test edi, edi
je 0x42600b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x42605c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42601f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x426053
test byte [eax + 0x1c], 1
je 0x426053
cmp byte [eax + 0x19], 2
jb 0x426053
push esi
push dword [esp + 0x18]
push 0x46df88
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00426ba7
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4260c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x426089
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x4260b9
test byte [eax + 0x1c], 1
je 0x4260b9
cmp byte [eax + 0x19], 2
jb 0x4260b9
push esi
push 0x46df88
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x426053
lea ebx, [esi + 2]
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
push ebx
mov edi, eax
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0x10
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x426142
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4260fc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x42612c
test byte [eax + 0x1c], 1
je 0x42612c
cmp byte [eax + 0x19], 2
jb 0x42612c
push esi
push 0x46df88
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x426053
push esi
push eax
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [eax], edi
xor esi, esi
jmp 0x42612c