joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dcb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00446080
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41dd10
cmp dword [ebp - 0x114], 6
jb 0x41dd10
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00445a92
mov esp, ebp
pop ebp
ret

Function at 0x41eed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462957
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi], vtable.ICallbackTarget.0
mov dword [esi + 4], vtable.IDynamicListViewItem.0
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
call fcn.0041e820
mov dword [esi + 0x2c], vtable.WTL::CMessageFilter.0
mov dword [esi + 0x30], vtable.WTL::CIdleHandler.0
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CProductCtrl.4.0
mov dword [esi + 4], vtable.CProductCtrl.3.0
mov dword [esi + 8], vtable.CProductCtrl.2.0
mov dword [esi + 0x2c], vtable.CProductCtrl.1.0
mov dword [esi + 0x30], vtable.CProductCtrl.0
call fcn.0041a7d0
mov edx, dword [0x48134c]
mov eax, dword [edx + 0xc]
mov ecx, 0x48134c
mov byte [ebp - 4], 2
call eax
add eax, 0x10
mov dword [esi + 0xa8], eax
mov dword [esi + 0xc0], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0xac], edi
mov byte [ebp - 4], 3
cmp dword [0x4807cc], edi
jne 0x41f022
call fcn.0041a840
cmp eax, edi
je 0x41f04d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push eax
call edx
mov dword [0x4807cc], eax
cmp eax, edi
je 0x41f022
mov eax, dword [0x48136c]
push 0xdc
push 0x469c74
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041bc10
add esp, 0x10
mov eax, dword [eax]
mov ecx, dword [0x4807cc]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0xc]
mov byte [ebp - 4], 4
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f022
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x4807cc], edi
jmp 0x41f022
Function at 0x4203f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462bb8
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x472350
lea ecx, [ebp - 0x78]
mov dword [esi + 0xac], 4
call fcn.0040fbb0
xor eax, eax
push 0x62
push eax
lea ecx, [ebp - 0x72]
push ecx
mov dword [ebp - 4], 0
mov word [ebp - 0x74], ax
call fcn.00446080
add esp, 0xc
lea edx, [ebp - 0xf8]
push edx
mov ecx, esi
call fcn.0041e540
mov eax, dword [eax + 8]
push 0
push 9
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCompactPathExW]
lea ecx, [ebp - 0xf8]
call fcn.00426220
push 1
push 0
mov ecx, esi
call fcn.0041f140
mov ecx, dword [esi + 0x54]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov edx, dword [esi + 0x5c]
push 5
push edx
call edi
mov eax, dword [esi + 0x60]
push 0
push eax
call edi
mov ecx, dword [esi + 0x64]
push 0
push ecx
call edi
mov edx, dword [esi + 0x68]
push 5
push edx
call edi
push 5
lea eax, [ebp - 0x78]
push str._._colorrgb_7_205_90__hovercolorrgb_6_184_80__linkcolorrgb_69_217_131__disablecolorrgb_168_237_197__font
push eax
call fcn.00417c80
mov ecx, dword [ebp - 0x78]
mov edx, dword [esi + 0x68]
add esp, 0xc
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x70]
push 0
push eax
call edi
mov edi, dword [0x4812e4]
test edi, edi
je 0x420504
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420504
push 0
push 1
push 0xbd5
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0xc]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420542
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00445a92
mov esp, ebp
pop ebp
ret

Function at 0x4216b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0
jne 0x4216e8
mov eax, dword [esi + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x68], eax
cmp eax, 0xffffffff
jne 0x4216e8
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 8
mov eax, dword [esi + 0x68]
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x421721
cmp eax, 0xffffffff
je 0x421721
push 2
push 0
push 0
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x68]
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x421f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0xc]
xor esi, esi
push eax
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], esi
call fcn.0040f7f0
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
mov dword [ebp - 0x10], esi
sar ecx, 2
test ecx, ecx
jbe 0x421fe5
mov edx, dword [edi + 0x34]
sub edx, dword [edi + 0x30]
sar edx, 2
cmp esi, edx
jb 0x421f71
call fcn.00446257
mov eax, dword [edi + 0x30]
cmp dword [eax + esi*4], 0
je 0x421fd0
mov ecx, dword [edi + 0x34]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x421f8b
call fcn.00446257
mov edx, dword [edi + 0x30]
mov ebx, dword [edx + esi*4]
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov esi, esp
mov dword [esi], eax
mov cx, word [ebp + 0x10]
mov word [esi + 4], cx
mov edx, dword [ebp + 0x14]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
push eax
call fcn.0040f250
mov ecx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
mov edx, dword [eax]
push ecx
mov ecx, ebx
call edx
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
inc esi
sar eax, 2
mov dword [ebp - 0x10], esi
cmp esi, eax
jb 0x421f5f
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42200b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x423570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x423550
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x5c], eax
call fcn.00449a95
add esp, 0x18
mov dword [esi + 0x1c], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x46a694
push eax
call fcn.00449fbb
mov esi, eax
add esp, 8
test esi, esi
jne 0x423a52
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x45c]
push eax
call fcn.00408740
push esi
push 0x400
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.00449ed8
add esp, 0x14
test eax, eax
je 0x423aaf
lea esp, [esp]
push eax
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x45c]
push eax
call fcn.00408770
push esi
push 0x400
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.00449ed8
add esp, 0x1c
test eax, eax
jne 0x423a80
lea edx, [ebp - 0x45c]
push edx
push edi
call fcn.00408810
push esi
call fcn.00449bbc
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00445a92
mov esp, ebp
pop ebp
ret
Function at 0x423b00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
cmp eax, ebx
jne 0x423b33
push str.NULL__lpFilePath
call fcn.00426100
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xffffffff
jne 0x423b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_Error__Code___d
call fcn.00426100
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x423ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeEx_Error__Code___d
call fcn.00426100
add esp, 8
jmp 0x423cb0
mov esi, dword [ebp - 0x1c]
push edi
push 0x481e06
push esi
mov dword [ebp - 0x14], esi
call fcn.00449454
add esp, 8
mov edi, eax
test edi, edi
jne 0x423bf9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x481e06
push esi
call fcn.00449454
inc ebx
add esp, 8
cmp ebx, 3
mov edi, eax
jl 0x423bb7
test edi, edi
jne 0x423bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_Buffer_Error__Code___d
call fcn.00426100
add esp, 8
jmp 0x423caf
mov ebx, esi
mov eax, esi
xor esi, esi
shr ebx, 0xc
and eax, 0xfff
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
test ebx, ebx
jbe 0x423c64
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp + 8]
push ecx
push 0x1000
lea edx, [esi + edi]
push edx
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c48
mov eax, dword [ebp - 4]
add esi, dword [ebp + 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, ebx
jb 0x423c14
jmp 0x423c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_Error1__Code___d
call fcn.00426100
add esp, 8
cmp dword [ebp - 4], ebx
jb 0x423caf
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x423c9d
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp + 8]
push ecx
push eax
add esi, edi
push esi
push edx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46a6a4
call fcn.00426100
add esp, 8
jmp 0x423caf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x423cbe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00447370
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1010], ecx
cmp eax, 0xffffffff
je 0x423e5a
xor ebx, ebx
cmp edi, ebx
je 0x423e5a
mov eax, dword [ebp + 0x10]
push esi
mov esi, eax
shr esi, 0xc
and eax, 0xfff
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1008], ebx
cmp esi, ebx
jbe 0x423dce
nop
push 0x1000
lea edx, [ebp - 0x1004]
push edi
push edx
call fcn.00449fe0
mov edx, dword [ebp - 0x100c]
add esp, 0xc
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423e0b
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x423dbd
mov ecx, dword [ebp - 0x1008]
add dword [eax], ecx
inc ebx
add edi, 0x1000
cmp ebx, esi
jb 0x423d70
mov eax, dword [ebp - 0x1014]
test eax, eax
jbe 0x423e44
push eax
lea edx, [ebp - 0x1004]
push edi
push edx
call fcn.00449fe0
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
push 0
lea eax, [ebp - 0x1008]
push eax
mov eax, dword [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x1004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x423e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_Error__Code___d
call fcn.00426100
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x423e44
mov ecx, dword [ebp - 0x1008]
add dword [eax], ecx
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00445a92
mov esp, ebp
pop ebp
ret

Function at 0x424030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
je 0x42404b
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 4], edi
mov eax, dword [esi + 0x10]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x424062
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x10], edi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42408b
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424082
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [ebp + 0x10]
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x4241f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
inc edi
cmp esi, 0xffffffff
jne 0x424254
cmp edi, 3
jle 0x424206
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.CreateFile_Error__Code___d__File_s
call fcn.00426100
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
push edx
push esi
mov dword [ebp + 8], 0
call fcn.00423d10
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424310
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.00447370
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x800
lea ecx, [ebp - 0x1104]
push 0
push ecx
mov dword [ebp - 0x1108], eax
call fcn.00446080
push 0x800
lea edx, [ebp - 0x904]
push 0
push edx
call fcn.00446080
add esp, 0x18
push 0
push 0x1a
lea eax, [ebp - 0x1104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x42437e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x100
lea ecx, [ebp - 0x104]
push 0
push ecx
call fcn.00446080
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x4243b0
lea edx, [ebp - 0x104]
push 0x80
push edx
call fcn.00423ef0
add esp, 8
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x1104]
push ecx
lea edx, [ebp - 0x904]
push edx
call edi
lea eax, [ebp - 0x904]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4243e4
mov ecx, dword [str..tmp]
mov edx, dword [0x46a9f0]
mov dword [eax], ecx
mov cx, word [0x46a9f4]
mov dword [eax + 4], edx
lea edx, [ebp - 0x904]
push edx
mov word [eax + 8], cx
call ebx
test eax, eax
je 0x424432
inc esi
cmp esi, 0xa
jl 0x4243b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x904]
lea edx, [eax + 2]
jmp 0x424440
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424440
mov ecx, dword [ebp - 0x1108]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x904]
push eax
call fcn.0040f6c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00445a92
mov esp, ebp
pop ebp
ret
Function at 0x4246b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test edi, edi
je 0x4247d2
test esi, esi
je 0x4247d2
cmp word [edi], 0
je 0x4247d2
cmp word [esi], 0
je 0x4247d2
push ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.Environment
push SysReAllocString
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x20]
mov ebx, eax
je 0x4247be
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424720
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 2
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x4247a5
mov edx, dword [str.Environment]
mov eax, dword [0x46a9fc]
mov ecx, dword [0x46aa00]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x46aa04]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x24]
push edx
push 0xbb8
mov dword [ebp - 0x18], eax
mov eax, dword [0x46aa08]
push 1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x46aa0c]
push 0x1a
push 0xffff
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
xor esi, esi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00445a92
mov esp, ebp
pop ebp
ret
Function at 0x4248f0
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00446080
add esp, 0xc
call fcn.00424870
cmp eax, 5
ja case.default.0x424930
jmp dword [eax*4 + 0x424a88]
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x424a74
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
jmp 0x424960
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x424960
push esi
mov ecx, 0xa
mov esi, str.Local_SettingsTemp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp case.default.0x424930
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x424a74
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4249a5
mov ecx, dword [str.LocalTemp]
mov edx, dword [0x46aa40]
mov dword [eax], ecx
mov ecx, dword [0x46aa44]
mov dword [eax + 4], edx
mov edx, dword [0x46aa48]
mov dword [eax + 8], ecx
mov ecx, dword [0x46aa4c]
mov dword [eax + 0xc], edx
mov edx, dword [0x46aa50]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp case.default.0x424930
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00446080
lea eax, [ebp - 0x20c]
add esp, 0xc
add eax, 0xfffffffe
jmp 0x424a10
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x424a10
mov ecx, dword [str.C:Temp]
mov edx, dword [0x46aa30]
mov dword [eax], ecx
mov ecx, dword [0x46aa34]
mov dword [eax + 4], edx
mov edx, dword [0x46aa38]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x20c]
push eax
push 0x46aa24
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x424a74
lea ecx, [ebp - 0x20c]
mov edi, 0x46aa24
call fcn.004246b0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00445a92
mov esp, ebp
pop ebp
ret
Function at 0x424d20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ff0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x47e4f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x424da3
mov ecx, dword [ebp + 0x10]
push ecx
call esi
test eax, eax
je 0x424da3
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00423b00
add esp, 8
test eax, eax
je 0x424da3
movzx edx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0x46abe8
push edx
push eax
call fcn.004240d0
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x424db3
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424dd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424dfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret