joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f36
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x49f2d8
call fcn.00464739
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x28], 0x49
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x73
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x68
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x65
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x64
mov byte [ebp - 0x1b], bl
cmp byte [ebp + 0xc], bl
je 0x415fa8
mov byte [ebp - 0x1b], 0x20
mov byte [ebp - 0x1a], 0x57
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x7a
mov byte [ebp - 0x17], 0x61
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x64
mov byte [ebp - 0x14], bl
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040ae09
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.004647bc
ret 8
Function at 0x416d5e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x74
mov eax, 0x49f72f
call fcn.0046476f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x416da8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416ce5
xor eax, eax
call fcn.004647cb
ret 8
push str.CertCompareCertificate
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x5c], eax
push str.CertAddSerializedElementToStore
push edi
call esi
mov dword [ebp - 0x60], eax
push str.CertFreeCertificateContext
push edi
call esi
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x5c], ebx
je 0x416d93
cmp dword [ebp - 0x60], ebx
je 0x416d93
cmp eax, ebx
je 0x416d93
push 1
lea eax, [ebp - 0x55]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401870
mov byte [ebp - 4], 2
push dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
call fcn.004026b0
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x416e06
lea eax, [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 3
cmp edi, ebx
jne 0x416e46
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402da0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401670
jmp 0x416d93
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.004447d5
pop ecx
mov dword [ebp - 0x54], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0x68], cl
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416e94
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416e29
push dword [ebp - 0x54]
call fcn.00463f2b
pop ecx
jmp 0x416e29
push ebx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
call fcn.00416d32
mov byte [ebp - 4], 5
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push ebx
push 4
push esi
mov edi, dword [ebp - 0x54]
push edi
push ebx
call dword [ebp - 0x60]
test eax, eax
jne 0x416ed2
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416e29
push edi
jmp 0x416e8c
cmp dword [ebp - 0x70], ebx
jne 0x416edd
mov byte [ebp - 4], 7
jmp 0x416ec2
push dword [ebp - 0x74]
mov eax, dword [ebp - 0x7c]
push dword [eax + 0xc]
push 1
call dword [ebp - 0x5c]
mov esi, eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416f01
push edi
call fcn.00463f2b
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402da0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401670
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416ce5
mov eax, esi
jmp 0x416da0
Function at 0x41809c
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push esi
mov esi, dword [ebp + 0x394]
xor ebx, ebx
mov byte [ebp - 0x79], bl
cmp esi, ebx
je 0x418115
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x400
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x80], 2
jb 0x4180fb
movzx eax, byte [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x4180fb
movzx eax, byte [ebp - 0x77]
cmp eax, 0xfffffffe
jne 0x4180fb
mov byte [ebp - 0x79], 1
jmp 0x418115
xor eax, eax
cmp dword [ebp - 0x80], ebx
jbe 0x418115
cmp byte [ebp - 0x79], bl
jne 0x418115
cmp byte [ebp + eax - 0x78], bl
sete byte [ebp - 0x79]
inc eax
cmp eax, dword [ebp - 0x80]
jb 0x418102
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x388]
mov al, byte [ebp - 0x79]
pop esi
xor ecx, ebp
pop ebx
call fcn.004646c1
add ebp, 0x38c
leave
ret 4

Function at 0x4199dc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x419add
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x419a8f
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x419add
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
test eax, eax
je 0x419ad2
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x419a62
xor eax, eax
jmp 0x419a76
lea eax, [esi + esi]
call fcn.004659e0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00405d8e
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408820
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x419adf
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x419add
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419ad1
mov ecx, 0xfeff
mov eax, ebx
cmp word [ebx], cx
jne 0x419a76
lea eax, [ebx + 2]
jmp 0x419a76
push ebx
push 0
call edi
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.004646c1
leave
ret 0xc
Function at 0x41c2b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c308
lea eax, [ebp - 8]
push eax
push 0x4d7a00
push 0
push 0
push 0x4adb18
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c2ff
mov byte [0x4d9a04], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41ce2a
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x52]
push edi
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
call fcn.0041c685
test al, al
je 0x41ce50
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x41cec9
mov ax, word [esp + 0xc]
test ax, ax
jne 0x41ce6c
cmp dword [esi + 0x4c], 4
jne 0x41ce6c
mov ecx, esi
lea edi, [esi + 0x50]
call fcn.0041cbc3
jmp 0x41ce6f
lea edi, [esi + 0x50]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
je 0x41ce84
mov byte [esi + 0xd], 1
jmp 0x41cec9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
call fcn.00446b93
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
ret 4

Function at 0x41e68e
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4d9a80]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e6be
push 0
push dword [0x4d9a80]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d9a88]
mov ecx, dword [eax + 0x298]
push 0
call fcn.0043f75b
ret
Function at 0x41e6bf
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [0x4d9a80]
call esi
lea eax, [ebp - 0x6c]
push eax
xor ebx, ebx
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 8], eax
call fcn.00435dd2
cmp dword [eax], 1
je 0x41e729
cmp dword [eax + 4], ebx
je 0x41e77e
push ebx
push 0x4ae0b8
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e77e
lea eax, [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 4], 0x46
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
sub esi, ebx
mov eax, esi
cdq
idiv dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4d9a80]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x420300
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x100c]
mov eax, 0x100c
call fcn.00465b20
push 0xffffffffffffffff
push 0x4a1157
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x202c
call fcn.00465b20
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x1008], 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 + 0x1018]
or dword [ebp - 0x18], 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 dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4203b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0x1020], bl
je 0x420394
cmp eax, 0x20
je 0x42038d
cmp eax, 0x21
jne 0x420394
xor eax, eax
jmp 0x4204bf
cmp eax, ebx
jle 0x4203a4
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x4203b7
mov dword [ebp - 0x30], eax
push 0x4c64a0
lea eax, [ebp - 0x30]
push eax
call fcn.004647da
mov esi, 0x2800
push esi
call fcn.004447d5
pop ecx
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x101c]
push dword [ebp + 0x1014]
call sub.msi.dll_MsiRecordSetStringA
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x42041e
push 0x1004
push ebx
push eax
lea ecx, [ebp - 0x203c]
call fcn.0041f8e0
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00465b50
add esp, 0xc
push 0x4c6490
lea eax, [ebp - 0x1038]
jmp 0x4203b1
cmp dword [ebp - 0x14], ebx
je 0x420491
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420461
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42044f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x420461
mov dword [ebp - 0x24], eax
push 0x4c64a0
lea eax, [ebp - 0x24]
jmp 0x4203b1
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
je 0x420491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42047f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x420491
mov dword [ebp - 0x34], eax
push 0x4c64a0
lea eax, [ebp - 0x34]
jmp 0x4203b1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
cmp eax, ebx
ja 0x4203cf
mov byte [ebp - 4], bl
push edi
call fcn.00463f2b
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0xffffffff
je 0x4204bc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1008]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x100c
leave
ret
Function at 0x42159e
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x20
mov eax, 0x4a1535
call fcn.004646d0
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov edi, 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
lea ecx, [ebp - 0x28]
call fcn.004014e0
test eax, eax
je 0x421620
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401490
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 + 0x410]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x414
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00465a60
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x1c], 0x208
push ebx
jmp 0x4216cc
inc dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push esi
lea ecx, [ebp - 0x14]
call fcn.004014e0
test eax, eax
jne 0x421688
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042111d
test eax, eax
jne 0x4216e2
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push esi
lea ecx, [ebp - 0x14]
call fcn.004014e0
test eax, eax
jne 0x4216af
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042111d
test eax, eax
jne 0x4216e2
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401490
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x421654
jmp 0x4215ed
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401490
xor ebx, ebx
inc ebx
jmp 0x4215ed
Function at 0x42217d
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
sub esp, 0xab8
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0xab8], eax
push 0x3c
mov eax, 0x4a18c2
call fcn.004646d0
mov esi, dword [ebp + 0xac4]
xor eax, eax
push 0x7fe
mov word [ebp + 0x2b8], ax
xor ebx, ebx
lea eax, [ebp + 0x2ba]
push ebx
push eax
call fcn.00465a60
add esp, 0xc
lea eax, [ebp + 0x2b8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2b8]
push eax
lea ecx, [ebp + 0x250]
call fcn.004018b0
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0xd]
push eax
push 0x4ae708
lea ecx, [ebp + 0x284]
call fcn.004018b0
mov byte [ebp - 4], 1
lea eax, [ebp + 0x284]
push eax
lea ecx, [ebp + 0x250]
call fcn.00421b50
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x284]
call fcn.00401670
or dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 2
cmp dword [ebp + 0x26c], 8
mov eax, dword [ebp + 0x258]
jae 0x42224b
lea eax, [ebp + 0x258]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00420548
cmp dword [ebp - 0x14], 0xffffffff
jmp 0x4222fe
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x4222ef
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2b8]
push eax
lea ecx, [ebp + 0x284]
call fcn.004018b0
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x284]
call fcn.00421b50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401670
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
jae 0x4222d9
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x284]
call fcn.00401670
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422268
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0041fd86
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x250]
call fcn.00401670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xab8]
xor ecx, ebp
call fcn.004646c1
add ebp, 0xabc
leave
ret 4
Function at 0x425d1f
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x10
mov eax, 0x4a2340
call fcn.004646d0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
lea esi, [edi + 0x34]
mov eax, dword [esi + 0xc]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cf4e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x425d78
lea ecx, [ebp - 0x14]
call fcn.0040ccd5
cmp dword [eax + 0x1c], 8
jb 0x425d66
mov eax, dword [eax + 8]
jmp 0x425d69
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.0040cd3a
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cf4e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd01
test al, al
je 0x425d53
cmp dword [edi + 0x1c], 8
jb 0x425da0
mov eax, dword [edi + 8]
jmp 0x425da3
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0040d1c7
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004016d0
call fcn.004647a8
ret 4
Function at 0x427e8a
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x184
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x184], eax
push 0x88
mov eax, 0x4a2853
call fcn.004646d0
mov esi, dword [ebp + 0x190]
lea eax, [ebp]
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 4], 5
jne 0x42800b
push 2
pop ebx
cmp dword [ebp + 8], ebx
jne 0x42800b
cmp byte [ebp + 0x11a], 1
je 0x42800b
push 0x4ad150
push esi
call fcn.00465ada
pop ecx
pop ecx
test eax, eax
jne 0x427f05
inc eax
jmp 0x4280a3
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp + 0x11c]
call fcn.004096ba
mov dword [ebp - 4], ebx
xor ebx, ebx
cmp dword [ebp + 0x134], ebx
je 0x427ffc
lea ecx, [ebp - 0x2c]
call fcn.0040d11c
mov byte [ebp - 4], 3
push edi
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x2c
lea ecx, [ebp + 0x11c]
call fcn.00411504
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x150]
call fcn.00401f90
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x34
cdq
pop ecx
idiv ecx
xor esi, esi
test eax, eax
jbe 0x427fe1
push edi
lea eax, [ebp - 0xd]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x94]
call fcn.004096ba
mov byte [ebp - 4], 5
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041fca5
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041c97a
add esp, 0xc
mov byte [ebp - 4], 6
push ebx
push ebx
lea ecx, [ebp + 0x150]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00423082
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.004016d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004016d0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x34
cdq
pop ecx
idiv ecx
inc esi
cmp esi, eax
jb 0x427f6f
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x150]
call fcn.004016d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040d1c7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
jmp 0x42809c
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x150]
call fcn.00401f90
and dword [ebp - 4], 0
push 0x4ad150
push esi
call fcn.00465ada
pop ecx
pop ecx
test eax, eax
jne 0x428092
push edi
lea eax, [ebp - 0xd]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x60]
call fcn.004096ba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push 0
push edi
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00423082
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004016d0
test bl, bl
je 0x428092
mov ecx, dword [ebp - 0x14]
call fcn.0041fc7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
call fcn.004016d0
xor eax, eax
jmp 0x4280a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
call fcn.004016d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x184]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x188
leave
ret 4