joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449dfe
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x10
push eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call ebx
push 0x526be0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x10
push eax
push 0
call ebx
push 0x526bf4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x44a56a
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x5202b6
call fcn.004ac5bf
mov esi, ecx
mov edi, 0x56dff0
mov ecx, edi
call fcn.00449c9e
mov ecx, eax
call fcn.00451b36
test al, al
je 0x44a65d
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x526be0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, edi
call fcn.00449c9e
lea ecx, [ebp - 0x248]
push ecx
mov ecx, eax
call fcn.0045198c
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], ebx
jb 0x44a5f0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00516250
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.004049c9
mov edi, str.hnote.exe
push edi
call fcn.00408db0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004126e0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x218]
push ebx
push ecx
lea eax, [ebp - 0x230]
mov ecx, esi
cmovae eax, dword [ebp - 0x230]
push ebx
push eax
call fcn.0044a663
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00409a10
call fcn.004ac569
ret
Function at 0x44a663
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x424
mov eax, 0x5202f4
call fcn.004ac5bf
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x430], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44a696
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov dword [ebp - 0x424], eax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004e9750
and dword [ebp - 0x42c], 0
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.004e9750
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x44a6f8
mov esi, 0x80004005
jmp 0x44a7c9
lea eax, [ebp - 0x424]
push eax
push 0x529748
push 1
push 0
push 0x5297c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x44a7c9
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0044a43d
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x218]
push edx
push eax
mov byte [ebp - 4], 1
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x44a7b5
mov eax, dword [ebp - 0x424]
mov ecx, 0x549dd0
mov esi, dword [ebp - 0x430]
test esi, esi
cmovne ecx, esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
js 0x44a7b5
test ebx, ebx
je 0x44a787
mov eax, dword [ebp - 0x424]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x44a7b5
mov eax, 0x104
push eax
push edi
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004f98b4
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
add esp, 0x10
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x428]
mov byte [ebp - 4], 0
test eax, eax
je 0x44a7c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x44a7dd
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
call fcn.004ac569
ret 0x10

Function at 0x44a7e7
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44a86e
test esi, esi
je 0x44a86e
push dword [ebp + 0x10]
lea eax, [ebp - 0x23c]
push eax
call fcn.0044bce0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e9750
add esp, 0x14
mov dword [ebp - 0x240], 0x104
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x2000
push esi
push edi
call fcn.0044ab4e
add esp, 0x18
jmp 0x44a870
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x44ab4e
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push 0x14
mov eax, 0x5203a6
call fcn.004ac58b
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 8], ebx
je 0x44acf4
cmp dword [ebp + 0xc], ebx
je 0x44acf4
cmp dword [ebp + 0x18], ebx
je 0x44acf4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push 0x526c88
push 1
push ebx
push 0x526ca8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x44abf8
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test eax, eax
je 0x44abbd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x44abce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x44abde
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44acf4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x44acf4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
push 0x526c78
push 0x526c98
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x44abac
mov eax, dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
test eax, eax
js 0x44abac
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
test eax, eax
js 0x44abac
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
test eax, eax
js 0x44abac
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x44abac
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x44abac
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x529778
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x18]
js 0x44abaf
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
test eax, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
js 0x44abb3
test eax, eax
je 0x44acbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x44acd0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x44ace0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44acf1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
inc ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
call fcn.004ac554
ret
Function at 0x44ad02
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x58
mov eax, 0x5203f9
call fcn.004ac5bf
mov edi, 0x526cc8
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push edi
push ebx
call fcn.00515cc0
pop ecx
xor esi, esi
pop ecx
test al, al
jne 0x44ad37
push 0x20006
push edi
push esi
push ebx
call fcn.00515d30
add esp, 0x10
mov ecx, 0x56dff0
call fcn.00449c9e
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0045198c
mov ebx, 0x526c14
mov dword [ebp - 4], esi
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004082d0
push 2
push eax
push str.UninstallString
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
call fcn.00515da0
add esp, 0x20
lea ecx, [ebp - 0x28]
push esi
push 1
call fcn.004049c9
push esi
or edi, 0xffffffff
lea ecx, [ebp - 0x40]
push 1
mov dword [ebp - 4], edi
call fcn.004049c9
mov esi, 0x526d14
lea ecx, [ebp - 0x28]
push esi
call fcn.00403a6c
push 2
pop eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push str.DisplayName
push 0x526cc8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00515da0
add esp, 0x14
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004049c9
push 0x526d2c
lea ecx, [ebp - 0x28]
call fcn.00403a6c
push 2
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
push str.DisplayVersion
push 0x526cc8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00515da0
add esp, 0x14
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004049c9
mov ecx, 0x56dff0
call fcn.00449c9e
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0045198c
mov dword [ebp - 4], 4
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004082d0
push 2
push eax
push str.DisplayIcon
push 0x526cc8
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 5
call fcn.00515da0
add esp, 0x20
lea ecx, [ebp - 0x40]
xor ebx, ebx
push ebx
push 1
call fcn.004049c9
push ebx
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.004049c9
push esi
lea ecx, [ebp - 0x58]
call fcn.00403a6c
push 2
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 6
push eax
push str.Publisher
mov esi, 0x526cc8
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push esi
push edi
call fcn.00515da0
add esp, 0x14
lea ecx, [ebp - 0x58]
push ebx
push 1
call fcn.004049c9
push ebx
call fcn.004f97a5
pop ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push ebx
push esi
push edi
mov dword [ebp - 0x60], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44af19
push ebx
push ebx
push ebx
push ebx
mov edi, 0x526d5c
push edi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x44aefd
push 8
lea eax, [ebp - 0x64]
push eax
push 0xb
push ebx
push edi
push dword [ebp - 0x5c]
call esi
push 8
lea eax, [ebp - 0x64]
push eax
push 0xb
push ebx
push str.LastUpdateDate
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004ac569
ret
Function at 0x44ba3a
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor esi, esi
push esi
push eax
call fcn.004e9750
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44bb28
push 0x526e50
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44bab5
lea ecx, [ebp - 0x144]
push ecx
call eax
jmp 0x44bac2
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 2
pop ecx
cmp dword [ebp - 0x110], ecx
jne 0x44bb26
cmp dword [ebp - 0x11c], 4
jbe 0x44bb26
cmp dword [ebp - 0x11c], 6
jne 0x44bafe
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x44baed
push 4
jmp 0x44bb13
cmp eax, 1
jne 0x44baf6
push 5
jmp 0x44bb13
cmp eax, ecx
jne 0x44bb26
push 6
jmp 0x44bb13
cmp dword [ebp - 0x11c], 5
jne 0x44bb26
mov eax, dword [ebp - 0x118]
cmp eax, ecx
jne 0x44bb16
push 3
pop esi
jmp 0x44bb26
xor edx, edx
inc edx
cmp eax, edx
jne 0x44bb21
mov esi, ecx
jmp 0x44bb26
test eax, eax
cmove esi, edx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x44be6d
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x7c
mov eax, 0x5205b6
call fcn.004ac5bf
lea eax, [ebp - 0x88]
push 0x1a
push eax
call fcn.00516900
push str.Heinote_
push eax
lea eax, [ebp - 0x40]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004082d0
add esp, 0x14
xor ebx, ebx
mov byte [ebp - 4], 2
push edi
inc ebx
lea ecx, [ebp - 0x88]
push ebx
call fcn.004049c9
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00516250
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x44bed1
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
push ebx
lea ecx, [ebp - 0x70]
call fcn.00409a10
mov ecx, 0x56dff0
call fcn.00449c9e
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0045198c
mov esi, str.Heinote.ini
mov byte [ebp - 4], 3
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004082d0
add esp, 0xc
push edi
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.004049c9
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408250
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44bf63
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004049c9
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.004049c9
push edi
push ebx
lea ecx, [ebp - 0x40]
call fcn.004049c9
call fcn.004ac569
ret
Function at 0x44bf87
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44c0b2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44c0b2
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004e9750
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004e9750
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
push edi
call fcn.0044c435
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x414]
test esi, esi
jne 0x44c048
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.del
push eax
call fcn.00420a98
add esp, 0x10
jmp 0x44c065
push esi
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.del_d
push eax
call fcn.00420a98
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44c092
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44c092
cmp esi, 0xa
jge 0x44c0b2
inc esi
jmp 0x44c00a
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004edee7
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ac267
mov esp, ebp
pop ebp
ret 4

