joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d4d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 1
call fcn.0040809b
push esi
push str._s_test.tmp
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
cmp eax, 0xffffffff
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0040809b
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret

Function at 0x403dd7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0x10]
call fcn.00408542
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x403e54
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathA]
test eax, eax
jne 0x403e54
push 0x10
push 0x40f
push dword [ebp + 8]
call fcn.00405b6c
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x405bc2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x20c]
push eax
call fcn.004086f5
pop ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, dword [ebp + 0xc]
jne 0x405c26
push 0
push dword [0x433c10]
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0040d603
leave
ret 8

Function at 0x405dd7
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e14
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
pop ecx
push 0x1f
cmp eax, 0x20
pop edx
cmove ecx, edx
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
xor eax, eax
push eax
push eax
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405eed
add esp, 0x18
pop ebp
ret
Function at 0x405e2b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405e63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405e63
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 0xa
jl 0x405e31
push 7
pop eax
jmp 0x405e65
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x405ee5
cmp byte [edi], 0
je 0x405ee5
push edi
call fcn.00411620
pop ecx
push edi
lea ebx, [edi + eax]
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405edc
test esi, esi
je 0x405ed8
push 0x5c
push edi
call fcn.0040edb0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x405ea9
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e92
jmp 0x405ed8
test esi, esi
je 0x405ec0
mov byte [esi], 0x5c
jmp 0x405ec7
cmp byte [edi], 0
mov esi, edi
je 0x405ecd
inc esi
cmp byte [esi], 0
jne 0x405ec7
push edi
call fcn.00405e2b
pop ecx
test eax, eax
jne 0x405ee0
cmp esi, ebx
jb 0x405eb7
xor eax, eax
jmp 0x405ee8
xor eax, eax
inc eax
jmp 0x405ee8
push 2
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405eed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x13c], ecx
xor edi, edi
mov ecx, dword [ebp + 0x14]
push 0xa
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp + 0x18]
push eax
push dword [0x433a68]
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x144], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x405f8a
push ebx
push dword [0x433a68]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405f8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x433a68]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.DeskSoftBindData
push eax
push esi
call fcn.00409d7b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405f9c
push edi
call fcn.00409544
pop ecx
push 0x11
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push dword [ebp - 0x138]
push esi
call fcn.0040974b
add esp, 0x14
test eax, eax
je 0x405fc3
push 0x11
jmp 0x405ff2
cmp dword [ebp + 0x10], 1
jne 0x405ff5
push dword [ebp - 0x13c]
push dword [ebp - 0x134]
push esi
call fcn.0040a1b1
add esp, 0xc
test eax, eax
je 0x406031
push 8
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x406031
push 0x1f
pop edi
jmp 0x406031
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
add eax, dword [ebp - 0x144]
push eax
push 1
call fcn.00418e1c
push dword [ebp - 8]
mov ecx, dword [ebp - 0x148]
push eax
push dword [ebp - 0x134]
push esi
mov dword [ecx], eax
call fcn.0040a196
add esp, 0x18
test eax, eax
push 0x23
pop ecx
cmovne edi, ecx
push esi
call fcn.00409544
pop ecx
mov eax, edi
jmp 0x405f8d
Function at 0x40603f
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00411293
lea eax, [ebp - 0x108]
push eax
call fcn.0040723d
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00411293
push 0x426a04
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0041149d
add esp, 0x28
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [ebp + 0xc]
mov edi, eax
cmp edi, 0xffffffff
je 0x406165
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x40614f
test byte [ebp - 0x230], 0x10
je 0x406149
lea eax, [ebp - 0x344]
push 0x426a08
push eax
call fcn.00418d90
pop ecx
pop ecx
test eax, eax
je 0x40614f
lea eax, [ebp - 0x344]
push 0x426a0c
push eax
call fcn.00418d90
pop ecx
pop ecx
test eax, eax
je 0x40614f
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040603f
pop ecx
pop ecx
add esi, eax
jmp 0x40614f
add esi, dword [ebp - 0x210]
lea eax, [ebp - 0x370]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4060c2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret

Function at 0x40617d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push str._s.
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea eax, [ebp - 0x21c]
push 0x426a08
push eax
call fcn.00411539
pop ecx
pop ecx
test eax, eax
je 0x40620a
lea eax, [ebp - 0x21c]
push 0x426a0c
push eax
call fcn.00411539
pop ecx
pop ecx
test eax, eax
je 0x40620a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00411539
pop ecx
pop ecx
test eax, eax
jne 0x406236
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4061c9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
xor bl, bl
jmp 0x40621e
Function at 0x40623a
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062ca
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4062ca
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov ebx, eax
add ecx, ebx
push ecx
push 1
call fcn.00418e1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4062b3
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 8]
je 0x4062b5
push esi
call fcn.00418d70
pop ecx
xor esi, esi
jmp 0x4062b5
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4062c5
mov dword [eax], ebx
mov eax, esi
pop esi
jmp 0x4062e4
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push dword [ebp + 8]
call fcn.00405eed
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
pop ebx
leave
ret

Function at 0x4062e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00405dd7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4063b6
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4063b1
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.0040623a
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4063b1
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test eax, eax
jle 0x40639d
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add edi, 8
push 0
push 0
push eax
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40639a
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0xc], ecx
jne 0x40639a
push 0xfffffffffffffff8
add edi, ecx
pop eax
sub eax, ecx
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jg 0x406350
jmp 0x40639d
push 0x18
pop esi
push dword [ebp - 0x10]
call fcn.00418d70
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4063b4
push 0x18
pop eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4063b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 2
mov dword [ebp - 0x110], eax
pop eax
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40645e
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00411293
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0040edb0
add esp, 0x14
test eax, eax
je 0x40642a
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00405e68
pop ecx
push 0
push 0x80
push 2
pop eax
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40645e
xor eax, eax
inc eax
jmp 0x406491
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0
push eax
push ebx
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, dword [ebp - 0x10c]
push 2
pop ecx
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
Function at 0x407123
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and dword [0x4339f0], 0
cmp byte [ebp + 0xc], 0
push dword [ebp + 8]
je 0x40714f
push 0
push fcn.004064a0
call fcn.004190bd
add esp, 0xc
cmp eax, 0xffffffff
jne 0x407155
push 0xe
pop eax
pop ebp
ret
call fcn.004064a0
pop ecx
xor eax, eax
pop ebp
ret

Function at 0x4075a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
or edx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4075cc
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x433d28]
inc edi
sub esi, 1
jne 0x4075b4
not edx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x407611
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
xor ebx, ebx
mov dword [ebp - 0x128], edi
xor esi, esi
push eax
push esi
jmp 0x40776e
lea eax, [ebp - 0x108]
inc ebx
push edi
push eax
mov dword [ebp - 0x124], ebx
call fcn.0040eef0
pop ecx
pop ecx
test eax, eax
je 0x407766
xor ebx, ebx
push ebx
call fcn.00418d08
pop ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], edx
lea eax, [ebp - 0x108]
mov dword [0x433d24], ebx
push eax
push 0x407b59
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x433d24]
test eax, eax
je 0x40775a
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x118]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push ebx
push 0x12
push dword [0x433d24]
mov dword [ebp - 0x110], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, ebx
mov dword [ebp - 0x10c], 0x103
mov ebx, dword [ebp - 0x110]
cmp edi, 0x64
jge 0x407709
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp dword [ebp - 0x10c], 0x103
je 0x4076e1
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
cmp dword [ebp - 0x10c], 0x103
cmove esi, eax
cmp dword [0x433d24], 0
je 0x40775a
xor ebx, ebx
push ebx
call fcn.00418d08
sub eax, dword [ebp - 0x11c]
pop ecx
sbb edx, dword [ebp - 0x120]
mov dword [ebp - 0x110], edx
js 0x407674
jg 0x40775a
cmp eax, 0x3c
jb 0x407674
mov ebx, dword [ebp - 0x124]
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.00407da7
pop ecx
pop ecx
test al, al
jne 0x407641
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
Function at 0x4079ee
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x426c30
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
mov ebx, SysReAllocString
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push edi
push str._sfile
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret

Function at 0x407a7f
Capabilities:
Create process on windows
Move file
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040edb0
pop ecx
pop ecx
test eax, eax
je 0x407ace
mov byte [eax], bl
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x108]
push 4
push ebx
push eax
call esi
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push str._c_del___s___rmdir___s_
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push edi
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x407b43
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x407b52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
push ebx
call fcn.004195ee
int3
Function at 0x407be0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x638]
push edi
mov edi, dword [ebp + 8]
push 0x530
push 0
push eax
call fcn.0040eb20
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.00407ea6
add esp, 0x14
test al, al
je 0x407cde
xor eax, eax
inc eax
push ebx
push eax
call fcn.0040809b
mov ax, word [ebp - 0x628]
mov ebx, 0x104
pop ecx
test ax, ax
jne 0x407c75
push esi
push 0x1a
call fcn.00407f5f
push edi
push str.DeskSoft_s
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.0041149d
mov ax, word [ebp - 0x628]
add esp, 0x24
xor ecx, ecx
inc ecx
cmp ax, cx
jne 0x407cd2
lea eax, [ebp - 0x520]
push eax
push ebx
push esi
call fcn.00411293
add esp, 0xc
cmp word [ebp - 0x626], 0
je 0x407cd2
push 0x426af0
push ebx
push esi
call fcn.0041149d
add esp, 0xc
mov dword [ebp - 0x63c], ebx
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.0041149d
add esp, 0xc
push 0
call fcn.0040809b
pop ecx
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret

Function at 0x407cec
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407d43
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push esi
call eax
test eax, eax
jne 0x407d3b
or edx, 0xffffffff
mov eax, edx
jmp 0x407d9a
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x407d98
xor eax, eax
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push esi
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.0040f510
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x18]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x10]
mov esi, eax
mov eax, ecx
mul dword [ebp - 0x10]
add esi, edx
mov edx, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret
Function at 0x407da7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407dd1
xor al, al
jmp 0x407dff
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
leave
ret

Function at 0x407ea6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ef4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
jne 0x407efb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
call fcn.00418e1c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407eeb
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x407f2b
push edi
call fcn.00418d70
pop ecx
jmp 0x407eeb
mov esi, dword [ebp + 0xc]
mov eax, 0x530
cmp dword [ebp - 4], eax
cmovb eax, dword [ebp - 4]
push eax
push edi
push esi
call fcn.0040f510
push edi
call fcn.00418d70
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp word [esi], ax
sete al
jmp 0x407ef6

Function at 0x407fb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push str.TEXT
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x408022
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x408021
lea eax, [edi + 1]
push eax
push 1
call fcn.00418e1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408021
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408018
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408018
push edi
push eax
push esi
call fcn.0040f510
add esp, 0xc
jmp 0x408021
push esi
call fcn.00418d70
xor esi, esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret