joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401377
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x46ab8a
call fcn.004640e0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4882ec]
mov ecx, 0x4882ec
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401470
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], esi
jne 0x4013e6
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, edi
push eax
push 0x40119f
push esi
push esi
mov dword [ebp - 0x10], esi
call fcn.00447a8e
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], esi
je 0x401456
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401436
call fcn.004012ee
test al, al
je 0x40140e
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4013e1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
xor al, al
call fcn.0046417f
ret
cmp eax, esi
jne 0x401450
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov al, 1
jmp 0x401430

Function at 0x402096
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4020ad
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4020e2
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4020de
cmp edi, eax
jae 0x4020e2
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4020d0
cmp edi, eax
jb 0x4020e6
xor eax, eax
jmp 0x4020ef
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4026cc
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x485060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x468cbc
call fcn.004640e0
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402739
cmp eax, esi
jge 0x402739
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004021f9
and dword [ebp - 4], 0
push 0x46ed0c
push edi
mov ecx, eax
call fcn.00405117
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x402744
push 0x46f164
push edi
call fcn.004021f9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044797e
add ebp, 0x20c
leave
ret

Function at 0x4027c6
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x46781e
call fcn.004640e0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4027f9
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
call fcn.0046417f
ret
mov eax, dword [0x4882ec]
mov ecx, 0x4882ec
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ebx, 0x46ed0c
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040500e
inc eax
mov ecx, eax
jmp 0x40285c
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00401c32
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov edi, dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi + 1]
push ebx
lea esi, [ebp + 8]
call fcn.0040500e
mov esi, eax
cmp esi, 0xffffffff
jne 0x402825
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.004017c3
jmp 0x4027e6

Function at 0x402d1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.C:Program_Files
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d84
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40346b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x1c
mov eax, 0x469029
call fcn.004640e0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004021f9
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004021f9
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.004021f9
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.004021f9
lea eax, [ebp - 0x10]
push eax
push 0x46c5ac
push 1
push ebx
push 0x46c5cc
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.00403405
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x18]
call fcn.00403405
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
cmp dword [ebp - 0x28], ebx
jl 0x4035d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x46c5dc
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4035c3
cmp dword [ebp - 0x18], ebx
je 0x4035c3
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041bf87
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
je 0x403594
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx - 0xc], ebx
je 0x4035a6
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
cmp esi, ebx
jl 0x4035ba
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x403604
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, ebx
call fcn.0046417f
ret
xor ebx, ebx
inc ebx
jmp 0x4035d0
Function at 0x403cd1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x485060]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a8]
xor ebx, ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
cmp dword [0x4863fc], ebx
je 0x403d31
push str.Advapi32.dll
mov dword [0x4863fc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x403d31
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48978c], eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp + 0x1ac]
or eax, 8
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403db0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403d72
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403cd1
add esp, 0xc
test eax, eax
jne 0x403d81
push edi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x403d59
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x48978c]
cmp eax, ebx
je 0x403da4
push ebx
push dword [ebp + 0x1ac]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call eax
jmp 0x403db0
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044797e
add ebp, 0x19c
leave
ret

Function at 0x404210
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x468f46
call fcn.00464149
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x404230
mov ecx, ebx
call fcn.00405285
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004015e7
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x5c
push 0x2f
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00404e2a
lea esi, [ebp - 0x264]
call fcn.0040503f
mov ecx, eax
inc ecx
lea edx, [ebp - 0x268]
mov eax, esi
call fcn.00401c32
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017c3
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404316
test byte [ebp - 0x260], 0x10
jne 0x4042fd
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405117
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebx + 4]
mov eax, dword [eax]
push eax
mov edi, ebx
call fcn.004052e2
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4042e6
mov dword [ecx], eax
jmp 0x4042e8
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017c3
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4042a6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
call fcn.00464193
ret
Function at 0x40461d
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x485060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x469e89
call fcn.004640e0
mov dword [ebp - 4], 2
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push 0x46ef60
call fcn.0040252c
pop ecx
pop ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x46ed0c
push eax
call fcn.004021f9
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x20], esp
push str.temp.lnk
push eax
call fcn.004021f9
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x214]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.004015e7
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00402895
mov byte [ebp - 4], 5
push 0x46f164
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push dword [ebp - 0x10]
call fcn.00403609
add esp, 0x20
test eax, eax
jne 0x40472d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044797e
add ebp, 0x20c
leave
ret
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x404784
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
jmp 0x40470a
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004021f9
lea ecx, [ebp - 0x14]
push str.explorer.exe
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405117
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
push 5
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
cmp esi, 0x20
jle 0x404749
xor esi, esi
inc esi
jmp 0x40474b
Function at 0x404a03
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x485060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x404a6a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x404a5f
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00448c16
pop ecx
pop ecx
test eax, eax
je 0x404a79
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404a3f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044797e
leave
ret
mov eax, dword [ebp - 0x228]
jmp 0x404a6c

Function at 0x404a81
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x467690
call fcn.004640e0
push 0x800
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404b32
mov eax, dword [0x4882ec]
mov ecx, 0x4882ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], edi
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.00401760
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.0040543b
lea eax, [ebp - 0x18]
push 0x46ed0c
push eax
mov ecx, esi
call fcn.00405117
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00405117
add esp, 0x10
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004017c3
mov eax, edi
call fcn.0046417f
ret
Function at 0x404c28
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x469a80
call fcn.004640e0
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x4882ec]
mov ecx, 0x4882ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x104
lea esi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401760
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.0040543b
cmp dword [ebp + 0x10], ebx
je 0x404cda
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push 0x46ed0c
push eax
call fcn.004021f9
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0x10]
push eax
call fcn.004021f9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
call fcn.004015e7
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], bl
call fcn.00402895
add esp, 0x10
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401470
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404d1c
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
call fcn.004027c6
pop ecx
cmp eax, ebx
jne 0x404d1c
push dword [ebp + 8]
call fcn.00402c8c
pop ecx
mov eax, esi
call fcn.004017c3
mov eax, dword [ebp + 8]
jmp 0x404d76
push 1
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00405081
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x404d3a
cmp word [eax], 0x5c
mov byte [ebp - 0xd], bl
je 0x404d3e
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
cmp byte [ebp - 0xd], bl
je 0x404d58
push 0x5c
lea eax, [ebp - 0x14]
call fcn.00402008
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.004015e7
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004017c3
mov eax, edi
call fcn.0046417f
ret

Function at 0x4063c7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4063d5
push 0xd
pop eax
jmp 0x406408
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4063dc
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40686a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x485060]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.0040682c
mov ebx, eax
cmp ebx, edi
je 0x4068d0
cmp dword [ebp - 0x214], edi
je 0x4068c9
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406968
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4068f8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040686a
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x406979
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x4068d8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x406943
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.004069e6
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x406966
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044797e
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x40698d
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x406968

Function at 0x4069e6
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x48986c], 0
jne 0x406a16
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406a0f
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x489870], eax
mov byte [0x48986c], 1
mov eax, dword [0x489870]
test eax, eax
je 0x406a2e
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x406a3a
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x407eff
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x46b4a9
call fcn.004640e0
mov ebx, ecx
lea esi, [ebp - 0x10]
call fcn.00402cd6
xor esi, esi
lea edi, [ebx + 0x4c8]
mov dword [ebp - 4], esi
call fcn.00401470
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
lea eax, [ebp - 0x10]
push eax
call fcn.00402c8c
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [0x4882ec]
mov ecx, 0x4882ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp dword [ebx + 0x4cc], esi
je 0x407fc6
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], esp
call fcn.004015e7
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov ecx, ebx
call fcn.0040c0a2
cmp eax, esi
jne 0x407fb6
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
call fcn.0046417f
ret
lea eax, [ebx + 0x4f0]
lea edi, [ebp - 0x10]
call fcn.00401470
jmp 0x40800a
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x18]
call fcn.00407786
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edi, [ebp - 0x14]
call fcn.0041c04f
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
xor esi, esi
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x18], eax
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
mov edi, ebx
call fcn.0040c7e4
cmp eax, esi
jne 0x40805f
push 0x30
push str.Bandisoft_Setup
push str.Error_at_ReadData
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
call fcn.004017c3
mov eax, esi
jmp 0x407fb0
cmp dword [ebx + 0x4cc], esi
je 0x408088
cmp dword [ebx + 0x520], esi
je 0x408088
call fcn.00404335
test eax, eax
jne 0x408088
call fcn.004085e6
test eax, eax
je 0x408086
xor esi, esi
inc esi
jmp 0x408050
xor esi, esi
push 8
push dword [0x48830c]
mov dword [0x4866c0], 0x470770
mov dword [0x48669c], esi
mov dword [0x4866b8], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x4866b0], eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [eax], esi
mov eax, esp
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
mov eax, ebx
mov dword [ebp - 0x14], esp
call fcn.0040874b
mov eax, dword [ebx + 0x500]
cmp dword [eax - 0xc], esi
je 0x4080ec
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, ebx
call fcn.0040d12a
call fcn.0040d2d0
test eax, eax
jne 0x40810a
xor esi, esi
push esi
push esi
push 0x10
push dword [ebx + 4]
jmp 0x40804a
add ebx, 4
push ebx
call fcn.00408c04
jmp 0x408081