joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454097
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x502894
call fcn.004d2c84
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x45411a
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x45411a
call fcn.00449adb
mov edi, eax
jmp 0x454203
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x454137
call fcn.00449adb
jmp 0x4541f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45412d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x454164
mov edi, 0x8007000e
jmp 0x4541f8
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, ebx
ja 0x45419c
cmp eax, 0xffffffff
ja 0x45419c
cmp eax, 0x400
jbe 0x45418d
push eax
lea ecx, [ebp]
call fcn.00443651
jmp 0x454193
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x4541bb
push 0x80070216
call fcn.00406e83
mov eax, 0x4541ac
ret
cmp dword [ebp], 0
je 0x45415a
push edi
push dword [ebp]
push edi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x45412d
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00453f4b
mov edi, eax
test esi, esi
je 0x454203
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x454216
lea ecx, [ebp]
call fcn.00443648
or dword [ebp - 4], 0xffffffff
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 + 0x404]
xor ecx, ebp
call fcn.004d207d
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x463700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504a09
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.00464c00
mov dword [ebp - 4], 1
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call edi
inc eax
lea ecx, [ebp - 0x24]
push eax
call fcn.00464af0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
sub esi, eax
push eax
sar esi, 1
push esi
call edi
cmp eax, esi
jbe 0x463787
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov byte [ebp - 4], 1
jmp 0x4637cb
mov edi, dword [ebp - 0x24]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [edi], ax
je 0x4637b3
push edi
call fcn.004d828d
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.004087d4
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00462fb0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00465130
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463800
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504a89
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x254], edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x250], 0
call fcn.00463700
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004648e0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x463877
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x46387f
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x4638f6
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x7fffffff
jbe 0x4638b2
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x4638ed
test byte [ebp - 0x24c], 0x1f
je 0x4638c9
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4638d5
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x4638e1
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x4638eb
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp byte [ebp + 8], al
je 0x463925
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
xor eax, eax
mov esi, esp
mov dword [ebp - 0x254], esp
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x21c], ax
je 0x46395b
lea eax, [ebp - 0x21c]
push eax
call fcn.004d828d
add esp, 4
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004087d4
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00462fb0
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x4639ec
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x7fffffff
jbe 0x4639a8
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x4639e3
test byte [ebp - 0x234], 0x1f
je 0x4639bf
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4639cb
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x4639d7
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x4639e1
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d207d
mov esp, ebp
pop ebp
ret
Function at 0x46a590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5058fb
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x46a5f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x448]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a7dd
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x458], 4
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x448]
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x44c], 0
jne 0x46a6d8
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x448]
call esi
mov dx, word [ebp - 0x30]
lea eax, [ebp - 0x30]
xor ecx, ecx
test dx, dx
je 0x46a6d8
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x46a6b0
cmp ecx, 3
jne 0x46a6d8
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x44c], eax
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x44c]
mov dword [0x56bc40], eax
mov eax, dword [ebp - 0x450]
mov dword [0x56bc44], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x45c], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x46a740
push 0xa
lea edx, [ebp - 0x454]
mov dword [ebp - 0x454], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00475e70
add esp, 4
mov dword [0x56bc48], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x46a7ce
mov di, word [ebp - 0x238]
mov ecx, 0x56bc50
test di, di
je 0x46a7a2
lea esi, [ebp - 0x238]
movzx edx, di
sub esi, ecx
nop dword [eax]
movzx eax, word [esi + ecx + 2]
mov word [ecx], dx
add ecx, 2
mov edx, eax
test ax, ax
jne 0x46a790
xor eax, eax
mov word [ecx], ax
xor ecx, ecx
lea eax, [ebp - 0x238]
test di, di
je 0x46a7be
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x46a7b4
movzx eax, word [ebp + ecx*2 - 0x23a]
sub eax, 0x30
mov dword [0x56bc4c], eax
call fcn.00475fc0
mov byte [0x56bd55], al
call fcn.0046a820
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x46a7ff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d207d
mov esp, ebp
pop ebp
ret
Function at 0x46ac60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50597f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.004d208e
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push esi
push 0x46acf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x46acd4
push 8
push esi
call fcn.004d232c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46bba0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], ecx
push eax
push 0x46bbd0
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x46bd40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505b21
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0x2a
push eax
call fcn.0041305e
cmp eax, 0xffffffff
jne 0x46bda3
cmp dword [esi + 0x14], 8
jb 0x46bd97
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46bead
lea ecx, [ebp - 0x478]
call fcn.0046bed0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46bdbd
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.00476930
test eax, eax
je 0x46be9b
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
cmp dword [ebp - 0x18], 0
je 0x46be1e
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x46be1a
cmp word [ebp - 0x44c], 0x2e
jne 0x46be1a
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46be79
cmp cx, 0x2e
jne 0x46be1a
cmp word [ebp - 0x448], 0
je 0x46be79
test eax, eax
jne 0x46be79
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.00476d60
mov byte [ebp - 4], 1
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46be79
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x46be75
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x46be79
mov ecx, edx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46be9b
cmp dword [ebp - 0x18], 0
je 0x46be9b
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46bde0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046bf90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d207d
mov esp, ebp
pop ebp
ret
Function at 0x46c150
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x46c21a
nop dword [eax + eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.004648e0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x46c1ad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46c1fe
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x46c255
add eax, eax
cmp eax, 0x1000
jb 0x46c1f5
test cl, 0x1f
jne 0x46c255
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46c255
sub ecx, eax
cmp ecx, 4
jb 0x46c255
cmp ecx, 0x23
ja 0x46c255
mov ecx, eax
push ecx
call fcn.004d2078
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x46c190
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
cmp esi, edi
je 0x46c233
push ecx
mov ecx, esi
call fcn.0046cbb0
add esi, 0x18
cmp esi, edi
jne 0x46c224
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d207d
mov esp, ebp
pop ebp
ret
call fcn.004d7db2
int3
Function at 0x46dde0
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x2bc], eax
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x10]
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x52ade8
mov esi, ecx
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [esp + 0x14]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [esp + 0x18]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
lea eax, [esp + 8]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x46dea6
push 0x4009
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x46dead
mov ecx, dword [esp + 0xc]
push dword [esp + 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x46dead
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004d207d
add esp, 0x2c0
ret

Function at 0x46df50
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505f60
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x46dfac
push 0x104
lea ecx, [ebp + 8]
call fcn.004069f7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.004d7fd2
mov edx, eax
add esp, 8
test edx, edx
js 0x46e060
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x46e060
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x4013
push 0x2b4
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2c4]
push eax
push 0x10
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x46e03f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46e041
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d207d
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406e83
int3
Function at 0x46ee90
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x46eebf
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x46eea5
mov ecx, dword [ecx]
mov eax, dword [edi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [edi + 0x3c]
mov ecx, edi
call fcn.00452fd5
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x46eecb
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x46eed7
mov ebx, dword [ebx]
test esi, esi
jne 0x46eeed
mov ecx, 0xd
xor eax, eax
pop edi
test ecx, ecx
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004d828d
add esp, 4
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
xor eax, eax
pop edi
test ecx, ecx
pop esi
sete al
pop ebx
ret 0xc
Function at 0x46f230
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46f25d
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x46f243
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.00452fd5
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 8
jb 0x46f269
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop esi
sbb eax, eax
inc eax
ret 8

Function at 0x46f390
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x506279
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x46f454
call fcn.00406d01
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46f406
push 0x80004005
call fcn.00406e83
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x46f41b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46f41d
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d207d
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x46f467
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x46f4ec
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00406d01
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46f493
push 0x80004005
call fcn.00406e83
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x46f4a8
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x46f4ac
mov ecx, edx
call edi
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x46f4d2
movzx eax, ax
mov ecx, esi
push eax
call fcn.0040928a
jmp 0x46f422
push eax
call fcn.004d828d
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp]
push eax
call fcn.0040937e
jmp 0x46f422
call fcn.004d289c
int3
Function at 0x46f6d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x506331
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x46f767
call fcn.00406d01
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46f746
push 0x80004005
call fcn.00406e83
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x46f75b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46f75d
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
jmp 0x46f842
lea eax, [ebp + 0x208]
push eax
push 0
push 0x52ae30
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x46f7c2
call fcn.00406d01
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46f79f
push 0x80004005
call fcn.00406e83
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x46f7b4
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x46f7b8
mov ecx, edx
call edi
add eax, 0x10
mov dword [esi], eax
jmp 0x46f842
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406d01
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46f7eb
push 0x80004005
call fcn.00406e83
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x46f800
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x46f804
mov ecx, edx
call edi
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 3
lea eax, [ebp + 0x208]
test eax, 0xffff0000
jne 0x46f82a
movzx eax, ax
mov ecx, esi
push eax
call fcn.0040928a
jmp 0x46f842
push eax
call fcn.004d828d
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.0040937e
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004d207d
lea esp, [ebp + 0x414]
pop ebp
ret