joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f0a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f27
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f36
mov ebx, 0x410448
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f4b
mov ecx, dword [0x424f10]
add ecx, eax
push ecx
call fcn.0040312f
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030fd
test eax, eax
je 0x4030a8
test byte [ebp + 0x17], 0x80
je 0x403091
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c3b8
mov dword [ebp - 0xc], eax
call fcn.00403146
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030f3
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f9b
mov esi, dword [ebp + 0x14]
mov edi, 0x40c448
push esi
push edi
call fcn.004030fd
test eax, eax
je 0x4030a8
sub dword [ebp + 0x14], esi
mov dword [0x40c3d0], edi
mov dword [0x40c3d4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c3b8
mov dword [0x40c3d8], ebx
mov dword [0x40c3dc], eax
call fcn.00403166
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403089
mov esi, dword [0x40c3d8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x424f54], 1
mov edi, eax
je 0x40303d
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40300a
cmp dword [ebp + 0x14], 0
jne 0x40303d
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00406aee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40307e
cmp dword [ebp + 0x10], eax
jne 0x403066
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40308d
cmp dword [ebp - 0x10], esi
jne 0x40308d
add dword [ebp - 4], esi
jmp 0x403072
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c3d8]
cmp dword [ebp - 0x14], 1
jne 0x402fbe
jmp 0x4030f3
cmp dword [ebp + 0x14], eax
jg 0x402f8e
jmp 0x4030f3
push 0xfffffffffffffffc
jmp 0x4030aa
push 0xfffffffffffffffe
jmp 0x4030aa
test edi, edi
je 0x4030e8
cmp dword [ebp + 0x14], esi
jge 0x40309d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030fd
test eax, eax
jne 0x4030f0
push 0xfffffffffffffffd
pop eax
jmp 0x4030f6
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030b8
mov esi, dword [ebp + 0x14]
mov edi, 0x40c448
push esi
push edi
call fcn.004030fd
test eax, eax
je 0x4030a8
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40308d
cmp esi, dword [ebp + 0x10]
jne 0x40308d
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030ad
jmp 0x4030f3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4050f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x80c], 0
jne 0x40514a
inc dword [0x424694]
mov eax, dword [0x424694]
or dword [esi + 0x810], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0x1498], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x80c], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x407c27
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x80c]
pop esi
ret

Function at 0x4052b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x424690
push 0x40
push 4
push 0x4246a0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x4246a0], 0xc2
mov dword [0x424690], eax
mov dword [0x424698], eax
mov dword [0x4246a8], eax
mov dword [0x42469c], eax
mov dword [0x424694], eax
mov byte [0x4246a2], al
ret
Function at 0x405370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x424ed0]
push edi
push 6
call fcn.004079e0
xor ebx, ebx
cmp eax, ebx
je 0x40539b
push 0x42b000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.004042c8
jmp 0x4053e5
mov edi, 0x4218a0
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x42b000], 0x7830
call fcn.00407645
cmp byte [0x4218a0], bl
jne 0x4053da
push ebx
push edi
push 0x40831a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00407645
push edi
push 0x42b000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405595
mov eax, dword [0x424ed8]
mov ebp, 0x42a400
and eax, 0x20
push ebp
mov dword [0x424f20], eax
mov dword [0x424f3c], 0x10000
call fcn.00407324
test eax, eax
jne 0x405495
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x405495
mov edx, dword [esi + 0x44]
mov eax, dword [0x424ef8]
mov edi, 0x423e40
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.00407645
mov al, byte [0x423e40]
cmp al, bl
je 0x405495
cmp al, 0x22
jne 0x405454
mov edi, 0x423e41
push 0x22
push edi
call fcn.0040726e
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405488
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405488
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405482
test al, 0x10
jne 0x405488
push edi
call fcn.0040728a
push edi
call fcn.00407243
push eax
push ebp
call fcn.004076bc
push ebp
call fcn.00407324
test eax, eax
jne 0x4054ab
push dword [esi + 0x104]
push ebp
call fcn.004076de
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x424ec0]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x424688], eax
call fcn.004052b0
push ebx
call fcn.004012fc
test eax, eax
je 0x4054de
push 2
pop eax
jmp 0x405590
call fcn.00405595
cmp dword [0x424f40], ebx
jne 0x405565
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20
call esi
test eax, eax
jne 0x405503
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
mov esi, 0x424640
mov ebp, str.RichEdit20A
push esi
push ebp
push ebx
call edi
test eax, eax
jne 0x405532
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x424664], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x424680]
push ebx
add eax, 0x69
push 0x405657
movzx eax, ax
push ebx
push eax
push dword [0x424ec0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.0040400b
mov eax, esi
jmp 0x405590
push ebx
call fcn.00406bc0
test eax, eax
je 0x405587
cmp dword [0x42466c], ebx
jne 0x4054d6
push 2
call fcn.004012fc
jmp 0x4054d6
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4238a8], 0x44
push eax
xor eax, eax
push 0x4238a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406feb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x407075
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00407324
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4070a9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x424f28], eax
jmp 0x40723d
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4070c7
test eax, eax
je 0x4071e8
test byte [ebp + 0xc], 2
je 0x4071e8
mov esi, 0x4228a8
push edi
push esi
call fcn.004076bc
test ebx, ebx
je 0x4070e4
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4070ea
push edi
call fcn.0040728a
cmp byte [edi], 0
jne 0x4070f8
cmp byte [0x4228a8], 0x5c
jne 0x407103
push 0x40a010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4071de
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040726e
cmp byte [eax], 0
je 0x407149
cmp byte [ebp - 0x18], 0
je 0x407149
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40715f
mov al, byte [esi + 1]
test al, al
je 0x4071bd
cmp al, 0x2e
jne 0x40715f
cmp byte [esi + 2], 0
je 0x4071bd
push esi
push ebx
call fcn.004076bc
test byte [ebp - 0x148], 0x10
je 0x407184
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4071bd
push dword [ebp + 0xc]
push edi
call fcn.00407075
jmp 0x4071bd
push edi
call fcn.00407416
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4071b5
test byte [ebp + 0xc], 4
je 0x4071ad
push edi
push 0xfffffffffffffff1
call fcn.00406aee
push 0
push edi
call fcn.004074ac
jmp 0x4071bd
inc dword [0x424f28]
jmp 0x4071bd
push edi
push 0xfffffffffffffff2
call fcn.00406aee
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407127
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4071e8
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40723d
cmp dword [ebp - 8], esi
jne 0x4071fd
inc dword [0x424f28]
jmp 0x40723d
push edi
call fcn.004079b9
test eax, eax
je 0x40723d
push edi
call fcn.00407243
push edi
call fcn.00407416
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x407235
test byte [ebp + 0xc], 4
je 0x4071f5
push edi
push 0xfffffffffffffff1
call fcn.00406aee
push esi
push edi
call fcn.004074ac
jmp 0x40723d
push edi
push 0xffffffffffffffe5
call fcn.00406aee
pop edi
pop esi
leave
ret 8
Function at 0x407324
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422ca8
push esi
call fcn.004076bc
push esi
call fcn.004072d7
mov edi, eax
test edi, edi
jne 0x407345
xor eax, eax
jmp 0x407397
push edi
call fcn.00407920
test byte [0x424ed8], 0x80
je 0x40735e
mov al, byte [edi]
test al, al
je 0x407341
cmp al, 0x5c
je 0x407341
sub edi, esi
jmp 0x407376
call fcn.004079b9
test eax, eax
je 0x407370
test byte [eax], 0x10
je 0x407341
push esi
call fcn.0040728a
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x407362
call fcn.00407243
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x407416
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407432
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x407435
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x407464
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4074a8
test edi, edi
jne 0x40746f
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4074a2
Function at 0x4074ac
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004079e0
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4074d0
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x407609
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423a30], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423a30
je 0x407514
push 1
push 0
push esi
call fcn.00407435
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40760f
cmp eax, edi
jg 0x40760f
mov esi, 0x4234a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40760f
cmp eax, edi
jg 0x40760f
push esi
push ebp
push str._s_s_r_n
push 0x4230a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424ed0]
add esp, 0x10
push dword [eax + 0x114]
push esi
call fcn.004076de
push 4
push 0xc0000000
push esi
call fcn.00407435
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x407609
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x407602
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407602
cmp edi, dword [esp + 0x18]
jne 0x407602
push str._Rename__r_n
push esi
call fcn.0040739c
test eax, eax
jne 0x407616
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004076bc
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4230a8
push eax
call fcn.004073e8
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x424f30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a350
push eax
call fcn.0040739c
test eax, eax
je 0x4075cd
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x40763d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x407632
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4075cf
Function at 0x407645
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4076b6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4076a5
cmp dword [ebp + 0x14], 1
je 0x4076a7
cmp dword [ebp + 0x14], 2
je 0x4076a7
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40370c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c]
mov dword [esi], 0x5101b0
mov eax, dword [edi]
test eax, eax
je 0x40372b
xor ecx, ecx
cmp word [eax], cx
sete cl
test cl, cl
je 0x403740
mov ecx, edi
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.004a0cb3
lea ecx, [esi + 0x84]
call fcn.004a0c7d
lea ecx, [esi + 0x78]
call fcn.004a0c7d
mov ecx, edi
call fcn.004a0c7d
lea ecx, [esi + 0x18]
call fcn.00483177
lea ecx, [esi + 0xc]
call fcn.004a0c7d
lea ecx, [esi + 8]
call fcn.004a0c7d
pop edi
lea ecx, [esi + 4]
pop esi
jmp fcn.004a0c7d
Function at 0x4057b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edx, edx
xor ecx, ecx
call fcn.0048245f
push 0x567b9c
lea ecx, [ebp - 4]
mov edi, eax
call fcn.004a1664
mov ecx, esi
call fcn.004a0e93
lea ecx, [ebp - 4]
call fcn.004a0ea5
push eax
lea ecx, [ebp - 4]
call fcn.004a0e99
mov edx, eax
mov ecx, edi
call fcn.004b9462
push edi
test al, al
jne 0x405817
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 8]
push 0x517834
push eax
call fcn.004a1618
pop ecx
pop ecx
jmp 0x405828
lea eax, [ebp - 8]
push 0x5107e8
push eax
call fcn.004a1618
add esp, 0xc
push dword [eax]
mov ecx, esi
call fcn.004a101e
lea ecx, [ebp - 8]
call fcn.004a0c7d
mov dl, 1
mov ecx, edi
call fcn.00479b79
lea ecx, [ebp - 4]
call fcn.004a0c7d
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x406410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov byte [ebp - 1], 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40643b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x4064a9
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x406437
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40649d
cmp dword [ebp + 0x10], 0
jne 0x406475
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov byte [ebp - 1], 1
jmp 0x40649d
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [eax]
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp edi, eax
jl 0x40649c
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp - 1], 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x40689e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 0x40], eax
cmp byte [esi + 0x34], bl
je 0x4068f4
cmp dword [esi + 0x2c], 1
jbe 0x4068f4
cmp dword [esi + 0x18], ebx
jne 0x4068f4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x406890
push ebx
push ebx
mov dword [ebp + 8], ebx
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x4068ed
mov al, 1
jmp 0x4068f6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406dc4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
lea ecx, [ebp - 8]
call fcn.00406d54
push 0x510a68
lea ecx, [ebp - 8]
call fcn.004a0ff9
push eax
mov esi, 0x510a5c
lea eax, [ebp - 4]
push esi
push eax
call fcn.004a1618
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.004a0ff9
mov ecx, eax
call fcn.00482110
test al, al
jne 0x406e33
push 0x510a3c
lea ecx, [ebp - 8]
call fcn.004a0ff9
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004a1618
add esp, 0x10
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004a101e
lea ecx, [ebp - 0x14]
call fcn.004a0c7d
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x68]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x68], edi
call fcn.004a0e93
lea ecx, [ebp - 0xc]
call fcn.004af641
lea ecx, [ebp - 0xc]
call fcn.004a0ff9
push eax
lea ecx, [ebp - 4]
call fcn.004a0ff9
push eax
lea eax, [ebp - 0x10]
push 0x510a30
push eax
call fcn.004a1618
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 8]
call fcn.004a0ff9
push eax
push esi
push 0x4008
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
call fcn.004a0ff9
push eax
lea ecx, [ebp - 4]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406ef2
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406a33
mov ecx, 0x5109c0
mov edi, eax
call fcn.00472057
cmp edi, esi
je 0x406ef2
cmp dword [eax + 0x1c], 0xd
jbe 0x406ef2
push 0x7021
push esi
push 0x406
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
cmp dword [ebp - 0x24], esi
je 0x406efd
mov esi, dword [ebp - 0x24]
jmp 0x406f00
or esi, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a0c7d
lea ecx, [ebp - 0xc]
call fcn.004a0c7d
lea ecx, [ebp - 4]
call fcn.004a0c7d
lea ecx, [ebp - 8]
call fcn.004a0c7d
mov eax, esi
pop esi
leave
ret

Function at 0x407c4f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x407c6f
push dword [esp + 8]
call fcn.00407c16
push 0
mov dword [esi + 0x14], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4