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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4efb36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004049e4
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00404ca4
mov esi, eax
sar esi, 1
jns 0x4efaaa
adc esi, 0
test esi, esi
jle 0x4efb13
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404f04
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x4efb4c
call fcn.00404cf0
mov eax, dword [ebp - 0x10]
call fcn.00409300
mov edx, eax
mov al, byte [ebx + 0x4fae1c]
xor dl, al
lea eax, [ebp - 0xc]
call fcn.00404bcc
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404cac
lea eax, [ebx + 1]
mov ecx, 0xa
cdq
idiv ecx
mov ebx, edx
inc dword [ebp - 8]
dec esi
jne 0x4efab5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efb3d
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret

Function at 0x4efb50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4efba6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4efb8f
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4efb8f
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efbad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x4efc54
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4efcd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bcc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4efce8
call fcn.00404cf0
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x4efcb2
cmp eax, 1
je 0x4efcb2
cmp eax, 3
jne 0x4efcb2
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x4efc72
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efcda
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a08
ret
Function at 0x4f0aec
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4f0cf4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f0cb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4ff554]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp - 4]
call fcn.00402970
call fcn.00402934
lea eax, [ebp - 0x14c]
push eax
push 0x4f0d08
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f0be5
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404c54
lea eax, [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov eax, dword [ebp - 0x150]
call fcn.004096cc
test al, al
je 0x4f0bce
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov edx, dword [ebp - 0x154]
mov eax, dword [0x4ff554]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4f0b74
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [0x4ff554]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov esi, eax
dec esi
test esi, esi
jl 0x4f0caa
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x158]
mov eax, dword [0x4ff554]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x158]
call fcn.004ef5a8
cmp edx, 0
jne 0x4f0c37
cmp eax, 0x25435650
jbe 0x4f0ca2
jmp 0x4f0c39
jle 0x4f0ca2
lea ecx, [ebp - 0x15c]
mov eax, dword [0x4ff554]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.004ef5a8
cmp edx, 0
jne 0x4f0c6a
cmp eax, 0x25437d60
jae 0x4f0ca2
jmp 0x4f0c6c
jge 0x4f0ca2
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x160]
mov eax, dword [0x4ff554]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x160]
mov eax, 0x4ff51c
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f0cc6
inc ebx
dec esi
jne 0x4f0c06
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f0cc6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0cfb
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.00404a08
lea eax, [ebp - 0xc]
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4f0d8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4f0e0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004049e4
mov eax, dword [ebp - 4]
call fcn.00404ca4
mov ebx, eax
test ebx, ebx
jle 0x4f0def
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 5
call fcn.00404bcc
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00404cac
inc edi
dec ebx
jne 0x4f0dcf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0e11
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a08
ret

Function at 0x4f0e18
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4f0f92
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004b732c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004b734c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4f0f5e
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409a24
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408cdc
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408cdc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404df0
je 0x4f0f38
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408cdc
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408cdc
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404df0
jne 0x4f0f4f
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004b736c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4f0e99
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0f99
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4f105c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4f10b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.004f0e18
push 0x12c
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.00409904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f10c0
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
mov esi, dword [ebp + 0xc]
xor edx, edx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
lea esp, [esp]
lea esp, [esp]
nop
mov dl, byte [esi]
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x401040]
add esi, 1
sub ecx, 1
jne 0x401020
not eax
pop edx
pop ecx
pop esi
leave
ret 8

Function at 0x401478
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401498
jmp 0x4014b8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x40b3c0], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4014b5
jmp 0x4014b8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x40151c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov byte [ebp - 0x401], 0
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x401542
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x401541
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x405bc8
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401568
mov eax, 0x80000000
jmp 0x4015c9
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x40157b
mov eax, 0x80000005
jmp 0x4015c9
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40158e
mov eax, 0x80000001
jmp 0x4015c9
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x4015a1
mov eax, 0x80000002
jmp 0x4015c9
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x4015b4
mov eax, 0x80000003
jmp 0x4015c9
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x4015c7
mov eax, 0x80000006
jmp 0x4015c9
jmp 0x4015fa
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00405e10
test dword [ebp + 0x14], 1
je 0x4015e6
push ebx
call fcn.00401606
cmp byte [ebx], 0
je 0x4015fa
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
mov byte [ebp - 0x401], al
popal
movzx eax, byte [ebp - 0x401]
leave
ret 0x10
Function at 0x401630
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 8], eax
mov ebx, eax
push dword [ebp + 0xc]
push ebx
call sub.user32.dll_LoadBitmapA
test eax, eax
je 0x4017f8
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x401669
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x14]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x40167c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp + 0x18]
push dword [ebp + 8]
call sub.user32.dll_GetDlgItem
test eax, eax
je 0x4017f8
mov esi, eax
push ebx
lea ebx, [ebp - 0x3c]
push ebx
push esi
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x2c]
push edi
push dword [ebp + 8]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00401800
pop ebx
push 0
push esi
call sub.user32.dll_ShowWindow
jmp 0x4016e7
lea esi, [ebp - 0x6c]
mov dword [esi], 0x30
mov dword [esi + 4], 0x2000
mov dword [esi + 8], 0x4018d0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], 0x10
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x4016d6
mov dword [esi + 0x18], 0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], 0
push esi
call sub.user32.dll_RegisterClassExA
push 0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x50000000
push 0
push 0x4016d6
push 0x20
call sub.user32.dll_CreateWindowExA
mov ebx, eax
push dword [ebp - 0xc]
push 0
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x10]
push 4
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x14]
push 8
push ebx
call sub.user32.dll_SetWindowLongA
push 0
push dword [ebp - 8]
push dword [ebp + 0x18]
push ebx
push 0
push 0
push 0
push 0
push 0x5000000e
push 0
push str.STATIC
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push 0
push 0x172
push eax
call sub.user32.dll_SendMessageA
push edi
push dword [ebp - 4]
call sub.user32.dll_GetWindowRect
push dword [ebp - 4]
push 0xc
push ebx
call sub.user32.dll_SetWindowLongA
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, dword [edi]
push 2
push ecx
push eax
push 0
push 0
push 0
push ebx
call sub.user32.dll_SetWindowPos
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x401b07
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x401b48
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x401f63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
push edi
push ebx
push ecx
push edx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push 0x40b0e2
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
xor edi, edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x402032
mov dword [0x40b3de], eax
mov esi, str.BASSMOD_Init
mov ebx, 0x40b3ca
jmp 0x401ff1
push esi
push dword [0x40b3de]
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x401fda
mov dword [ebx], eax
add ebx, 4
jmp 0x401fd2
inc esi
cmp byte [esi], 0
jne 0x401fd1
inc esi
jmp 0x401ff1
push dword [0x40b3de]
call sub.kernel32.dll_FreeLibrary
mov dword [0x40b3de], 0
jmp 0x402032
cmp byte [esi], 0
jne 0x401fba
push 0
push InitCommonControls
push 0xffffffffffffffff
call dword [0x40b3ca]
cmp eax, 1
jne 0x402032
call dword [0x40b3ce]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
push 6
push ecx
push 0
push eax
push 1
call dword [0x40b3d2]
cmp eax, 1
jne 0x402032
call dword [0x40b3d6]
inc edi
mov eax, edi
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
popal
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x40b84d
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..BAK
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x402154
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x402156
mov al, 1
mov byte [0x40bc65], al
popal
leave
ret 4

Function at 0x402160
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x40b84d
cmp dword [ebp + 8], 0
jne 0x402196
cmp byte [0x40bc65], 0
jne 0x402185
push 0
push 0x40b44d
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x40bc65], 0
jne 0x4021fd
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x4021fd
push 0x6b
push dword [0x40b3e6]
call sub.user32.dll_IsDlgButtonChecked
cmp byte [0x40c094], 1
jne 0x4021c1
cmp byte [0x40c095], 1
jne 0x4021bc
mov eax, 1
jmp 0x4021c1
mov eax, 0
cmp eax, 1
jne 0x4021fb
push 0x400
push 0x40e4b9
push 0xd
push dword [0x40b3e2]
call sub.user32.dll_LoadStringA
push 0x40e4b9
call fcn.004020dc
push esi
call fcn.004020dc
push dword [0x40bc4d]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4021fd
jmp 0x402185
popal
leave
ret 4
Function at 0x402202
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
lea esi, [ebp - 0x400]
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..tmp
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_DeleteFileA
push esi
push dword [ebp + 8]
call sub.kernel32.dll_MoveFileA
cmp eax, 1
jne 0x40224f
push 1
push dword [ebp + 8]
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
jne 0x40224f
mov eax, 1
pop esi
leave
ret 4
Function at 0x402676
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x40bc51]
or esi, esi
je 0x4026ce
push dword [0x40bc59]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x40bc5d]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x40bc61]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.00402160
push dword [0x40bc4d]
push 0x40b44d
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x40272a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.00401440
or eax, eax
je 0x402787
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._bassmod.dll
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00405ce4
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret
Function at 0x4034f0
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push esi
push edi
push ebx
push 0x70
push dword [0x40b3e6]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x40369c
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x40c497
push 9
push dword [0x40b3ea]
call fcn.00402700
mov dword [esi + 4], eax
push eax
call fcn.00405c60
or eax, eax
je 0x40369c
push dword [0x40b3e6]
pop dword [esi]
lea ebx, [ebp - 0x414]
push ebx
push dword [ebp - 0x404]
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x424]
push edi
push dword [0x40b3e6]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
push dword [0x40b3e6]
call fcn.00401800
push 1
push 0x12
call fcn.00401440
or eax, eax
je 0x4035ae
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
push 1
push 0xb
call fcn.00401440
or eax, eax
je 0x4035c3
mov eax, dword [eax + 1]
jmp 0x4035d5
cmp dword [esi + 0x1d], 0
je 0x4035d0
mov eax, 0xfe
jmp 0x4035d5
mov eax, 0xff
mov byte [esi + 0x1c], al
lea ebx, [ebp - 0x460]
push 0x3c
push ebx
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebx], 7
mov byte [ebx + 0x17], 1
mov byte [ebx + 0x1a], 4
push str.MS_SANS_SERIF
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
call fcn.00401440
or eax, eax
je 0x40368d
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x40362c
mov dword [ebx + 0x10], 0x2bc
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [edi + 0x15]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x95]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x9b]
mov ecx, dword [edi + 0xd]
lea eax, [ebp - 0x400]
push eax
push ecx
push edx
call fcn.004036a1
lea edx, [edi + 0x15]
cmp byte [edx], 0
jne 0x403683
xor ebx, ebx
jmp 0x40368d
push edx
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push ebx
call sub.gdi32.dll_CreateFontIndirectA
mov dword [esi + 0x14], eax
push esi
call fcn.00401b07
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4048b3
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push esi
push edi
push ebx
mov byte [ebp - 1], 1
push 0x400
push 0x419cb9
push 4
push dword [0x40b3e2]
call sub.user32.dll_LoadStringA
push 0x419cb9
call fcn.004020dc
lea eax, [ebp - 0x401]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x410], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x408], eax
lea eax, [esi + 9]
push dword [ebp - 0x408]
push eax
call fcn.00404b58
mov ecx, dword [ebp - 0x408]
test dword [esi + 5], 1
je 0x40498a
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x414], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x40c], eax
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.00404aac
mov ecx, dword [ebp - 0x40c]
push eax
push ecx
lea eax, [ebp - 0x401]
push eax
call fcn.00405ce4
test eax, eax
je 0x4049e3
mov edi, 0x40b44d
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x401]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x40b2da
push edi
call sub.kernel32.dll_lstrcatA
push 5
push 0
push edi
push str.regedit.exe
push 0x40b2dc
push dword [0x40b3e6]
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x404a0a
push 0x400
push 0x41a0b9
push 0x27
push dword [0x40b3e2]
call sub.user32.dll_LoadStringA
push 0x41a0b9
call fcn.004020dc
mov byte [ebp - 1], 0
jmp 0x404a2b
push 0x400
push 0x41a4b9
push 0x28
push dword [0x40b3e2]
call sub.user32.dll_LoadStringA
push 0x41a4b9
call fcn.004020dc
push 0x1f4
call sub.kernel32.dll_Sleep
push 0x4000
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call sub.kernel32.dll_VirtualFree
test dword [esi + 5], 1
je 0x404a6a
push 0x4000
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_DeleteFileA
push 0x400
push 0x41a8b9
push 0xc
push dword [0x40b3e2]
call sub.user32.dll_LoadStringA
push 0x41a8b9
call fcn.004020dc
push 0x40b0ef
call fcn.004020dc
movzx eax, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4