Function at 0x44c0c4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x56dff0
call fcn.00449c9e
lea ecx, [ebp - 0x120]
push ecx
mov ecx, eax
call fcn.0045198c
cmp dword [eax + 0x14], 0x10
jb 0x44c0fb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 1
lea ecx, [ebp - 0x120]
call fcn.004049c9
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ac267
mov esp, ebp
pop ebp
ret 4
Function at 0x44c236
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0x15c
mov eax, 0x5205f4
call fcn.004ac5bf
mov ebx, ecx
mov esi, 0x104
lea eax, [ebp - 0x114]
push esi
xor edi, edi
push edi
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov edi, 0x56dff0
mov ecx, edi
call fcn.00449c9e
push 0x527414
push str.7ZDATA
mov ecx, eax
call fcn.004049b7
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x44c42f
mov ecx, edi
call fcn.00449c9e
push esi
mov ecx, eax
call fcn.004049b7
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, edi
mov dword [ebp - 0x168], eax
call fcn.00449c9e
push esi
mov ecx, eax
call fcn.004049b7
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [ebp - 0x114]
mov dword [ebp - 0x164], eax
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x44c2f0
mov esi, str.HN7zData.7z
lea eax, [ebp - 0x114]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x44c354
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00516250
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
pop ecx
cmovae eax, dword [ebp - 0x12c]
pop ecx
push eax
mov ecx, ebx
call fcn.0044bf87
xor edi, edi
lea ecx, [ebp - 0x12c]
push edi
push 1
call fcn.00409a10
jmp 0x44c356
xor edi, edi
push edi
push 0x80
push 1
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44c3a2
push edi
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], edi
push eax
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x56dff0
call fcn.00449c9e
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, eax
call fcn.0045198c
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x44c3c5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00516250
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 2
call fcn.004049c9
lea eax, [ebx + 8]
neg ebx
lea ecx, [ebp - 0x114]
sbb ebx, ebx
and ebx, eax
cmp dword [ebp - 0x130], 8
push ebx
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
push ecx
push eax
call fcn.00443b88
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 1
lea ecx, [ebp - 0x144]
call fcn.00409a10
call fcn.004ac569
ret
Function at 0x44cddf
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x44ce27
xor eax, eax
jmp 0x44cea7
push ebx
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x44cea4
push edi
push ebx
call fcn.004ac30e
pop ecx
mov edi, eax
mov dword [ebp - 0x214], esi
push edi
push ebx
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44ce9c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x54c964
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44ce9c
mov eax, dword [ebp - 0x210]
mov esi, dword [eax + 8]
push edi
call fcn.004ac317
pop ecx
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x44d025
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0x1f8
mov eax, 0x5206e6
call fcn.004ac5bf
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
xor edi, edi
mov dword [ebp - 0x12c], 0x11c
push eax
mov dword [ebp - 0x130], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44d1bf
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x128]
sub eax, 4
je 0x44d17d
sub eax, 1
je 0x44d133
sub eax, 1
je 0x44d0bb
sub eax, 4
jne 0x44d1bf
cmp dword [ebp - 0x124], edi
jne 0x44d1bf
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x44d0b4
push str.Windows_10
call fcn.00403a6c
jmp 0x44d245
push str.Windows_Server_2016_Techical_Preview
jmp 0x44d0aa
mov eax, dword [ebp - 0x124]
sub eax, edi
je 0x44d11a
sub eax, 1
je 0x44d104
sub eax, 1
je 0x44d0ee
sub eax, 1
jne 0x44d1bf
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x44d0e7
push str.Windows_8.1
jmp 0x44d0aa
push str.Windows_Server_2012_R2
jmp 0x44d0aa
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x44d0fd
push str.Windows_8
jmp 0x44d0aa
push str.Windows_Server_2012
jmp 0x44d0aa
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x44d113
push str.Windows_7
jmp 0x44d0aa
push str.Windows_Server_2008_R2
jmp 0x44d0aa
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x44d129
push str.Windows_Vista
jmp 0x44d0aa
push str.Windows_Server_2008
jmp 0x44d0aa
mov eax, dword [ebp - 0x124]
sub eax, edi
je 0x44d176
sub eax, 1
je 0x44d16f
sub eax, 1
jne 0x44d1bf
mov al, byte [ebp - 0x12]
cmp al, 1
jne 0x44d164
cmp word [ebp - 0x154], 9
jne 0x44d1bf
push str.Windows_XP_Professional_x64_Edition
mov ecx, esi
jmp 0x44d0aa
cmp al, 3
jne 0x44d1bf
push str.Windows_Server_2003
jmp 0x44d15d
push str.Windows_XP
jmp 0x44d15d
push str.Windows_2000
jmp 0x44d15d
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x44d19f
cmp eax, 0xa
je 0x44d198
cmp eax, 0x5a
jne 0x44d1bf
push str.Windows_Me
jmp 0x44d15d
push str.Windows_98
jmp 0x44d15d
cmp dword [ebp - 0x11c], 2
jne 0x44d1af
push str.Windows_NT_4.0
jmp 0x44d15d
cmp dword [ebp - 0x11c], 1
jne 0x44d1bf
push str.Windows_95
jmp 0x44d15d
push 1
push 3
lea ecx, [ebp - 0x204]
call fcn.0040cb60
lea eax, [ebp - 0x1f4]
mov dword [ebp - 4], edi
push str.Windows_NT
push eax
call fcn.00405a75
pop ecx
pop ecx
mov edi, 0x54ae2c
lea ecx, [ebp - 0x1f4]
push edi
push dword [ebp - 0x128]
call fcn.0044ccd6
push eax
call fcn.00405a75
pop ecx
pop ecx
push edi
push dword [ebp - 0x124]
lea ecx, [ebp - 0x1f4]
call fcn.0044ccd6
push eax
call fcn.00405a75
pop ecx
pop ecx
push dword [ebp - 0x120]
lea ecx, [ebp - 0x1f4]
call fcn.0044ccd6
push esi
lea ecx, [ebp - 0x204]
call fcn.0040cad0
lea ecx, [ebp - 0x204]
call fcn.0040cab0
mov eax, esi
call fcn.004ac569
ret