joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416d32
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x74
mov eax, 0x4a2717
call fcn.0046753f
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 0x416d7c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416cb9
xor eax, eax
call fcn.0046759b
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 0x416d67
cmp dword [ebp - 0x60], ebx
je 0x416d67
cmp eax, ebx
je 0x416d67
push 1
lea eax, [ebp - 0x55]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401810
mov byte [ebp - 4], 2
push dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
call fcn.00402630
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x416dda
lea eax, [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
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 0x416e1a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401600
jmp 0x416d67
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00445da6
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 0x416e68
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416dfd
push dword [ebp - 0x54]
call fcn.00466cfb
pop ecx
jmp 0x416dfd
push ebx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
call fcn.00416d06
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 0x416ea6
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
cmp byte [ebp - 0x68], bl
je 0x416dfd
push edi
jmp 0x416e60
cmp dword [ebp - 0x70], ebx
jne 0x416eb1
mov byte [ebp - 4], 7
jmp 0x416e96
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 0x416ed5
push edi
call fcn.00466cfb
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00402c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401600
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00416cb9
mov eax, esi
jmp 0x416d74
Function at 0x418068
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4db020]
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 0x4180e1
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 0x4180c7
movzx eax, byte [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x4180c7
movzx eax, byte [ebp - 0x77]
cmp eax, 0xfffffffe
jne 0x4180c7
mov byte [ebp - 0x79], 1
jmp 0x4180e1
xor eax, eax
cmp dword [ebp - 0x80], ebx
jbe 0x4180e1
cmp byte [ebp - 0x79], bl
jne 0x4180e1
cmp byte [ebp + eax - 0x78], bl
sete byte [ebp - 0x79]
inc eax
cmp eax, dword [ebp - 0x80]
jb 0x4180ce
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.00467491
add ebp, 0x38c
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4db020]
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 0x419aa9
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x419a5b
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 0x419aa9
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 0x419a9e
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x419a2e
xor eax, eax
jmp 0x419a42
lea eax, [esi + esi]
call fcn.004687b0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00405e95
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408ace
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x419aab
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 0x419aa9
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 0x419a9d
mov ecx, 0xfeff
mov eax, ebx
cmp word [ebx], cx
jne 0x419a42
lea eax, [ebx + 2]
jmp 0x419a42
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.00467491
leave
ret 0xc
Function at 0x41c2c2
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c319
lea eax, [ebp - 8]
push eax
push 0x4dc9a0
push 0
push 0
push 0x4b1820
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c310
mov byte [0x4de9a4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41ce3b
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.0041c696
test al, al
je 0x41ce61
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x41ceda
mov ax, word [esp + 0xc]
test ax, ax
jne 0x41ce7d
cmp dword [esi + 0x4c], 4
jne 0x41ce7d
mov ecx, esi
lea edi, [esi + 0x50]
call fcn.0041cbd4
jmp 0x41ce80
lea edi, [esi + 0x50]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c696
test al, al
je 0x41ce95
mov byte [esi + 0xd], 1
jmp 0x41ceda
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c696
test al, al
jne 0x41ceda
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c696
test al, al
jne 0x41ceda
call fcn.004488a7
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c696
test al, al
jne 0x41ceda
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
ret 4

Function at 0x41e69f
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4dea20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e6cf
push 0
push dword [0x4dea20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4dea28]
mov ecx, dword [eax + 0x298]
push 0
call fcn.0043fb76
ret
Function at 0x41e6d0
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 [0x4dea20]
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.00435df5
cmp dword [eax], 1
je 0x41e73a
cmp dword [eax + 4], ebx
je 0x41e78f
push ebx
push 0x4b1da0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e78f
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 [0x4dea20]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x420311
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x100c]
mov eax, 0x100c
call fcn.004688f0
push 0xffffffffffffffff
push 0x4a4147
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x202c
call fcn.004688f0
mov eax, dword [0x4db020]
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 0x4203c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0x1020], bl
je 0x4203a5
cmp eax, 0x20
je 0x42039e
cmp eax, 0x21
jne 0x4203a5
xor eax, eax
jmp 0x4204d0
cmp eax, ebx
jle 0x4203b5
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x4203c8
mov dword [ebp - 0x30], eax
push 0x4ca3c8
lea eax, [ebp - 0x30]
push eax
call fcn.004675aa
mov esi, 0x2800
push esi
call fcn.00445da6
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 0x42042f
push 0x1004
push ebx
push eax
lea ecx, [ebp - 0x203c]
call fcn.0041f8f1
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00468920
add esp, 0xc
push 0x4ca3b8
lea eax, [ebp - 0x1038]
jmp 0x4203c2
cmp dword [ebp - 0x14], ebx
je 0x4204a2
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 0x420472
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x420460
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x420472
mov dword [ebp - 0x24], eax
push 0x4ca3c8
lea eax, [ebp - 0x24]
jmp 0x4203c2
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
je 0x4204a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x420490
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x4204a2
mov dword [ebp - 0x34], eax
push 0x4ca3c8
lea eax, [ebp - 0x34]
jmp 0x4203c2
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
cmp eax, ebx
ja 0x4203e0
mov byte [ebp - 4], bl
push edi
call fcn.00466cfb
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0xffffffff
je 0x4204cd
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.00467491
add ebp, 0x100c
leave
ret
Function at 0x4215af
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x20
mov eax, 0x4a4525
call fcn.004674a0
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.00401470
test eax, eax
je 0x421631
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401420
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.00467491
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.00468830
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 0x4216dd
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.00401470
test eax, eax
jne 0x421699
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042112e
test eax, eax
jne 0x4216f3
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push esi
lea ecx, [ebp - 0x14]
call fcn.00401470
test eax, eax
jne 0x4216c0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042112e
test eax, eax
jne 0x4216f3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401420
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 0x421665
jmp 0x4215fe
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401420
xor ebx, ebx
inc ebx
jmp 0x4215fe
Function at 0x4221bf
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
sub esp, 0xab8
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0xab8], eax
push 0x3c
mov eax, 0x4a48e6
call fcn.004674a0
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.00468830
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.00401850
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0xd]
push eax
push 0x4b23b0
lea ecx, [ebp + 0x284]
call fcn.00401850
mov byte [ebp - 4], 1
lea eax, [ebp + 0x284]
push eax
lea ecx, [ebp + 0x250]
call fcn.00421b92
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x284]
call fcn.00401600
or dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 2
cmp dword [ebp + 0x26c], 8
mov eax, dword [ebp + 0x258]
jae 0x42228d
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.00420586
cmp dword [ebp - 0x14], 0xffffffff
jmp 0x422340
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x422331
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2b8]
push eax
lea ecx, [ebp + 0x284]
call fcn.00401850
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.00401850
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x284]
call fcn.00421b92
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401600
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
jae 0x42231b
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x284]
call fcn.00401600
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4222aa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0041fd66
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x250]
call fcn.00401600
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.00467491
add ebp, 0xabc
leave
ret 4
Function at 0x425dd3
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x10
mov eax, 0x4a5387
call fcn.004674a0
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.0040cfaf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x425e2c
lea ecx, [ebp - 0x14]
call fcn.0040cd36
cmp dword [eax + 0x1c], 8
jb 0x425e1a
mov eax, dword [eax + 8]
jmp 0x425e1d
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.0040cd9b
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cfaf
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd62
test al, al
je 0x425e07
cmp dword [edi + 0x1c], 8
jb 0x425e54
mov eax, dword [edi + 8]
jmp 0x425e57
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0040d62a
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00401660
call fcn.00467578
ret 4
Function at 0x427f86
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x184
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x184], eax
push 0x88
mov eax, 0x4a58c0
call fcn.004674a0
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 0x428107
push 2
pop ebx
cmp dword [ebp + 8], ebx
jne 0x428107
cmp byte [ebp + 0x11a], 1
je 0x428107
push 0x4b0f98
push esi
call fcn.004688aa
pop ecx
pop ecx
test eax, eax
jne 0x428001
inc eax
jmp 0x42819f
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp + 0x11c]
call fcn.00409071
mov dword [ebp - 4], ebx
xor ebx, ebx
cmp dword [ebp + 0x134], ebx
je 0x4280f8
lea ecx, [ebp - 0x2c]
call fcn.0040d196
mov byte [ebp - 4], 3
push edi
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x2c
lea ecx, [ebp + 0x11c]
call fcn.004114be
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x150]
call fcn.00401f10
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 0x4280dd
push edi
lea eax, [ebp - 0xd]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x94]
call fcn.00409071
mov byte [ebp - 4], 5
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041fccd
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041c98b
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.004230cc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00401660
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.00401660
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x34
cdq
pop ecx
idiv ecx
inc esi
cmp esi, eax
jb 0x42806b
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x150]
call fcn.00401660
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040d62a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
jmp 0x428198
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x150]
call fcn.00401f10
and dword [ebp - 4], 0
push 0x4b0f98
push esi
call fcn.004688aa
pop ecx
pop ecx
test eax, eax
jne 0x42818e
push edi
lea eax, [ebp - 0xd]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x60]
call fcn.00409071
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.004230cc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401660
test bl, bl
je 0x42818e
mov ecx, dword [ebp - 0x14]
call fcn.0041fc90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
call fcn.00401660
xor eax, eax
jmp 0x42819f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
call fcn.00401660
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.00467491
add ebp, 0x188
leave
ret 4
Function at 0x432aa2
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x154
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0xd0], eax
and dword [ebp - 0x58], 0
push esi
push edi
mov edi, ecx
call fcn.004056b3
xor esi, esi
lea eax, [ebp - 0x44]
inc esi
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x44], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
sub eax, 0
mov dword [ebp - 0x4c], ecx
je 0x432b4f
dec eax
je 0x432b44
dec eax
jne 0x432b56
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x5c], 2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x80]
dec eax
push 4
pop ecx
je 0x432b37
dec eax
je 0x432b2e
dec eax
jne 0x432b3a
mov dword [ebp - 0x5c], 5
jmp 0x432b3a
mov dword [ebp - 0x5c], 3
jmp 0x432b3a
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x40], ecx
jb 0x432b56
mov dword [ebp - 0x58], esi
jmp 0x432b56
movzx eax, cx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], eax
jmp 0x432b56
mov dword [ebp - 0x5c], 7
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.004056af
mov ecx, eax
call fcn.00435dfc
mov ecx, dword [ebp + 0xd0]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00467491
add ebp, 0xd4
leave
ret

Function at 0x432cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x432cf7
mov edx, dword [ecx + 0xd8]
mov ecx, dword [ebp + 8]
push esi
movzx eax, byte [ecx]
xor eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x10]
dec dword [ebp + 0xc]
and eax, 0xff
mov eax, dword [edx + eax*4]
shr esi, 8
xor esi, eax
inc ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], esi
jne 0x432cd3
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x433bfb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x433c15
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x433c26
push 0xd
pop eax
jmp 0x433c53
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x433c29
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8