joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10166c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10166d1f
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10166cb5
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10166400
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10166c7f
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10166dd6
call 0x10166cc7
pop edx
lea ecx, [edx + 0x139]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x10166d77
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10166820
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10166d2c
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10166dd6
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10166820
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10166dd4
jmp 0x10166dd6
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10003f7e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov ecx, dword [0x10280c08]
xor edx, edx
mov eax, dword [0x10280c34]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x28]
push edi
div dword [ecx + ebp*4]
mov ecx, dword [0x10280c48]
movzx eax, dx
mov dword [esp + 0x20], eax
mov eax, dword [0x10280c30]
xor eax, 0x18cd
mov edx, dword [0x10280c0c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
movzx ebx, word [eax + 0x3928]
mov ax, word [0x10280c18]
or ebx, 0x1b70
inc ax
mov word [0x10280c18], ax
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [0x10280c24]
movzx ecx, word [ecx + eax*4]
mov eax, dword [0x10280c44]
or ecx, dword [esi + eax*4]
mov eax, 0x10e2
mov dword [esp + 0x10], ecx
imul ecx, edx, 0xc
xor edx, edx
div dword [ecx + esi]
inc ebp
mov ecx, eax
mov dword [esp + 0x38], ebp
imul eax, ebp, 0xc
mov dword [esp + 0x2c], ecx
mov edi, dword [eax + esi]
movzx esi, word [ecx + ecx + 0x107c]
sub edi, ebp
movzx ebp, word [esp + 0x28]
cmp esi, ebp
ja 0x10004097
mov eax, dword [esp + 0x18]
xor edx, edx
div ebx
mov ecx, dword [0x10280c20]
and edi, 0xcf3
mov dword [esp + 0x28], eax
mov edx, dword [0x10280c4c]
dec ecx
mov eax, ecx
mov dword [0x10280c20], ecx
sub eax, dword [esp + 0x10]
sub eax, 0x1441
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax*4]
add eax, dword [esp + 0x28]
imul eax, ebx
add eax, edi
mov dword [0x10280c04], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x2254]
xor eax, 0x1a8c
cdq
idiv esi
or dword [esp + 0x2c], edx
inc esi
cmp esi, ebp
jle 0x10004046
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
xor ebp, dword [esp + 0x38]
imul ecx, ecx, 6
mov eax, ebp
mov byte [0x10280c00], dl
xor edx, edx
movzx ecx, word [ecx + edi]
add ecx, 0xab2
mov dword [ebx*4 + 0x268c], ecx
mov esi, dword [0x10280c0c]
movzx ecx, word [edi + esi*4]
div ecx
mov eax, dword [esp + 0x30]
mov word [edi + esi*4], dx
mov edx, dword [0x10280c20]
movzx ecx, byte [0x10280c01]
xor edx, 0x1a9c
sub edx, dword [esp + 0x14]
pop edi
pop esi
mov word [eax + ecx*2], dx
mov ecx, dword [0x10280c14]
dec byte [0x10280c01]
mov edx, dword [esp + 0x18]
pop ebp
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0x4038b3
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
mov ecx, dword [esp + 0x10]
push esi
push edi
dec ecx
push ebp
js 0x4038f4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, ecx
mov eax, dword [0x409f00]
add edi, ecx
and ebx, 0x1f
mov al, byte [eax + ebx]
add al, byte [edi]
mov byte [edi], al
mov ebp, dword [0x409efc]
mov bl, byte [ebp + ebx]
xor bl, al
mov al, bl
mov byte [edi], bl
xor al, dl
mov byte [esi + edx], al
inc edx
dec ecx
jns 0x4038c4
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403b39
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x1f
xor esi, esi
mov eax, dword [0x409efc]
mov ecx, dword [0x409f00]
mov cl, byte [ecx + esi]
xor byte [eax + edx], cl
mov eax, dword [0x409f00]
mov ecx, dword [0x409efc]
mov cl, byte [ecx + edx]
add byte [eax + esi], cl
inc esi
dec edx
jns 0x403b41
pop esi
ret

Function at 0x403b69
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 2
mov ecx, eax
dec eax
test ecx, ecx
jle 0x403baf
movsx edi, byte [esi]
inc esi
movsx ecx, byte [esi]
shl ecx, 8
inc esi
or edi, ecx
movsx ecx, byte [esi]
shl ecx, 0x10
inc esi
or edi, ecx
movsx ecx, byte [esi]
shl ecx, 0x18
inc esi
or edi, ecx
mov ecx, eax
xor edx, edi
dec eax
test ecx, ecx
jg 0x403b87
mov eax, edx
pop edi
pop esi
ret
Function at 0x4045a8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor esi, esi
mov edi, 0x105
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call fcn.00407942
add esp, 0xc
lea eax, [ebp - 0x210]
push edi
push esi
push eax
call fcn.00407942
add esp, 0xc
cmp dword [0x40a048], esi
jne 0x4046a1
mov eax, dword [0x409f28]
cmp dword [eax + 0xc], esi
jne 0x404615
push 0x1456
mov eax, dword [0x409f24]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x40462a
mov dword [0x4082ac], 1
jmp 0x404634
mov eax, dword [0x409f28]
cmp dword [eax + 8], 0
mov dword [0x4082ac], 1
jne 0x404634
mov dword [0x4082ac], 0
cmp dword [0x4082b8], 1
jne 0x40466d
push 0x1457
mov eax, dword [0x409f24]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x40466d
mov eax, dword [0x409f28]
lea ecx, [ebp - 0x108]
add eax, 0x514
push eax
push ecx
call fcn.004078f6
add esp, 8
push dword [ebp + 8]
call fcn.00403bb4
add esp, 4
test eax, eax
jne 0x4047bb
lea eax, [ebp - 0x210]
lea ecx, [ebp - 0x108]
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040620e
add esp, 0x10
jmp 0x4047bb
push 0x104
push 0x409f30
call fcn.0040493f
add esp, 8
test eax, eax
jne 0x4046c1
mov eax, 5
jmp 0x4047bb
push dword [ebp + 8]
call fcn.00403bb4
add esp, 4
mov esi, eax
test esi, esi
jne 0x4047bb
push 0x409f30
call fcn.00407b6b
add esp, 4
test eax, eax
je 0x4046f1
mov eax, 5
jmp 0x4047bb
mov eax, dword [0x409f28]
mov edi, 0x514
mov dword [0x4082ac], 1
add eax, edi
push eax
call fcn.004078d7
add esp, 4
test eax, eax
je 0x40472b
mov eax, dword [0x409f28]
lea ecx, [ebp - 0x108]
add eax, edi
push eax
push ecx
call fcn.004078f6
add esp, 8
mov eax, dword [0x409f28]
mov edi, 0x614
add eax, edi
push eax
call fcn.004078d7
add esp, 4
test eax, eax
je 0x40475b
mov eax, dword [0x409f28]
lea ecx, [ebp - 0x210]
add eax, edi
push eax
push ecx
call fcn.004078f6
add esp, 8
lea eax, [ebp - 0x210]
lea ecx, [ebp - 0x108]
push eax
mov edi, 0x409f30
push ecx
push edi
push dword [ebp + 8]
call fcn.0040620e
add esp, 0x10
mov ebx, eax
cmp dword [0x409f04], 0
jne 0x4047a0
push 0x4081b0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x4081ac
push edi
call fcn.00404ae6
add esp, 8
mov esi, eax
test ebx, ebx
jne 0x4047b9
test esi, esi
je 0x4047ac
xor eax, eax
jmp 0x4047bb
test ebx, ebx
jne 0x4047b9
mov eax, 5
test esi, esi
je 0x4047bb
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40493f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40499b
cmp edi, eax
jl 0x40499b
lea eax, [ebp - 0x160]
push eax
push esi
dec edi
call fcn.00404865
add esp, 8
lea ecx, [ebp - 0x160]
push ecx
call fcn.004078d7
add esp, 4
cmp eax, edi
ja 0x40499b
lea eax, [ebp - 0x160]
push eax
push esi
call fcn.004078f6
add esp, 8
mov eax, 1
jmp 0x40499d
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4049d7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov esi, 1
mov edi, dword [ebp + 8]
push edi
call fcn.004078d7
add esp, 4
lea eax, [ebp - 0x160]
push edi
push eax
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x160]
push dword [ebp + 0xc]
push ecx
call fcn.00407911
add esp, 8
lea ecx, [ebp - 0x2a0]
lea edx, [ebp - 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404a91
test byte [ebp - 0x2a0], 0x10
jne 0x404a74
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.004078f6
add esp, 8
lea eax, [ebp - 0x274]
lea ecx, [ebp - 0x400]
push eax
push ecx
call fcn.00407911
add esp, 8
lea ecx, [ebp - 0x400]
push ecx
call fcn.004049a3
add esp, 4
cmp eax, 1
jne 0x404a89
lea eax, [ebp - 0x2a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x404a2c
jmp 0x404a91
xor esi, esi
mov dword [0x4367e8], esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
test esi, esi
je 0x404adf
push edi
lea eax, [ebp - 0x160]
push eax
call fcn.004078f6
add esp, 8
lea eax, [ebp - 0x160]
push 0x4081ac
push eax
call fcn.00407911
add esp, 8
lea eax, [ebp - 0x2a0]
lea ecx, [ebp - 0x160]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404ae6
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov dword [0x4367e8], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x160]
push ecx
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x160]
push ecx
call fcn.004078d7
add esp, 4
cmp eax, 4
jae 0x404b26
xor eax, eax
jmp 0x404bdb
lea eax, [ebp - 0x160]
push eax
call fcn.004078d7
add esp, 4
cmp byte [ebp + eax - 0x161], 0x5c
je 0x404b53
push 0x4081a0
lea eax, [ebp - 0x160]
push eax
call fcn.00407911
add esp, 8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x160]
push ecx
call fcn.004049d7
add esp, 8
lea edx, [ebp - 0x160]
push dword [ebp + 8]
push edx
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x160]
push ecx
call fcn.004078d7
add esp, 4
cmp byte [ebp + eax - 0x161], 0x5c
jne 0x404ba7
lea eax, [ebp - 0x160]
push eax
call fcn.004078d7
mov byte [ebp + eax - 0x161], 0
add esp, 4
lea eax, [ebp - 0x160]
push eax
call fcn.004078d7
add esp, 4
cmp eax, 3
jbe 0x404bd6
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404bd6
mov dword [0x4367e8], 0
mov eax, dword [0x4367e8]
mov esp, ebp
pop ebp
ret
Function at 0x404f18
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [ebp + 0x10], 2
push ebx
push esi
push edi
jne 0x405059
xor esi, esi
push str.vdmdbg.dll
mov dword [0x4367e0], esi
mov dword [0x4367e4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405155
push str.VDMEnumProcessWOW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VDMEnumTaskWOWEx
xor esi, esi
push edi
mov dword [0x4367e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4367e4], eax
mov eax, dword [0x4367e0]
test eax, eax
je 0x40504d
cmp dword [0x4367e4], esi
je 0x40504d
push esi
mov dword [0x40b3b0], esi
push 0x4051a3
mov dword [0x40b3b4], esi
mov dword [0x40afa0], 0xff
mov dword [0x4207c4], esi
call eax
cmp dword [0x40b3b0], esi
je 0x404fdf
mov ebx, 0x420bf0
push dword [ebp + 0xc]
push ebx
push 0
add ebx, 0x154
inc esi
push dword [ebx - 0x164]
call fcn.00404d72
cmp dword [0x40b3b0], esi
ja 0x404fbf
cmp dword [0x40b3b4], 0
je 0x404ff9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x405157
push 0x100
push 0x40b3c0
call fcn.004051b7
add esp, 8
test eax, eax
jne 0x40501b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405155
mov ebx, 0x40b3d0
mov esi, eax
push dword [ebp + 0xc]
push ebx
push 0
add ebx, 0x154
push dword [ebx - 0x164]
call fcn.00404dbb
dec esi
jne 0x405022
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x405157
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405155
cmp dword [ebp + 0x10], 1
jne 0x405155
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x405155
push str.CreateToolhelp32Snapshot
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Process32First
mov dword [0x4207c0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Process32Next
mov dword [0x4207c8], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40ab98], eax
test eax, eax
je 0x40514e
cmp dword [0x4207c8], 0
je 0x40514e
mov eax, dword [0x4207c0]
test eax, eax
je 0x40514e
push 0
push 2
call eax
cmp eax, 0xffffffff
mov edi, eax
jne 0x4050e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405155
mov dword [ebp - 0x128], 0x128
lea eax, [ebp - 0x128]
push eax
push edi
call dword [0x4207c8]
test eax, eax
je 0x405139
push dword [ebp + 0xc]
lea ecx, [ebp - 0x104]
push ecx
push 0
push dword [ebp - 0x120]
call dword [ebp + 8]
test eax, eax
mov eax, 0
je 0x405135
mov dword [ebp - 0x128], 0x128
lea eax, [ebp - 0x128]
push eax
push edi
call dword [0x40ab98]
test eax, eax
jne 0x4050ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x405157
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405562
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0xff
xor eax, dword [0x40aa50]
mov ecx, dword [0x40aa50]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x4082c8]
xor eax, ecx
mov dword [0x40aa50], eax
and eax, edx
add dword [0x40aa54], eax
mov eax, dword [0x40aa54]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [0x40aa58]
shr ecx, 8
mov dword [0x40aa54], eax
shr eax, 0x18
xor eax, dword [0x40aa58]
and eax, edx
mov eax, dword [eax*4 + 0x4082c8]
xor eax, ecx
mov dword [0x40aa58], eax
mov eax, dword [esp + 4]
ret

Function at 0x405606
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0x10]
mov eax, esi
dec esi
test eax, eax
je 0x405635
mov edi, dword [esp + 0xc]
inc dword [esp + 0xc]
call fcn.00405549
xor byte [edi], al
movsx eax, byte [edi]
push eax
call fcn.00405562
add esp, 4
mov eax, esi
dec esi
test eax, eax
jne 0x405613
pop edi
pop esi
ret

Function at 0x405638
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x40aa60
call fcn.004055ca
add esp, 4
lea ecx, [ebp - 0xc]
xor edi, edi
push 0xc
push dword [ebp + 8]
push ecx
call fcn.00407d71
add esp, 0xc
lea esi, [ebp + edi - 0xc]
call fcn.00405549
inc edi
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405562
add esp, 4
cmp edi, 0xc
jl 0x405660
mov eax, dword [0x40aa5c]
pop edi
shr eax, 0x18
pop esi
movzx cx, byte [ebp - 1]
sub ax, cx
mov esp, ebp
cmp ax, 1
pop ebp
sbb eax, eax
neg eax
ret
Function at 0x405979
Capabilities:
Get file system object information
Hide graphical window

Disassembly:
push ebp
mov eax, dword [0x409f08]
mov ebp, esp
add eax, 0x5d5
sub esp, 0x264
push ebx
push esi
push edi
push eax
push 0x40a3d0
call fcn.004078f6
add esp, 8
mov eax, dword [0x409f08]
add eax, 0x61b
push eax
push 0x40a050
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x164]
push 0x110
push 0x160
push ecx
push 0
push 0x40a17c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp dword [ebp - 0x164], 0
je 0x405a10
mov edi, 0x172
mov esi, dword [ebp + 8]
push dword [ebp - 0x164]
push 1
push edi
push 0x3f2
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [ebp - 0x164]
push 1
push edi
push 0x3f4
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x405a13
mov esi, dword [ebp + 8]
push 0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3eb
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ea
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x67
push esi
call edi
mov ebx, eax
mov eax, dword [0x409f08]
add eax, 0x50d
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3fe
push esi
call edi
mov ebx, eax
mov eax, dword [0x409f08]
add eax, 0x571
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x409f08]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push eax
push 1
push esi
call ebx
mov eax, dword [0x409f08]
add eax, 0x3c
push eax
push 0x406
push esi
call ebx
mov eax, dword [0x409f08]
add eax, 0x1e
push eax
push 7
push esi
call ebx
mov eax, dword [0x409f08]
add eax, 0x2d
push eax
push 2
push esi
call ebx
mov eax, dword [0x409f08]
add eax, 0x2db
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x3e9
push esi
call edi
mov edi, eax
lea ecx, [ebp - 0x264]
mov eax, dword [0x409f08]
add eax, 0x30d
push eax
push ecx
call fcn.004078f6
add esp, 8
push 1
push edi
mov ebx, 0x40a730
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0x40a17c
lea ecx, [ebp - 4]
lea eax, [ebp - 0x264]
push ecx
push 0x100
push ebx
push 0
push 0
push eax
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x40a150
push 0x3f3
push esi
call fcn.004058ba
add esp, 0xc
push 0x40a290
push 0x3f5
push esi
call fcn.004058ba
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b71
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
push ebx
lea eax, [ebp - 0x360]
push esi
lea ecx, [ebp - 0x258]
push edi
mov esi, dword [ebp + 0xc]
push eax
push ecx
push 0
push 0
push esi
call fcn.00407966
add esp, 0x14
lea eax, [ebp - 0x360]
lea ecx, [ebp - 0x258]
push eax
push ecx
call fcn.00407911
add esp, 8
lea ecx, [ebp - 0x4a0]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405bcb
xor eax, eax
jmp 0x405ccd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 8]
mov cx, word [edi + 8]
push eax
mov ax, word [edi + 0xa]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea ecx, [ebp - 8]
lea edx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [edi + 0x22]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x150], ecx
xor ebx, ebx
mov dword [ebp - 0x14c], edx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x134], ebx
push eax
lea edx, [ebp - 0x124]
push edx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x20]
mov edi, 0x13e
push 0xe
push ebx
push ecx
call fcn.00407942
add esp, 0xc
lea ecx, [ebp - 0x4a0]
push edi
push ecx
push 0x40a150
call fcn.00407886
add esp, 0xc
lea eax, [ebp - 0x150]
push edi
push eax
push 0x40a290
call fcn.00407886
add esp, 0xc
mov eax, dword [0x409f24]
push ebx
push 0x4066d4
push eax
push 0x139d
push dword [0x40a03c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
mov edi, eax
jne 0x405ccb
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ecf
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [0x409f10], 0
push esi
lea edx, [ebp - 0x108]
push dword [ebp + 0xc]
push edx
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
call fcn.004078d7
add esp, 4
cmp byte [ebp + eax - 0x109], 0x5c
je 0x405f22
push 0x4081a0
lea eax, [ebp - 0x108]
push eax
call fcn.00407911
add esp, 8
push dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
call fcn.00407911
mov dword [0x409f04], 1
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.00404e18
add esp, 4
cmp eax, 0xffffffff
jne 0x405f6a
call fcn.00405760
cmp dword [0x4082b0], 0
je 0x405f3e
mov eax, 0xb6e
pop esi
mov esp, ebp
pop ebp
ret
push 0
mov eax, dword [0x409f24]
push 0x1454
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 6
mov eax, dword [0x409f24]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00405760
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.00405760
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x3e8
jg 0x405fb7
test eax, eax
jge 0x405f9f
lea eax, [ebp - 0x108]
push eax
call fcn.00404e18
add esp, 4
cmp eax, 0xffffffff
je 0x405fdb
call fcn.00405760
cmp dword [0x4082b0], 0
je 0x405f97
jmp 0x405f60
mov dword [0x409f04], 0
xor eax, eax
jmp 0x405f65

Function at 0x405fec
Capabilities:
Create process on windows

Disassembly:
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov eax, 0
ja 0x40601b
mov eax, 0xffffffff
ret
Function at 0x407852
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43a968], eax
mov eax, 0xffffffff
jmp 0x407885
test al, 1
je 0x407883
test byte [esp + 8], 2
mov eax, 0xffffffff
jne 0x407885
xor eax, eax
ret

Function at 0x407dec
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
mov eax, 0
jne 0x407e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43a968], eax
mov eax, 0xffffffff
ret

Function at 0x407e60
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [eax]
cmp al, 0x22
jne 0x407e8c
test al, al
je 0x407e84
cmp byte [esi], 0x22
je 0x407e89
inc esi
cmp byte [esi], 0
jne 0x407e79
cmp byte [esi], 0x22
jne 0x407e96
inc esi
jmp 0x407e96
cmp al, 0x20
jle 0x407e96
inc esi
cmp byte [esi], 0x20
jg 0x407e90
cmp byte [esi], 0
je 0x407ea6
cmp byte [esi], 0x20
jg 0x407ea6
inc esi
cmp byte [esi], 0
jne 0x407e9b
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x407ec6
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]