joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424000
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x424053
xor eax, eax
jmp 0x424249
xor ecx, ecx
mov word [ebp - 0x414], cx
push 0x206
push 0
lea edx, [ebp - 0x412]
push edx
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x43c], 0x104
mov dword [ebp - 0x440], 1
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x440]
push edx
push 0
push 0x500c14
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4241ce
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
mov dx, word [ecx + 2]
mov word [ebp - 0x42a], dx
add dword [ebp - 0x41c], 2
cmp word [ebp - 0x42a], 0
jne 0x424112
mov edi, dword [ebp - 0x41c]
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42415e
xor eax, eax
jmp 0x424249
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x430]
mov dx, word [ecx]
mov word [ebp - 0x416], dx
mov eax, dword [ebp - 0x420]
mov cx, word [ebp - 0x416]
mov word [eax], cx
mov edx, dword [ebp - 0x430]
add edx, 2
mov dword [ebp - 0x430], edx
mov eax, dword [ebp - 0x420]
add eax, 2
mov dword [ebp - 0x420], eax
cmp word [ebp - 0x416], 0
jne 0x42417f
mov eax, 1
jmp 0x424249
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x434]
mov dx, word [ecx]
mov word [ebp - 0x418], dx
mov eax, dword [ebp - 0x424]
mov cx, word [ebp - 0x418]
mov word [eax], cx
mov edx, dword [ebp - 0x434]
add edx, 2
mov dword [ebp - 0x434], edx
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
cmp word [ebp - 0x418], 0
jne 0x4241ef
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4242f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x828]
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x828], 0x44
xor ecx, ecx
mov dword [ebp - 0x7e4], ecx
mov dword [ebp - 0x7e0], ecx
mov dword [ebp - 0x7dc], ecx
mov dword [ebp - 0x7d8], ecx
mov edx, dword [ebp + 8]
push edx
push 0x500f00
lea eax, [ebp - 0x7d4]
push eax
call fcn.00428370
add esp, 0xc
lea ecx, [ebp - 0x7e4]
push ecx
lea edx, [ebp - 0x828]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x424381
jmp 0x42439b
mov ecx, dword [ebp - 0x7e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x7e0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x428880
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x429ef0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x429f22
mov dword [ebp - 8], 1
jmp 0x429f29
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x42aad0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 1
push 0x501068
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42aaf9
mov eax, dword [ebp - 4]
jmp 0x42ab11
push 8
push 1
push 0x5010c8
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42ab20
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x42ab4b
xor eax, eax
jmp 0x42abd7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x42ab5a
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x42ab91
xor eax, eax
jmp 0x42abd7
lea ecx, [ebp - 0x18]
push ecx
push 0x800000
mov edx, dword [ebp - 0xc]
push edx
push 0x6801
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x42abb5
xor eax, eax
jmp 0x42abd7
cmp dword [ebp - 0xc], 0
je 0x42abd4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x42abd4
mov dword [ebp - 0xc], 0
xor eax, eax
jmp 0x42abd7
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8
Function at 0x42b390
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5011b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x42b410
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa818
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0049d060
add esp, 0xc
push 0
push 0xb
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5011c4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.00402250
add esp, 8
mov dword [ebp - 4], 0
push 0x5011d0
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.00403ad0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x5011dc
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.00403ad0
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00403340
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x248]
call fcn.00403340
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x248]
call fcn.00404f10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00404f10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00404f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x42bf30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa8bf
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
call fcn.0042aec0
mov ecx, eax
call fcn.0043ec80
movzx eax, al
test eax, eax
je 0x42c056
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.0049d060
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x501498
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x248]
push edx
call fcn.0042aec0
mov ecx, eax
call fcn.0043e950
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x250]
call fcn.00403340
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00402380
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00404f10
push 0x5014ac
lea ecx, [ebp - 0x230]
call fcn.004121b0
push 0
lea edx, [ebp - 0x218]
push edx
push 0
lea ecx, [ebp - 0x230]
call fcn.004046f0
push eax
mov ecx, dword [ebp - 0x254]
call fcn.0042c680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00404b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x42ca00
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], ecx
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
push 0x11c
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x42ca89
xor eax, eax
jmp 0x42cb95
push 0x5015ec
push 0x501600
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x42cabe
lea eax, [ebp - 0x14c]
push eax
call dword [ebp - 0x128]
jmp 0x42cacb
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x124], 0
cmp dword [ebp - 0x110], 2
jne 0x42cb8f
cmp dword [ebp - 0x11c], 4
jbe 0x42cb8f
cmp dword [ebp - 0x11c], 6
jne 0x42cb37
cmp dword [ebp - 0x118], 0
jne 0x42cb0d
mov dword [ebp - 0x124], 4
jmp 0x42cb35
cmp dword [ebp - 0x118], 1
jne 0x42cb22
mov dword [ebp - 0x124], 5
jmp 0x42cb35
cmp dword [ebp - 0x118], 2
jne 0x42cb35
mov dword [ebp - 0x124], 6
jmp 0x42cb8f
cmp dword [ebp - 0x11c], 5
jne 0x42cb55
cmp dword [ebp - 0x118], 2
jne 0x42cb55
mov dword [ebp - 0x124], 3
jmp 0x42cb8f
cmp dword [ebp - 0x11c], 5
jne 0x42cb73
cmp dword [ebp - 0x118], 1
jne 0x42cb73
mov dword [ebp - 0x124], 2
jmp 0x42cb8f
cmp dword [ebp - 0x11c], 5
jne 0x42cb8f
cmp dword [ebp - 0x118], 0
jne 0x42cb8f
mov dword [ebp - 0x124], 1
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x42e760
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x42e77f
cmp dword [ebp + 0xc], 0
jne 0x42e783
xor eax, eax
jmp 0x42e7f8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0042e1b0
add esp, 8
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x240], 0x104
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0x2000
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042e220
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x42ef10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fac88
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.0042fb10
lea eax, [ebp - 0x40]
push eax
call fcn.0042aec0
mov ecx, eax
call fcn.0043e950
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
call fcn.00403340
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0042f4f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404f10
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.0040d460
jmp 0x42ef9f
lea ecx, [ebp - 0x60]
call fcn.0040d430
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.0040d450
push eax
lea ecx, [ebp - 0x60]
call fcn.0040d410
movzx ecx, al
test ecx, ecx
je 0x42f016
lea ecx, [ebp - 0x60]
call fcn.004030c0
mov ecx, eax
call fcn.00403340
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00402380
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004046f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f005
lea ecx, [ebp - 0x28]
call fcn.004046f0
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0042f800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404b60
jmp 0x42ef97
lea eax, [ebp - 0x58]
push eax
call fcn.0042aec0
mov ecx, eax
call fcn.0043e950
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
call fcn.00403340
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0042f4f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404f10
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
call fcn.0042fb10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x42f360
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fad19
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
push str.Heinote_
push 0x1a
lea eax, [ebp - 0x70]
push eax
call fcn.00401ae0
add esp, 8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00403bb0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00404f10
lea ecx, [ebp - 0x40]
call fcn.00403340
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00402380
add esp, 8
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.004046f0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x88]
call fcn.00404b60
push 0x501b58
lea edx, [ebp - 0xa0]
push edx
call fcn.0042aec0
mov ecx, eax
call fcn.0043e950
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00403bb0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00404f10
push str.Heinote.ini
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403ad0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00403340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42f4ab
push 0
lea ecx, [ebp - 0x28]
call fcn.00403340
push eax
lea ecx, [ebp - 0x58]
call fcn.00403340
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00404f10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x42f800
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x62c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f82c
jmp 0x42f9c7
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
je 0x42f84a
jmp 0x42f9c7
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.0049d060
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.0049d060
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x62c]
call fcn.0042f9e0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x620], 0
mov eax, 1
test eax, eax
je 0x42f9c7
mov dword [ebp - 0x624], 1
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.0049d060
add esp, 0xc
cmp dword [ebp - 0x620], 0
jne 0x42f927
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0x501b78
lea edx, [ebp - 0x20c]
push edx
call fcn.00421410
add esp, 0x10
jmp 0x42f950
mov eax, dword [ebp - 0x620]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x61c]
push edx
push str._s_s.del_d
lea eax, [ebp - 0x20c]
push eax
call fcn.00421410
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f974
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x42f99c
cmp dword [ebp - 0x620], 0xa
jl 0x42f988
jmp 0x42f9c7
mov eax, dword [ebp - 0x620]
add eax, 1
mov dword [ebp - 0x620], eax
jmp 0x42f8c4
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a16b7
add esp, 8
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x42f9c7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 4
Function at 0x431720
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x431780
mov eax, dword [ebp - 0x218]
jmp 0x43185b
push 0x5026fc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jbe 0x431855
mov edx, dword [ebp - 0x210]
push edx
call fcn.00497f5e
add esp, 4
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x210]
push edx
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43183a
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0x502718
mov eax, dword [ebp - 0x214]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43183a
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00497f67
add esp, 4
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x431a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fafa5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x537474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.004058d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401930
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x431ae7
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004058e0
mov al, byte [ebp - 0xd]
jmp 0x431b3d
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004030c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431b27
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004058e0
mov al, byte [ebp - 0xe]
jmp 0x431b3d
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004058e0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret