joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f088
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40f0e5
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40f0dd
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040effc
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40f12c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0x7863513
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00444353
mov edx, eax
pop ecx
test edx, edx
je 0x40f172
push edi
xor edi, edi
test ebx, ebx
je 0x40f171
sub esi, edx
mov eax, edi
lea ecx, [edi + edx]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x40f15b
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret
Function at 0x4122c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4ab7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4123d0
cmp byte [ebp + 0xc], 0
jne 0x41237e
lea ecx, [edi + 1]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4123d0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x4123c1
call fcn.00454d30
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x412343
xor edi, edi
jmp 0x412359
lea eax, [edi + edi]
call fcn.00444390
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0041168c
mov edi, eax
push edi
call fcn.00454be3
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push edi
call fcn.00413b2d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4123d2
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4123d0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4123c0
mov eax, 0xfeff
mov edi, esi
cmp word [esi], ax
jne 0x412359
lea edi, [esi + 2]
jmp 0x412359
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443e8b
leave
ret 0xc

Function at 0x413028
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x413037
mov esi, dword [esi]
push esi
call fcn.00454be3
pop ecx
push 0
push dword [ebp + 0x10]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 0x10
Function at 0x4196c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040ef50
mov ecx, eax
call fcn.00436649
mov esi, dword [ebp + 8]
mov edi, eax
push esi
push dword [ebp + 0xc]
shr edi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x419706
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push esi
mov ecx, ebx
call fcn.004195ad
test eax, eax
jne 0x419754
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x419721
push edi
push esi
mov ecx, ebx
call fcn.004195ad
test eax, eax
jne 0x419754
push 0x48e7d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push edi
push 3
call fcn.004423d7
add esp, 0xc
test eax, eax
jns 0x419754
push esi
push edi
push 4
call fcn.004423d7
xor ecx, ecx
add esp, 0xc
test eax, eax
setns cl
mov eax, ecx
jmp 0x419757
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x419b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
and dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x419bec
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419bec
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x419bec
lea edi, [eax + 0x40]
push edi
call fcn.00444353
mov dword [esi], eax
pop ecx
test eax, eax
je 0x419bec
push edi
push 0
push eax
call fcn.004523f0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00452580
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0
push 0
call fcn.00452f38
int3
Function at 0x41a3d4
Capabilities:
Copy file
Create thread

Disassembly:
push 0x82c
mov eax, 0x46d309
call fcn.00444285
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push esi
call fcn.0041a68b
test al, al
je 0x41a404
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41a596
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004523f0
add esp, 0xc
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push esi
call fcn.0041a59e
lea eax, [ebp - 0x810]
push eax
call fcn.00454be3
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [edi + 0xf8]
call fcn.00408080
mov esi, 0x48e7d0
test ebx, ebx
mov eax, esi
cmovne eax, ebx
test eax, eax
cmovne esi, eax
push esi
call fcn.00454be3
pop ecx
push eax
push esi
lea ecx, [edi + 0x128]
call fcn.00408080
push 0x2c
call fcn.0044435c
mov esi, eax
pop ecx
mov dword [ebp - 0x818], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x41a4a0
lea ecx, [edi + 0xf4]
call fcn.004079b0
push 4
push edi
mov ecx, esi
push dword [eax]
call fcn.00419fae
jmp 0x41a4a2
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x154], eax
lea eax, [ebp - 0x81c]
push eax
push ebx
push edi
push 0x41a870
push ebx
push ebx
mov dword [ebp - 0x81c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x818], esi
call fcn.00444353
mov ebx, eax
mov dword [esp], 0x4ff
push 0xffffffffffffffff
push 0
mov dword [ebx], esi
jmp 0x41a52e
xor esi, esi
jmp 0x41a510
cmp dword [ebp - 0x834], 0x8032
jne 0x41a503
mov ecx, dword [edi + 0x154]
call fcn.0041b1a2
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41a4ec
push 0x4ff
push 0xffffffffffffffff
push esi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp esi, 1
je 0x41a4e8
push ebx
call fcn.00443fbc
mov edi, dword [edi + 0x154]
pop ecx
test edi, edi
je 0x41a560
mov ecx, edi
call fcn.0041a1d4
push 0x2c
push edi
call fcn.00443fae
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x41a594
mov esi, dword [ebp - 0x818]
lea eax, [ebp - 0x814]
and dword [ebp - 0x814], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x814], eax
setge al
jmp 0x41a596
xor eax, eax
call fcn.00444234
ret 8

Function at 0x41c84c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x46dbb2
call fcn.00444285
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x41c891
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041074a
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.00444234
ret 8
Function at 0x41cd54
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x46ddb8
call fcn.004442f1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x49]
push eax
lea ecx, [ebp - 0x44]
call fcn.00406120
mov byte [ebp - 4], 1
mov esi, 0x48e7d0
mov eax, esi
test edi, edi
cmovne eax, edi
test eax, eax
cmovne esi, eax
push esi
call fcn.00454be3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00408080
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x41cdee
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004060f0
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00404d40
jmp 0x41cf14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00444353
pop ecx
mov esi, eax
test esi, esi
setne bl
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x60]
push eax
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ce50
mov byte [ebp - 4], 2
test bl, bl
je 0x41ce3a
push 1
push esi
call fcn.00443fae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004060f0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x41cde1
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
push ecx
push 4
push edi
push esi
push ecx
call dword [sym.imp.CRYPT32.dll_CertAddSerializedElementToStore]
test eax, eax
jne 0x41ce9b
mov byte [ebp - 4], 2
test bl, bl
je 0x41ce89
push 1
push esi
call fcn.00443fae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004060f0
mov byte [ebp - 4], 6
jmp 0x41ce4a
cmp dword [ebp - 0x50], 0
jne 0x41cec5
mov byte [ebp - 4], 2
test bl, bl
je 0x41ceb3
push 1
push esi
call fcn.00443fae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004060f0
mov byte [ebp - 4], 7
jmp 0x41ce4a
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
push dword [eax + 0xc]
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificate]
mov edi, eax
mov byte [ebp - 4], 2
test bl, bl
je 0x41ceea
push 1
push esi
call fcn.00443fae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004060f0
mov byte [ebp - 4], 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404d40
mov eax, edi
jmp 0x41cf16
xor eax, eax
call fcn.00444243
ret 8
Function at 0x420c72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push edi
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420cd3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4acc40
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, byte [0x4aed08]
test eax, eax
push dword [ebp - 4]
cmove ecx, edi
mov byte [0x4aed08], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x420cd6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x52]
mov word [esi + 0xc], 0
push edi
call fcn.00421ad0
test al, al
je 0x420cfd
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x420d73
mov ax, word [ebp + 8]
test ax, ax
jne 0x420d13
cmp dword [esi + 0x40], 4
jne 0x420d13
mov ecx, esi
call fcn.004211c4
lea edi, [esi + 0x50]
movzx eax, ax
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00421ad0
test al, al
je 0x420d2e
mov byte [esi + 0xd], 1
jmp 0x420d73
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00421ad0
test al, al
jne 0x420d73
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00421ad0
test al, al
jne 0x420d73
call fcn.00447ed6
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00421ad0
test al, al
jne 0x420d73
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x4224e2
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4ab7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edi
push eax
push dword [0x4aed10]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x64]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x1c]
mov ecx, esi
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0x1e
call fcn.00436a19
cmp dword [eax], 1
je 0x42255c
cmp dword [eax + 4], ebx
je 0x4225b5
push ebx
push 0x483078
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4225b5
lea eax, [ebp - 0x34]
mov dword [ebp - 0x68], 0x46
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub esi, ecx
mov eax, esi
mov ebx, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x68]
mov edi, dword [ebp - 0x14]
sub ebx, edi
sub ecx, eax
mov eax, ebx
cdq
idiv dword [ebp - 0x68]
sub ecx, dword [ebp - 0x6c]
push 5
push 0
push 0
sub edi, eax
add ecx, esi
sub edi, dword [ebp - 0x70]
push ecx
add edi, ebx
push edi
push 0
push dword [0x4aed10]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00443e8b
leave
ret

Function at 0x422bfe
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4aed10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x422c2f
push 0
push dword [0x4aed10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4aed18]
push 0
mov ecx, dword [ecx + 0x264]
call fcn.0043f6f7
ret
Function at 0x423c97
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f8d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ab7b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x30]
jmp 0x423ce3
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x423cd9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x30
cmp esi, dword [edi + 0x34]
jne 0x423cce
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x423cf3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [edi + 0x30]
call fcn.004150cf
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00404d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42559f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x438
mov eax, 0x473f9c
call fcn.00444285
mov dword [ebp - 0x430], ecx
xor ebx, ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x440]
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404bd0
mov esi, dword [ebp - 0x440]
test eax, eax
jne 0x425720
push 0x410
lea eax, [ebp - 0x420]
mov edi, ebx
push ebx
push eax
call fcn.004523f0
add esp, 0xc
mov dword [ebp - 0x434], 0x208
lea eax, [ebp - 0x444]
push ebx
push ebx
push eax
push ebx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x425720
inc ebx
xor eax, eax
inc edi
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x42c]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404bd0
test eax, eax
jne 0x425694
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0042cddf
test eax, eax
jne 0x425747
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x42c]
call fcn.00404bd0
test eax, eax
jne 0x4256cf
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0042cddf
test eax, eax
jne 0x425747
xor ecx, ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x42c], ecx
je 0x4256f0
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
push ecx
push ecx
lea eax, [ebp - 0x444]
mov dword [ebp - 0x428], ecx
push eax
push ecx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x42563d
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x425736
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x440], 0
and dword [ebp - 0x43c], 0
mov eax, ebx
call fcn.00444234
ret 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x42c], 0
je 0x425767
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x42c], 0
and dword [ebp - 0x428], 0
jmp 0x425720
Function at 0x427102
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47462a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2030
call fcn.004443c0
mov eax, dword [0x4ab7b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x202c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x202c], edi
cmp edi, 0xffffffff
jne 0x42719d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp byte [ebp + 0x14], bl
je 0x427188
cmp ecx, 0x20
je 0x427181
cmp ecx, 0x21
jne 0x427188
xor eax, eax
jmp 0x42730c
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x427326
push 0x2800
call fcn.00444353
pop ecx
mov esi, eax
mov dword [ebp - 0x2040], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2024], ebx
mov dword [ebp - 0x2020], 0x2800
lea eax, [ebp - 0x2020]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
mov ebx, eax
mov dword [ebp - 0x2028], ebx
test ebx, ebx
je 0x427201
push 0
push ebx
lea ecx, [ebp - 0x1018]
call fcn.004238e0
push 0x4a02e8
lea eax, [ebp - 0x1018]
jmp 0x427337
mov eax, dword [ebp - 0x2020]
test eax, eax
je 0x427295
push 0
lea ecx, [ebp - 0x2038]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x427253
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x427253
mov dword [ebp - 0x2034], ecx
push 0x4a031c
lea eax, [ebp - 0x2034]
jmp 0x427337
mov eax, dword [ebp - 0x2020]
cmp dword [ebp - 0x2038], eax
je 0x427295
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x42728f
mov dword [ebp - 0x203c], ecx
push 0x4a031c
lea eax, [ebp - 0x203c]
jmp 0x427337
mov eax, dword [ebp - 0x2020]
add dword [ebp - 0x2024], eax
test eax, eax
jne 0x4271ba
mov byte [ebp - 4], al
push 1
push esi
call fcn.00443fae
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4272fe
cmp edi, 0xffffffff
je 0x42730a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443e8b
leave
ret
mov dword [ebp - 0x2030], eax
push 0x4a031c
lea eax, [ebp - 0x2030]
push eax
call fcn.00452f38
int3
Function at 0x42cbcc
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push 0xaec
mov eax, 0x4761cc
call fcn.00444285
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x810]
push 0x800
xor esi, esi
push esi
push eax
call fcn.004523f0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0xaf1]
mov dword [ebp - 0x848], 0x48e950
push eax
lea eax, [ebp - 0x810]
mov edi, 0x48e948
push eax
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x870], edi
call fcn.00407a30
mov dword [ebp - 4], 1
lea eax, [ebp - 0xaf1]
push esi
push eax
push 0x4853d0
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x818], 0x48e950
call fcn.00407a30
mov byte [ebp - 4], 3
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x870]
call fcn.0042d580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x840]
call fcn.00404d40
or esi, 0xffffffff
mov dword [ebp - 0xaf8], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xaf0]
cmp dword [ebp - 0x858], 8
lea eax, [ebp - 0x86c]
push ecx
cmovae eax, dword [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, esi
je 0x42cda8
mov esi, edi
mov dword [ebp - 0xaf8], esi
lea eax, [ebp - 0xae4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x42cd92
push 0
lea eax, [ebp - 0xaf1]
mov dword [ebp - 0x840], 0x48e948
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0x48e950
push eax
lea ecx, [ebp - 0x840]
call fcn.00407a30
mov byte [ebp - 4], 8
lea eax, [ebp - 0xaf1]
push 0
push eax
lea eax, [ebp - 0xac4]
mov dword [ebp - 0x8a0], 0x48e948
push eax
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x878], 0x48e950
call fcn.00407a30
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x840]
call fcn.0042d580
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8a0]
call fcn.00404d40
cmp dword [ebp - 0x828], 8
lea eax, [ebp - 0x83c]
cmovae eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x840]
call fcn.00404d40
lea eax, [ebp - 0xaf0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42cccb
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x42cdc8
cmp dword [sym.imp.KERNEL32.dll_FindClose], 0
je 0x42cdc8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0xaf8], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x870]
call fcn.00404d40
call fcn.00444234
ret 4