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

Disassembly:
push 0x1c
mov eax, 0x46a786
call fcn.00463cb0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
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.00447664
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.00463d4f
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 0x40211b
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 0x402132
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402167
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402163
cmp edi, eax
jae 0x402167
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402155
cmp edi, eax
jb 0x40216b
xor eax, eax
jmp 0x402174
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x402751
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x468c6e
call fcn.00463cb0
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 0x4027be
cmp eax, esi
jge 0x4027be
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040227e
and dword [ebp - 4], 0
push 0x46ecfc
push edi
mov ecx, eax
call fcn.00405263
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x4027c9
push 0x46f164
push edi
call fcn.0040227e
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.00447554
add ebp, 0x20c
leave
ret

Function at 0x40284b
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x467446
call fcn.00463cb0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40287e
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
call fcn.00463d4f
ret
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ebx, 0x46ecfc
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00405155
inc eax
mov ecx, eax
jmp 0x4028e1
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00401c28
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.00405155
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028aa
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 0x40286b

Function at 0x402eb0
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 0x402f15
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 0x40375a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x1c
mov eax, 0x468c1b
call fcn.00463cb0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040227e
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040227e
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0040227e
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040227e
lea eax, [ebp - 0x10]
push eax
push 0x46c59c
push 1
push ebx
push 0x46c5bc
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.004036f4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x18]
call fcn.004036f4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
cmp dword [ebp - 0x28], ebx
jl 0x4038bf
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x46c5cc
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4038b2
cmp dword [ebp - 0x18], ebx
je 0x4038b2
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.00402d9d
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 0x403883
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 0x403895
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
cmp esi, ebx
jl 0x4038a9
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 0x4038f3
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.00463d4f
ret
xor ebx, ebx
inc ebx
jmp 0x4038bf
Function at 0x403f77
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x484060]
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 [0x4853fc], ebx
je 0x403fd7
push str.Advapi32.dll
mov dword [0x4853fc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x403fd7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48878c], 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 0x404056
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x404018
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403f77
add esp, 0xc
test eax, eax
jne 0x404027
push edi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x403fff
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x48878c]
cmp eax, ebx
je 0x40404a
push ebx
push dword [ebp + 0x1ac]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call eax
jmp 0x404056
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.00447554
add ebp, 0x19c
leave
ret
Function at 0x4044b6
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x468b38
call fcn.00463d19
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4044d6
mov ecx, ebx
call fcn.004366f6
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.00404f71
push 0x5c
lea esi, [ebp - 0x264]
call fcn.00405186
mov ecx, eax
inc ecx
lea edx, [ebp - 0x268]
mov eax, esi
call fcn.00401c28
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 0x4045be
test byte [ebp - 0x260], 0x10
jne 0x4045a5
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405263
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebx + 4]
mov eax, dword [eax]
push eax
mov edi, ebx
call fcn.004053d1
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40458e
mov dword [ecx], eax
jmp 0x404590
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 0x40454e
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.00463d63
ret

Function at 0x404645
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x468c6e
call fcn.00463cb0
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jae 0x4046ae
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040227e
and dword [ebp - 4], 0
push 0x46ecfc
push edi
mov ecx, eax
call fcn.00405263
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x4046b9
push 0x46f164
push edi
call fcn.0040227e
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.00447554
add ebp, 0x20c
leave
ret
Function at 0x404913
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x469abe
call fcn.00463cb0
mov dword [ebp - 4], 2
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push 0x46ef60
call fcn.004025b1
pop ecx
pop ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x46ecfc
push eax
call fcn.0040227e
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x20], esp
push str.temp.lnk
push eax
call fcn.0040227e
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.0040291a
mov byte [ebp - 4], 5
push 0x46f164
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push dword [ebp - 0x10]
call fcn.004038f8
add esp, 0x20
test eax, eax
jne 0x404a23
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.00447554
add ebp, 0x20c
leave
ret
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x404a7a
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 0x404a00
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040227e
lea ecx, [ebp - 0x14]
push str.explorer.exe
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405263
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 0x404a3f
xor esi, esi
inc esi
jmp 0x404a41
Function at 0x404cf9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x484060]
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 0x404d60
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x404d55
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004487ec
pop ecx
pop ecx
test eax, eax
je 0x404d6f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404d35
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447554
leave
ret
mov eax, dword [ebp - 0x228]
jmp 0x404d62

Function at 0x404d77
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x4671f0
call fcn.00463cb0
push 0x800
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
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.0040550a
lea eax, [ebp - 0x18]
push 0x46ecfc
push eax
mov ecx, esi
call fcn.00405263
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00405263
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.00463d4f
ret

Function at 0x4064a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4064b6
push 0xd
pop eax
jmp 0x4064e9
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 0x4064bd
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 0x406954
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x484060]
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.00406916
mov ebx, eax
cmp ebx, edi
je 0x4069ba
cmp dword [ebp - 0x214], edi
je 0x4069b3
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406a52
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4069e2
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00406954
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x406a63
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 0x4069c2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x406a2d
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00406ad0
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x406a50
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.00447554
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x406a77
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x406a52

Function at 0x406ad0
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x48886c], 0
jne 0x406b00
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406af9
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x488870], eax
mov byte [0x48886c], 1
mov eax, dword [0x488870]
test eax, eax
je 0x406b18
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x406b24
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x40884f
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x46968a
call fcn.00463cb0
lea esi, [ebp - 0x1c]
call fcn.00402e67
and dword [ebp - 4], 0
mov eax, dword [0x4872ec]
mov esi, 0x4872ec
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4872ec]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], 0
push str.xinsttemp.exe
je 0x4088c0
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4f8]
push eax
lea eax, [ebp - 0x14]
push str._s_d_s
push eax
call fcn.00402550
add esp, 0x14
jmp 0x4088ec
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x4f8]
push eax
call fcn.00405263
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401470
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004017c3
lea esi, [ebp - 0x28]
call fcn.00404264
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00405212
pop ecx
pop ecx
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401470
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017c3
mov edi, dword [ebp - 0x18]
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40897a
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x2710
jl 0x408898
xor esi, esi
lea eax, [edi - 0x10]
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, esi
call fcn.00463d4f
ret
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x28]
call fcn.00407880
mov eax, dword [eax]
push 5
push 0
push eax
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017c3
cmp esi, 0x20
jle 0x408952
xor esi, esi
inc esi
jmp 0x408954
Function at 0x40b634
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x46960c
call fcn.00463cb0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b667
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
inc eax
call fcn.00463d4f
ret 4
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ecfc
push eax
call fcn.0040227e
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x18], esp
call fcn.0041bade
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esp
call fcn.00404264
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0
call fcn.0040291a
add esp, 0x10
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40b6dc
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
jmp 0x40b65f
lea esi, [ebp - 0x14]
call fcn.004041f5
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
push dword [ebp - 0x10]
push dword [ebp + 8]
call ebx
mov esi, eax
jmp 0x40b6c2

Function at 0x40dbe0
Capabilities:
Identify system language via api

Disassembly:
push 0xc
mov eax, 0x4686b7
call fcn.00463cb0
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x40dcf8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0040eeca
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040de89
mov edi, dword [ebp - 0x10]
push edi
push str._SetLangFolderCommon___lang:_s
call fcn.004025b1
pop ecx
pop ecx
cmp dword [edi - 0xc], ebx
je 0x40dc6a
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040dd4f
test eax, eax
je 0x40dc6a
mov eax, edi
jmp 0x40dcf3
push 1
push dword [ebp - 0x14]
call fcn.0040eeca
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040de89
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x40dcaa
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040dd4f
test eax, eax
jne 0x40dc63
mov edi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x471c8c
push eax
call fcn.0040227e
call fcn.0040dd4f
test eax, eax
jne 0x40dcf0
cmp dword [esi + 8], eax
ja 0x40dcd3
push 0x80070057
call fcn.00401790
mov eax, dword [esi + 4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040dd4f
lea eax, [edi - 0x10]
call fcn.004017c3
call fcn.00463d4f
ret