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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x41338e
cmp byte [ebp + 0xc], bl
jne 0x4132d7
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x41338e
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x413380
call fcn.00467370
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404325
push dword [ebp + 0xc]
jmp 0x41336b
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x41338e
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41337d
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x41331f
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x413328
xor esi, esi
jmp 0x413359
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00467780
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.00467370
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.00404325
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x413390
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4139d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x413a42
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x413a25
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x413a25
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x413a25
mov byte [ebp - 1], 1
jmp 0x413a42
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x413a42
cmp byte [ebp - 1], bl
jne 0x413a42
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x413a2c
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x415c8c
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_RegOpenKeyExA]
test eax, eax
jne 0x415ce3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4a9f54
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415cda
mov byte [0x4aaf84], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41732d
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4aafc0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41735d
push 0
push dword [0x4aafc0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4aafc8]
push 0
mov ecx, dword [eax + 0x168]
call fcn.00432388
ret

Function at 0x41735e
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x4aafc0]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
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
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0042a3f5
cmp dword [eax], 1
je 0x4173c8
cmp dword [eax + 4], ebx
je 0x41741d
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41741d
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
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 esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
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 [0x4aafc0]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418b46
Capabilities:
Check os version

Disassembly:
mov eax, 0x48334d
call fcn.00466fdc
sub esp, 0x180
push ebx
lea eax, [ebp - 0x18c]
push esi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 5
jne 0x418cc4
push 2
pop esi
cmp dword [ebp - 0x184], esi
jne 0x418cc4
cmp byte [ebp - 0xf2], 1
je 0x418cc4
push 0x4a1228
push dword [ebp + 8]
call fcn.004676f0
pop ecx
pop ecx
test eax, eax
push 1
je 0x418d5f
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402e7f
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x94], ebx
je 0x418cb5
mov al, byte [ebp + 0xb]
push edi
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
push ebx
push 0x2c
mov byte [ebp - 4], 3
call fcn.0040b31a
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x48b6a8
mov dword [ebp - 0x30], 0x48b6a0
call fcn.00403cd9
xor edi, edi
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x24], ebx
je 0x418c9c
mov eax, dword [ebp - 0x20]
push 0x28
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
cmp edi, eax
jae 0x418c9c
lea eax, [ebp - 0x15]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0xf0]
call fcn.00402e7f
push eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00415eff
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0041f007
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00402438
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00402438
inc edi
add esi, 0x28
jmp 0x418c20
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407b12
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
jmp 0x418d58
xor esi, esi
lea eax, [ebp - 0xd]
push esi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x48b6a8
mov dword [ebp - 0x58], 0x48b6a0
call fcn.00403cd9
push 0x4a1228
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.004676f0
pop ecx
test eax, eax
pop ecx
jne 0x418d51
lea eax, [ebp + 0xb]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x50]
call fcn.00402e7f
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x78]
push 1
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.0041f007
mov ebx, eax
lea ecx, [ebp - 0x50]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.00402438
test bl, bl
je 0x418d51
mov ecx, dword [ebp - 0x14]
call fcn.00421f6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
xor eax, eax
jmp 0x418d60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41b7f4
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x48389f
call fcn.00466fdc
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
and dword [ebp - 4], 0
mov eax, str..mst
mov ecx, eax
mov dword [ebp - 0x3c], 0x48b660
test ecx, ecx
mov dword [ebp - 0x1c], 0x48b658
jne 0x41b868
mov eax, 0x4a9e50
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00423914
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401093
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x41b964
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41b942
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401884
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00423914
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401093
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b8c0
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41b964
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41da4c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x483c68
call fcn.00466fdc
sub esp, 0x440
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x44b]
mov byte [ebp - 0x44c], bl
mov dword [ebp - 0x10], 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x41db45
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
mov byte [ebp - 0x244], 0x22
call fcn.00401166
mov ecx, eax
call fcn.0042a4c5
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004042dd
push eax
lea eax, [ebp - 0x243]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402438
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x244]
push 0x4a2428
push eax
call esi
lea eax, [ebp - 0x44c]
push 0x20
push eax
call fcn.00468e90
pop ecx
cmp eax, ebx
pop ecx
je 0x41db45
push eax
lea eax, [ebp - 0x244]
push eax
call esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x244]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
jmp 0x41db47
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4213e9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4843e2
call fcn.00466fdc
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x48b660
mov esi, 0x48b658
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00401907
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.004215f0
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401a14
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x421472
lea ecx, [ebp - 0x10]
call fcn.00411536
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00401093
cmp byte [ebp + 0xf], 0
je 0x4215a8
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x4a2b58
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4214f2
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401907
mov dword [ebp - 0x18], 1
jmp 0x4215c4
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401884
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.00401d3d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401093
mov eax, 0x4a2b54
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x4a9e50
jne 0x42153b
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004011a9
mov eax, 0x4a2b50
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x421564
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004011a9
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.00423b0c
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00401093
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401093
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401d87
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x10], 0
je 0x4215df
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4226e7
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x484654
call fcn.00466fdc
push ecx
mov eax, 0x182c
call fcn.00467780
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x422768
call esi
cmp byte [ebp + 0x14], bl
je 0x422745
cmp eax, 0x20
je 0x42273e
cmp eax, 0x21
jne 0x422745
xor eax, eax
jmp 0x422887
cmp eax, ebx
jle 0x422755
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x422768
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x495f50
push eax
call fcn.00468867
push 0x2800
call fcn.0046712e
cmp eax, ebx
mov edi, eax
pop ecx
mov dword [ebp - 0x2c], edi
setne byte [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2800
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00437f37
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4227e2
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.004677b0
pop ecx
lea esi, [ebp - 0x834]
pop ecx
lea edi, [ebp - 0x1038]
mov ecx, 0x201
lea eax, [ebp - 0x1038]
mov byte [ebp - 0x430], bl
push 0x495f40
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00468867
cmp dword [ebp + 0xc], ebx
je 0x42285b
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x422828
call esi
test eax, eax
jg 0x422807
call esi
jmp 0x422813
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x422828
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x495f50
push eax
call fcn.00468867
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
je 0x42285b
call esi
test eax, eax
jg 0x42283a
call esi
jmp 0x422846
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x42285b
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x495f50
push eax
call fcn.00468867
mov eax, dword [ebp + 0xc]
add dword [ebp + 0x14], eax
cmp eax, ebx
ja 0x422785
cmp byte [ebp - 0x30], bl
je 0x422875
push edi
call fcn.00438016
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x422884
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42309c
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x484763
call fcn.00466fdc
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 4], 1
cmp edi, dword [esi + 0x30]
je 0x4230d0
mov ecx, edi
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 0x28
jmp 0x4230b8
mov ecx, esi
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [esi + 0x28]
call fcn.00407b12
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4267bc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x484d72
call fcn.00466fdc
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.004690d4
mov eax, 0x48cc88
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x48b660
mov esi, 0x48b658
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x48b888
mov dword [ebx + 0xc], eax
call fcn.0042694a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42684e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x484d9a
call fcn.00466fdc
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.004690d4
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x48b658
push 0
push eax
mov ecx, edi
mov dword [edi], 0x48b660
mov dword [edi + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x48b660
mov dword [ecx + 0x20], esi
call fcn.00401907
mov esi, dword [ebp + 8]
mov dword [ebx], 0x48b888
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00401d3d
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00401d3d
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x429047
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040116a
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x4290f7
dec eax
je 0x4290ec
dec eax
jne 0x4290fe
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x4290dc
dec eax
je 0x4290d3
dec eax
jne 0x4290df
mov dword [ebp - 0x18], 5
jmp 0x4290df
mov dword [ebp - 0x18], 3
jmp 0x4290df
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x4290fe
mov dword [ebp - 0x14], esi
jmp 0x4290fe
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x4290fe
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401166
mov ecx, eax
call fcn.0042a3fc
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x429537
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x429571
mov eax, dword [ecx + 0x74]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x42954f
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc