joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018a4
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 3
call fcn.00402fb2
add esp, 0xc
cmp eax, 2
jge 0x4018d6
push 3
pop eax
jmp 0x401a88
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x4018ed
push eax
call fcn.00408090
pop ecx
push ebx
push esi
push edi
mov ebx, 0x431fc0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x208
cmp eax, 0xffffffff
je 0x401921
test al, 0x10
je 0x401921
push ebx
call fcn.00407232
mov dword [esp], 0x431db8
push esi
push ebx
call fcn.004112fd
add esp, 0xc
push ebx
push str.Copying_file:__s
push esi
mov esi, 0x4327e0
push esi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x10
test eax, eax
je 0x40194e
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.TRYTIME
call fcn.00409015
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
pop ecx
push 0x431fc0
push 0x431db8
call fcn.00405dd7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a6b
test esi, esi
jle 0x40198b
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401961
cmp edi, 0x1f
jne 0x401a40
push str.REBOOTIFLOCKED
push 0x4321c8
call fcn.00411399
pop ecx
pop ecx
test eax, eax
jne 0x401a37
mov esi, 0x431fc0
lea eax, [ebp - 0x108]
push esi
push str._s.bak
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
xor ecx, ecx
test eax, eax
push 4
push 0
lea eax, [ebp - 0x108]
cmove ecx, edi
push eax
mov edi, ecx
call esi
mov byte [0x433a62], 1
test edi, edi
jne 0x401a32
push str.TRYTIME
call fcn.00409015
pop ecx
mov esi, eax
push 0x431fc0
push 0x431db8
call fcn.00405dd7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a32
test esi, esi
jle 0x401a32
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401a0c
cmp edi, 0x1f
jne 0x401a3c
push 8
pop edi
jmp 0x401a40
test edi, edi
je 0x401a6b
push str.SILENT
push 0x4321c8
call fcn.00411399
pop ecx
pop ecx
test eax, eax
jne 0x401a6b
push 0x431fc0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 8
pop edi
cmovne edi, ecx
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x401a83
push 0
call fcn.00408090
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d5ca
leave
ret
Function at 0x401bf1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fb2
add esp, 0xc
cmp eax, 4
jge 0x401c11
push 3
pop eax
leave
ret
push ebx
push esi
push edi
mov ebx, 0x4323d0
mov edi, 0x4327e0
push ebx
push 0x4321c8
push str.Creating_Registry_value:__s_s
push 0x208
push edi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x14
xor esi, esi
test eax, eax
je 0x401c50
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x401c67
push eax
call fcn.00408090
pop ecx
push 0xa
push esi
push ebx
call fcn.004151e1
push 0x431db8
mov dword [ebp - 8], eax
mov edi, esi
call fcn.00403004
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401cef
cmp byte [0x433a60], 0
mov esi, 0xf003f
je 0x401cb1
push 0x4264f0
push 0x4325d8
call fcn.00411399
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push esi
xor esi, esi
push esi
push esi
push esi
push 0x431fc0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4321c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401cf2
push 0xc
pop edi
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x401d09
push esi
call fcn.00408090
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fb2
add esp, 0xc
cmp eax, 4
jge 0x401d2f
push 3
pop eax
leave
ret
push esi
push edi
push 0x4323d0
push 0x4321c8
push str.Creating_Registry_value:__s_s
push 0x208
mov esi, 0x4327e0
push esi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x14
xor edi, edi
test eax, eax
je 0x401d6c
push esi
push edi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x401d83
push eax
call fcn.00408090
pop ecx
push ebx
push 0x431db8
mov esi, edi
call fcn.00403004
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e07
cmp byte [0x433a60], 0
mov edi, 0xf003f
je 0x401dc0
push 0x4264f0
push 0x4325d8
call fcn.00411399
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove edi, ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
xor edi, edi
push edi
push edi
push edi
push 0x431fc0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, 0x4323d0
push ebx
call fcn.00411480
pop ecx
inc eax
push eax
push ebx
push 1
push edi
push 0x4321c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e0a
push 0xb
pop esi
push str.REALUSER
call fcn.00409015
pop ecx
pop ebx
cmp eax, 1
jne 0x401e22
push edi
call fcn.00408090
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x402122
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.Removing_DeskSoft_license_file_association
push 0x208
mov esi, 0x4327e0
push esi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x402168
push esi
push ebx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.DeskSoftLicense
call fcn.004079e3
pop ecx
test eax, eax
jne 0x4022b8
push 0x530
lea eax, [ebp - 0x73c]
push ebx
push eax
call fcn.0040e980
add esp, 0xc
lea eax, [ebp - 0x744]
mov esi, 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 0x4022b8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x402230
lea eax, [ebp - 0x73c]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00407e9b
pop ecx
pop ecx
test al, al
je 0x40221d
push str.SetDLC.exe
lea eax, [ebp - 0x728]
push eax
push str._s_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402298
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x744]
mov dword [ebp - 0x740], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4021cc
cmp byte [ebp - 0x728], bl
je 0x402294
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x728]
push eax
push str._s_s.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
push 0x426670
push str.DeskSoft_License_File
lea eax, [ebp - 0x108]
push eax
push str.DeskSoftLicense
call fcn.004089e0
add esp, 0x24
xor eax, eax
jmp 0x4022bb
push 0x4266e8
push str.DeskSoft_License_File
lea eax, [ebp - 0x108]
push eax
push str.DeskSoftLicense
call fcn.004089e0
add esp, 0x10
jmp 0x402294
push 0x1a
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
Function at 0x4022c9
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 2
call fcn.00402fb2
add esp, 0xc
cmp eax, 1
jge 0x4022fb
push 3
pop eax
jmp 0x40246a
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x402312
push eax
call fcn.00408090
pop ecx
push esi
push edi
mov esi, 0x431db8
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
call fcn.004110f3
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040ec10
add esp, 0x14
test eax, eax
je 0x402344
mov byte [eax + 1], 0
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402447
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x402431
lea eax, [ebp - 0x108]
push eax
push str.Deleting_file:__s
push 0x208
push 0x4327e0
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x10
test eax, eax
je 0x4023d3
push 0x4327e0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.TRYTIME
call fcn.00409015
mov esi, eax
mov eax, 0x3e8
cmp esi, eax
pop ecx
cmovl esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402431
test esi, esi
jle 0x402420
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402431
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0x64
test esi, esi
jg 0x4023ea
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40235d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.REALUSER
call fcn.00409015
pop ecx
pop edi
pop esi
cmp eax, 1
jne 0x402468
push 0
call fcn.00408090
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d5ca
leave
ret
Function at 0x402552
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 4
call fcn.00402fb2
add esp, 0xc
cmp eax, 3
jge 0x402570
push 3
pop eax
leave
ret
push ebx
push esi
push edi
push 0x4321c8
push str.Deleting_Registry_value:__s
push 0x208
mov esi, 0x4327e0
push esi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x10
test eax, eax
je 0x4025a8
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x4025bf
push eax
call fcn.00408090
pop ecx
push 0x431db8
xor edi, edi
call fcn.00403004
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40262c
cmp byte [0x433a60], 0
mov esi, 0xf003f
je 0x4025fb
push 0x4264f0
push 0x4323d0
call fcn.00411399
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x431fc0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], edi
je 0x40262f
push 0x4321c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40262f
push 0x16
pop edi
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, 1
jne 0x402647
push 0
call fcn.00408090
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a97
Capabilities:
Check if file exists
Delete directory
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
inc edi
push edi
call fcn.00402fb2
add esp, 0xc
cmp eax, edi
je 0x402ab9
push 3
pop eax
jmp 0x402b51
push esi
push 0x431db8
push str.Removing_directory:__s
push 0x208
mov esi, 0x4327e0
push esi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x10
test eax, eax
je 0x402aef
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, edi
jne 0x402b05
push edi
call fcn.00408090
pop ecx
push 0x431db8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b37
push 0x431db8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402b37
push 4
push eax
push 0x431db8
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x14
pop esi
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, edi
jne 0x402b4e
push 0
call fcn.00408090
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402b54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
call fcn.00402fb2
xor edi, edi
add esp, 0xc
inc edi
cmp eax, edi
jge 0x402b77
push 3
pop eax
jmp 0x402c04
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, edi
jne 0x402b8d
push edi
call fcn.00408090
pop ecx
push ebx
push esi
push str..exe
mov esi, 0x431db8
xor ebx, ebx
push esi
call fcn.0040ed50
pop ecx
pop ecx
test eax, eax
je 0x402bcf
push str.Elevated
push 0x4321c8
call fcn.00411399
pop ecx
pop ecx
test eax, eax
je 0x402bcf
push ebx
push 0x431fc0
push esi
call fcn.00408794
add esp, 0xc
mov esi, eax
jmp 0x402bea
push edi
push ebx
push 0x431fc0
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1b
cmp eax, 0x20
mov esi, ebx
pop ecx
cmovbe esi, ecx
push str.REALUSER
call fcn.00409015
pop ecx
cmp eax, edi
jne 0x402c00
push ebx
call fcn.00408090
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402dae
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 1
call fcn.00402fb2
add esp, 0xc
cmp eax, 1
je 0x402ddd
push 3
pop eax
jmp 0x402e6a
push ebx
push esi
push edi
mov ebx, 0x431db8
mov edi, 0x4327e0
push ebx
push str.Stopping_service:__s
push 0x208
push edi
call fcn.00403cbc
mov eax, dword [0x432c00]
add esp, 0x10
xor esi, esi
test eax, eax
je 0x402e17
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x402e2d
inc eax
jmp 0x402e67
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x402e5e
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d5ca
leave
ret
Function at 0x402e76
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1464
call fcn.0040d790
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x402f9b
push str.RegDeleteKeyEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1464], eax
test eax, eax
je 0x402f9b
lea eax, [ebp - 0x1458]
push eax
push 0xf013f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x1458], 0
je 0x402fa3
xor ecx, ecx
mov dword [ebp - 0x145c], 0xa28
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x145c]
mov dword [ebp - 0x1460], ecx
push eax
lea eax, [ebp - 0xa2c]
push eax
push ecx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402f7e
mov byte [ebp + 0x10], bl
mov ebx, dword [ebp - 0x1460]
lea eax, [ebp - 0xa2c]
inc ebx
push eax
push edi
push str._s_s
lea eax, [ebp - 0x1454]
push 0xa28
push eax
call fcn.00403cbc
push dword [ebp + 0x10]
lea eax, [ebp - 0x1454]
push eax
push esi
call fcn.00402e76
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402f27
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push edi
push esi
call dword [ebp - 0x1464]
jmp 0x402fa3
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
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.00408090
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.00408090
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
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.00408537
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.004086ea
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 [0x433c00]
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.0040d5ca
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.00411480
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.0040ec10
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 [0x433a58]
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 [0x433a58]
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 [0x433a58]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.DeskSoftBindData
push eax
push esi
call fcn.00409d6e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405f9c
push edi
call fcn.00409539
pop ecx
push 0x11
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push dword [ebp - 0x138]
push esi
call fcn.0040973e
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.0040a1ab
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.00418c7c
push dword [ebp - 8]
mov ecx, dword [ebp - 0x148]
push eax
push dword [ebp - 0x134]
push esi
mov dword [ecx], eax
call fcn.0040a190
add esp, 0x18
test eax, eax
push 0x23
pop ecx
cmovne edi, ecx
push esi
call fcn.00409539
pop ecx
mov eax, edi
jmp 0x405f8d