joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401432
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413024]
jne 0x40143c
repz ret
jmp fcn.00401b98

Function at 0x4063e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402718
and dword [ebp - 4], 0
cmp dword [0x4147dc], 0
mov ebx, eax
jne 0x406494
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406545
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406545
push eax
call fcn.004026a6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4147dc], eax
call esi
push eax
call fcn.004026a6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4147e0], eax
call esi
push eax
call fcn.004026a6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4147e4], eax
call esi
push eax
call fcn.004026a6
pop ecx
mov dword [0x4147ec], eax
test eax, eax
je 0x406494
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004026a6
pop ecx
mov dword [0x4147e8], eax
mov eax, dword [0x4147e8]
cmp eax, ebx
je 0x4064ec
cmp dword [0x4147ec], ebx
je 0x4064ec
push eax
call fcn.00402721
push dword [0x4147ec]
mov esi, eax
call fcn.00402721
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4064ec
test edi, edi
je 0x4064ec
call esi
test eax, eax
je 0x4064e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4064e3
test byte [ebp - 0xc], 1
jne 0x4064ec
or dword [ebp + 0x10], 0x200000
jmp 0x406525
mov eax, dword [0x4147e0]
cmp eax, ebx
je 0x406525
push eax
call fcn.00402721
pop ecx
test eax, eax
je 0x406525
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406525
mov eax, dword [0x4147e4]
cmp eax, ebx
je 0x406525
push eax
call fcn.00402721
pop ecx
test eax, eax
je 0x406525
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4147dc]
call fcn.00402721
pop ecx
test eax, eax
je 0x406545
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406547
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004018e0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov ecx, dword [ebp + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, 0x40
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp + 0x1c], 0
je 0x4077da
mov edx, dword [ebp - 0x40]
neg edx
sbb edx, edx
and edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret
Function at 0x408960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x20019
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push str.SoftwareAlexander_AvdoninHidden_Start
xor edx, edx
cmp dword [ebp + 0x18], 0
setne dl
add edx, 0x80000001
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408a02
mov eax, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push str.RegName
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089f8
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push str.RegCode
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x408a18
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x408b70
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d4
mov eax, dword [0x413024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00401040
mov dword [ebp - 4], 0
push 3
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
mov dword [ebp - 0x4d0], 0
push 0x2b0
push 0
lea ecx, [ebp - 0x4cc]
push ecx
call fcn.004018e0
add esp, 0xc
push 0x2000
push 0x2b4
lea edx, [ebp - 0x4d0]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x408c6b
mov ecx, dword [ebp - 0x214]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
mov byte [ebp - 0x4d2], dl
mov eax, dword [ebp - 0x214]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
mov byte [ebp - 0x4d1], cl
movsx edx, byte [ebp - 0x4d2]
cmp edx, 0x50
jne 0x408c6b
movsx eax, byte [ebp - 0x4d1]
cmp eax, 0x45
jne 0x408c6b
mov ecx, dword [ebp - 0x214]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
test edx, edx
jne 0x408c6b
xor eax, eax
jmp 0x408c70
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401432
mov esp, ebp
pop ebp
ret
Function at 0x408d60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x413024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [0x4148b0], 0
push 0x114
lea eax, [ebp - 0x120]
push eax
call section..text
add esp, 8
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408e32
cmp dword [ebp - 0x110], 2
jne 0x408e32
cmp dword [ebp - 0x11c], 5
jb 0x408e32
cmp dword [ebp - 0x11c], 5
jne 0x408dd4
cmp dword [ebp - 0x118], 1
jae 0x408ddd
cmp dword [ebp - 0x11c], 5
jbe 0x408def
mov edx, dword [0x4148b0]
or edx, 0x10000000
mov dword [0x4148b0], edx
cmp dword [ebp - 0x11c], 6
jne 0x408e07
mov eax, dword [0x4148b0]
or eax, 0x20000000
mov dword [0x4148b0], eax
cmp dword [ebp - 0x11c], 6
jne 0x408e2b
cmp dword [ebp - 0x118], 1
jb 0x408e2b
mov ecx, dword [0x4148b0]
or ecx, 0x40000000
mov dword [0x4148b0], ecx
mov eax, 1
jmp 0x408e34
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401432
mov esp, ebp
pop ebp
ret
Function at 0x4014bf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x228
mov esi, eax
lea eax, [ebp - 0x10]
mov ebx, edx
push eax
mov eax, dword [0x435a38]
or eax, 8
mov dword [ebp - 0x220], ecx
push eax
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExW
add esp, 0xc
test eax, eax
jne 0x40158a
jmp 0x401528
cmp dword [ebp - 0x220], 0
je 0x401516
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
add esp, 0xc
jmp 0x40158a
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, edi
call fcn.004014bf
test eax, eax
jne 0x401542
jmp 0x40152e
lea edi, [ebp - 0x21a]
push 0x105
push edi
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyW
test eax, eax
je 0x4014f8
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push 3
call fcn.00406846
add esp, 0xc
test eax, eax
je 0x401569
push 0
push dword [0x435a38]
push ebx
push esi
call eax
jmp 0x40158a
mov eax, 1
cmp dword [0x435a38], 0
jne 0x40158a
push edi
push edi
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyW
test eax, eax
pop ebx
setne al
pop esi
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403601
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x40362e
mov eax, dword [0x423880]
test eax, eax
je 0x403622
sub esp, 0xc
push eax
call sub.USER32.dll_DestroyWindow
add esp, 0xc
mov dword [0x423880], 0
jmp 0x40367f
cmp dword [0x423880], 0
je 0x403646
sub esp, 0xc
push 0
call fcn.00406783
add esp, 0xc
jmp 0x40367f
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x435ab8]
jbe 0x40367f
sub esp, 0xc
push 0
push 0x403942
push 0
push 0x6f
push dword [0x435b18]
call sub.USER32.dll_CreateDialogParamW
sub esp, 0xc
mov dword [0x423880], eax
push 5
push eax
call sub.USER32.dll_ShowWindow
add esp, 0x18
leave
ret
Function at 0x4067db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24c
lea ebx, [ebp - 0x240]
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov edx, eax
pop eax
cmp edx, 0x104
pop ecx
jbe 0x406806
xor edx, edx
jmp 0x406814
test edx, edx
je 0x406814
xor eax, eax
cmp word [ebx + edx*2 - 2], 0x5c
jne 0x406819
mov eax, 1
push dword [ebp + 8]
add eax, eax
add eax, 0x40b62c
push eax
lea eax, [ebx + edx*2]
push 0x40b630
push eax
call sub.USER32.dll_wsprintfW
add esp, 0xc
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExW
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x406b04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov word [ebx], 0
push edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExW
add esp, 0xc
test eax, eax
jne 0x406b83
push eax
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x800
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExW
pop edx
test eax, eax
pop ecx
jne 0x406b67
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x406b6c
mov word [ebx], 0
mov word [ebx + 0x7fe], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x406e7e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x406eab
xor edx, edx
cmp ebx, dword [ebp - 8]
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x406eb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x406ee1
xor edx, edx
cmp ebx, dword [ebp - 8]
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x406f75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0x64
mov esi, dword [ebp + 8]
jmp 0x406fc5
mov edx, dword [0x40b658]
mov eax, dword [0x40b654]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
call sub.KERNEL32.dll_GetTickCount
mov edx, 0x1a
push esi
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x14]
push 0
push eax
add ebx, edx
push dword [ebp + 0xc]
mov word [ebp - 0x10], bx
call sub.KERNEL32.dll_GetTempFileNameW
test eax, eax
jne 0x406fd2
dec edi
cmp edi, 0xffffffff
jne 0x406f88
mov word [esi], 0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x406fde
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x4333c8
call fcn.00406aea
push ebx
push 0x4333c8
call fcn.0040691a
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x407097
sub esp, 0xc
push eax
call fcn.00406995
add esp, 0xc
cmp byte [0x435ac8], 0
jns 0x40702d
mov ax, word [ebx]
test ax, ax
je 0x407097
cmp ax, 0x5c
je 0x407097
sub ebx, 0x4333c8
sar ebx, 1
jmp 0x407060
sub esp, 0xc
push 0x4333c8
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x407050
test byte [eax], 0x10
je 0x407097
sub esp, 0xc
push 0x4333c8
call fcn.00406a72
add esp, 0xc
sub esp, 0xc
push 0x4333c8
call fcn.00406a69
add esp, 0xc
cmp eax, ebx
jg 0x407037
sub esp, 0xc
push 0x4333c8
call fcn.00406aac
push 0x4333c8
call sub.KERNEL32.dll_GetFileAttributesW
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x407099
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4070a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
pop edx
xor edx, edx
cmp eax, 0xffffffff
pop ecx
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4070d8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.dll_GetFileAttributesW
add esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x407103
push eax
push eax
mov eax, ebx
and eax, 0xfffffffe
push eax
push esi
call sub.KERNEL32.dll_SetFileAttributesW
pop esi
pop eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407174
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
push 0x40b65c
push 0x431fc8
call sub.KERNEL32.dll_lstrcpyW
test ebx, ebx
pop esi
pop edi
je 0x4071d0
push ecx
push 1
push 0
push ebx
call fcn.004070a0
push edx
push edx
push eax
call sub.KERNEL32.dll_CloseHandle
push eax
push eax
push 0x400
push 0x431fc8
push ebx
call sub.KERNEL32.dll_GetShortPathNameW
add esp, 0x14
test eax, eax
je 0x407332
cmp eax, 0x400
jg 0x407332
push eax
push 0x400
push 0x4327c8
push dword [ebp + 8]
call sub.KERNEL32.dll_GetShortPathNameW
pop edi
test eax, eax
je 0x407332
cmp eax, 0x400
jg 0x407332
push 0x4327c8
push 0x431fc8
push str._ls_ls_r_n
push 0x432fc8
call sub.USER32.dll_wsprintfA
pop ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x435a68]
pop esi
push dword [eax + 0x128]
push 0x4327c8
call fcn.00406b8a
sub esp, 0xc
push 4
push 0xc0000000
push 0x4327c8
call fcn.004070a0
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x407332
push ecx
push ecx
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x14]
mov esi, eax
lea eax, [eax + edx + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov edi, eax
pop eax
test edi, edi
pop edx
je 0x407324
push eax
push esi
push edi
push dword [ebp - 0x10]
call fcn.00406eb4
pop ebx
test eax, eax
je 0x407324
push ecx
push ecx
push str._Rename__r_n
push edi
call fcn.0040710e
pop ebx
test eax, eax
pop edx
jne 0x4072b4
lea eax, [edi + esi]
push ecx
push ecx
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
pop ebx
mov eax, esi
pop edx
jmp 0x4072e9
add eax, 0xa
push ecx
push ecx
push 0x40b679
push eax
call fcn.0040710e
mov ebx, eax
pop eax
test ebx, ebx
pop edx
mov eax, esi
je 0x4072e9
lea edx, [edi + esi]
mov eax, dword [ebp - 0x14]
lea ecx, [edx + eax]
jmp 0x4072df
mov al, byte [edx]
dec edx
mov byte [ecx + 1], al
dec ecx
cmp edx, ebx
ja 0x4072d9
sub ebx, edi
lea eax, [ebx + 1]
push dword [ebp - 0x14]
lea eax, [edi + eax]
push 0x432fc8
push eax
call fcn.0040665d
push 0
push 0
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_SetFilePointer
mov edx, dword [ebp - 0x14]
push eax
lea eax, [esi + edx]
push eax
push edi
push dword [ebp - 0x10]
call fcn.00406e7e
push eax
push eax
push edi
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
sub esp, 0xc
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40733a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 5
push ebx
push esi
call sub.KERNEL32.dll_MoveFileExW
pop edx
test eax, eax
jne 0x407360
push eax
push eax
push ebx
push esi
call fcn.00407174
add esp, 0x10
inc dword [0x435a18]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40736f
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
call fcn.004070d8
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4073cc
test edi, 1
je 0x4073a1
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x4073aa
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_DeleteFileW
add esp, 0xc
test eax, eax
jne 0x4073c5
and edi, 4
jne 0x4073cc
push edi
push edi
push esi
push ebx
call sub.KERNEL32.dll_SetFileAttributesW
xor eax, eax
pop ebx
pop esi
jmp 0x4073ce
mov eax, 1
jmp 0x4073ce
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4073d8
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x278
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.00406fde
add esp, 0xc
mov dword [ebp - 0x260], eax
test edi, 8
je 0x407427
sub esp, 0xc
mov ebx, dword [0x435a10]
push esi
call sub.KERNEL32.dll_DeleteFileW
add esp, 0xc
test eax, eax
sete al
movzx eax, al
add eax, ebx
mov dword [0x435a10], eax
jmp 0x407648
mov eax, edi
and eax, 4
mov dword [ebp - 0x268], eax
mov eax, edi
and eax, 1
mov dword [ebp - 0x270], eax
je 0x407458
cmp dword [ebp - 0x260], 0
je 0x407634
test edi, 2
je 0x4075e4
push ecx
push ecx
push esi
push 0x433bc8
call fcn.00406aea
mov al, byte [ebp - 0x270]
pop ebx
mov byte [ebp - 0x269], al
pop edx
test al, al
je 0x40748c
push ecx
push ecx
push 0x40b67c
push 0x433bc8
call fcn.00406a60
pop eax
pop edx
jmp 0x407498
sub esp, 0xc
push esi
call fcn.00406a72
add esp, 0xc
cmp word [esi], 0
jne 0x4074a8
cmp word [0x433bc8], 0x5c
jne 0x4074b7
push eax
push eax
push 0x40b62c
push esi
call fcn.00406a60
pop ebx
pop eax
sub esp, 0xc
push esi
call fcn.00406a69
sub esp, 0xc
lea eax, [esi + eax*2]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x25c]
push eax
push 0x433bc8
call sub.KERNEL32.dll_FindFirstFileW
add esp, 0x18
mov ebx, eax
cmp eax, 0xffffffff
je 0x4075bd
mov eax, edi
and eax, 3
mov dword [ebp - 0x274], eax
cmp word [ebp - 0x230], 0x2e
jne 0x407520
mov ax, word [ebp - 0x22e]
test ax, ax
je 0x407598
cmp ax, 0x2e
jne 0x407520
cmp word [ebp - 0x22c], 0
je 0x407598
lea eax, [ebp - 0x230]
push ecx
push ecx
push eax
push dword [ebp - 0x264]
call fcn.00406aea
test byte [ebp - 0x25c], 0x10
pop eax
pop edx
je 0x407553
cmp dword [ebp - 0x274], 3
jne 0x407598
push eax
push eax
push edi
push esi
call fcn.004073d8
jmp 0x407596
push eax
push eax
push dword [ebp - 0x268]
push esi
call fcn.0040736f
pop edx
test eax, eax
pop ecx
jne 0x40758c
cmp dword [ebp - 0x268], 0
je 0x407584
push eax
push eax
push esi
push 0xfffffffffffffff1
call fcn.004042ef
push 0
push esi
call fcn.0040733a
jmp 0x407596
inc dword [0x435a10]
jmp 0x407598
push ecx
push ecx
push esi
push 0xfffffffffffffff2
call fcn.004042ef
pop eax
pop edx
push eax
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call sub.KERNEL32.dll_FindNextFileW
pop edx
test eax, eax
pop ecx
jne 0x4074f6
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_FindClose
add esp, 0xc
cmp byte [ebp - 0x269], 0
je 0x4075d2
mov eax, dword [ebp - 0x264]
mov word [eax - 2], 0
cmp dword [ebp - 0x270], 0
je 0x407648
cmp dword [ebp - 0x260], 0
je 0x407634
sub esp, 0xc
push esi
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x407648
sub esp, 0xc
push esi
call fcn.00406aac
mov eax, dword [ebp - 0x268]
sub esp, 0xc
or eax, 1
push eax
push esi
call fcn.0040736f
add esp, 0x18
test eax, eax
jne 0x40763c
cmp dword [ebp - 0x268], 0
je 0x407634
push ebx
push ebx
push esi
push 0xfffffffffffffff1
call fcn.004042ef
push 0
push esi
call fcn.0040733a
jmp 0x407646
inc dword [0x435a10]
jmp 0x407648
push ecx
push ecx
push esi
push 0xffffffffffffffe5
call fcn.004042ef
pop eax
pop edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4076e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x4343c8], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x4343c8
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessW
pop edx
xor edx, edx
pop ecx
test eax, eax
je 0x407734
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, edx
leave
ret 4

Function at 0x40775f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x28
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], 1
mov byte [ebp - 0x27], 0
mov word [ebp - 0x26], 4
mov dword [ebp - 0x24], 0x40b69c
mov dword [ebp - 0x20], 0x40b69c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x40b68c
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0
push esi
call sub.KERNEL32.dll_CreateDirectoryW
pop edx
xor edx, edx
pop ecx
test eax, eax
jne 0x4077e3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
cmp eax, 0xb7
jne 0x4077e3
push eax
push ebx
push 0x80000007
push esi
call sub.ADVAPI32.DLL_SetFileSecurityW
xor edx, edx
pop ebx
test eax, eax
jne 0x4077e3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4077f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x43441c], 0
push ebx
mov esi, dword [ebp + 0x10]
jne 0x40782d
xor ebx, ebx
mov edx, ebx
xor ecx, ecx
mov eax, edx
inc ecx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
cmp ecx, 8
jne 0x407807
mov dword [ebx*4 + 0x434418], edx
inc ebx
cmp ebx, 0x100
jne 0x407803
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
not edx
jmp 0x407849
mov al, byte [ecx - 1]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x434418]
dec esi
inc ecx
cmp esi, 0xffffffff
jne 0x407837
not edx
mov eax, edx
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x402fb0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x402fc4
inc dword [0x4a0b94]
add dword [0x49d3c8], 0xd8
mov edx, dword [0x49d3c8]
push esi
push edi
mov ecx, 0x36
mov esi, 0x49f708
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x402ff3
push 0
mov eax, 0x4a2c18
call fcn.00414620
cmp dword [0x4a0bbc], 0
mov dword [0x4a30f0], 0
mov dword [0x4a30f4], 0
je 0x40301b
push 0x4a13a8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40309f
or ecx, 0xffffffff
cmp byte [esi + 0xc6], 0
jne 0x40304a
xor eax, eax
cmp byte [esp + 0x14], 0x64
sete al
mov byte [esi + 0xc6], al
test al, al
je 0x40304a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4a30fc], 0
je 0x40305c
cmp dword [0x4a30f8], 0
jne 0x403065
cmp byte [esi + 0xc6], 0
je 0x40309f
cmp byte [esi + 0xc6], 0
mov byte [esi + 0xc4], 0
jne 0x40309f
cmp dword [0x4a30fc], 0
jge 0x403087
pop edi
mov dword [esi + 0xb8], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb4], eax
mov edx, dword [0x4a30fc]
mov dword [esi + 0xb8], edx
pop edi
pop esi
ret