joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026b7
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, 0x468b83
call fcn.00463f70
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 0x402724
cmp eax, esi
jge 0x402724
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004021e4
and dword [ebp - 4], 0
push 0x46ecfc
push edi
mov ecx, eax
call fcn.004052e0
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017b8
jmp 0x40272f
push 0x46f160
push edi
call fcn.004021e4
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.00447810
add ebp, 0x20c
leave
ret

Function at 0x4027b1
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x46778f
call fcn.00463f70
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4027e4
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
call fcn.0046400f
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.004051d2
inc eax
mov ecx, eax
jmp 0x402847
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00401c1d
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.004017b8
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.004051d2
mov esi, eax
cmp esi, 0xffffffff
jne 0x402810
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.004017b8
jmp 0x4027d1
Function at 0x402dd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x466ab8
call fcn.00463f70
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
jne 0x402e8a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x402e72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x402e86
push 0x46ed00
lea eax, [ebp - 0x14]
push eax
call fcn.004021e4
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.004052e0
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017b8
push dword [ebp - 0x10]
call esi
mov ebx, eax
call edi
mov dword [ebp - 0x14], eax
cmp ebx, 0xffffffff
je 0x402e64
test bl, 0x10
jne 0x402e64
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
xor eax, eax
inc eax
jmp 0x402e95
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x402e86
cmp eax, 3
je 0x402e86
cmp eax, 0x7b
je 0x402e86
cmp eax, 0x35
jne 0x402e5f
xor eax, eax
jmp 0x402e95
not al
movzx eax, al
shr eax, 4
and eax, 1
call fcn.0046400f
ret

Function at 0x402e9b
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 0x402f00
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 0x4036fb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x1c
mov eax, 0x468f2e
call fcn.00463f70
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004021e4
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004021e4
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.004021e4
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.004021e4
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.00403695
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x18]
call fcn.00403695
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
cmp dword [ebp - 0x28], ebx
jl 0x403860
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 0x403853
cmp dword [ebp - 0x18], ebx
je 0x403853
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.00402cc1
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.004017b8
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 0x403824
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 0x403836
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
cmp esi, ebx
jl 0x40384a
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 0x403894
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, ebx
call fcn.0046400f
ret
xor ebx, ebx
inc ebx
jmp 0x403860
Function at 0x403f1e
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 0x403f7e
push str.Advapi32.dll
mov dword [0x4853fc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x403f7e
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 0x403ffd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403fbf
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403f1e
add esp, 0xc
test eax, eax
jne 0x403fce
push edi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x403fa6
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x48878c]
cmp eax, ebx
je 0x403ff1
push ebx
push dword [ebp + 0x1ac]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call eax
jmp 0x403ffd
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.00447810
add ebp, 0x19c
leave
ret
Function at 0x40445d
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x468e4b
call fcn.00463fd9
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x40447d
mov ecx, ebx
call fcn.004369cf
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.00404fee
push 0x5c
lea esi, [ebp - 0x264]
call fcn.00405203
mov ecx, eax
inc ecx
lea edx, [ebp - 0x268]
mov eax, esi
call fcn.00401c1d
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.004017b8
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404565
test byte [ebp - 0x260], 0x10
jne 0x40454c
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x264]
call fcn.004052e0
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebx + 4]
mov eax, dword [eax]
push eax
mov edi, ebx
call fcn.0040544e
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x404535
mov dword [ecx], eax
jmp 0x404537
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017b8
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
call fcn.00464023
ret
Function at 0x40480d
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, 0x469d98
call fcn.00463f70
mov dword [ebp - 4], 2
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push 0x46ef44
call fcn.00402517
pop ecx
pop ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x46ecfc
push eax
call fcn.004021e4
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x20], esp
push str.temp.lnk
push eax
call fcn.004021e4
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.00402880
mov byte [ebp - 4], 5
push 0x46f160
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push dword [ebp - 0x10]
call fcn.00403899
add esp, 0x20
test eax, eax
jne 0x40491d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017b8
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.00447810
add ebp, 0x20c
leave
ret
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x404974
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
jmp 0x4048fa
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004021e4
lea ecx, [ebp - 0x14]
push str.explorer.exe
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004052e0
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017b8
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.004017b8
cmp esi, 0x20
jle 0x404939
xor esi, esi
inc esi
jmp 0x40493b
Function at 0x404bf3
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 0x404c5a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x404c4f
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00448aa8
pop ecx
pop ecx
test eax, eax
je 0x404c69
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404c2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447810
leave
ret
mov eax, dword [ebp - 0x228]
jmp 0x404c5c

Function at 0x404c71
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x46755c
call fcn.00463f70
push 0x800
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404d22
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
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.00401755
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00405587
lea eax, [ebp - 0x18]
push 0x46ecfc
push eax
mov ecx, esi
call fcn.004052e0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004052e0
add esp, 0x10
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004017b8
mov eax, edi
call fcn.0046400f
ret
Function at 0x404e1a
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x46998f
call fcn.00463f70
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
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.00401755
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.00405587
cmp dword [ebp + 0xc], ebx
je 0x404ecb
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push 0x46ecfc
push eax
call fcn.004021e4
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0xc]
push eax
call fcn.004021e4
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.00402880
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.004017b8
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404f0d
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.004027b1
pop ecx
cmp eax, ebx
jne 0x404f0d
push dword [ebp + 8]
call fcn.00402c77
pop ecx
mov eax, esi
call fcn.004017b8
mov eax, dword [ebp + 8]
jmp 0x404f67
push 1
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.0040524a
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x404f2b
cmp word [eax], 0x5c
mov byte [ebp - 0xd], bl
je 0x404f2f
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
cmp byte [ebp - 0xd], bl
je 0x404f49
push 0x5c
lea eax, [ebp - 0x14]
call fcn.00401ff3
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.004017b8
mov eax, edi
call fcn.0046400f
ret

Function at 0x406542
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x406550
push 0xd
pop eax
jmp 0x406583
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 0x406557
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 0x4069e5
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.004069a7
mov ebx, eax
cmp ebx, edi
je 0x406a4b
cmp dword [ebp - 0x214], edi
je 0x406a44
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406ae3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406a73
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004069e5
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x406af4
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 0x406a53
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x406abe
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00406b61
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x406ae1
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.00447810
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x406b08
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x406ae3

Function at 0x406b61
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x48886c], 0
jne 0x406b91
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b8a
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 0x406ba9
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x406bb5
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x4088d2
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x469954
call fcn.00463f70
lea esi, [ebp - 0x1c]
call fcn.00402d8b
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 0x408943
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4f8]
push eax
lea eax, [ebp - 0x14]
push str._s_d_s
push eax
call fcn.004024b6
add esp, 0x14
jmp 0x40896f
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x4f8]
push eax
call fcn.004052e0
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.004017b8
lea esi, [ebp - 0x28]
call fcn.0040420b
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040528f
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.004017b8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017b8
mov edi, dword [ebp - 0x18]
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4089fd
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x2710
jl 0x40891b
xor esi, esi
lea eax, [edi - 0x10]
call fcn.004017b8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
call fcn.0046400f
ret
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x28]
call fcn.00407903
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.004017b8
cmp esi, 0x20
jle 0x4089d5
xor esi, esi
inc esi
jmp 0x4089d7