joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45181d
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504e29
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xf
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xf
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x44]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x38]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x34]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 9
lea ecx, [esi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 8
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 7
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 6
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 4
lea ecx, [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 3
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
sub ecx, edi
call fcn.00406dd3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4542c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x505315
call fcn.004d0d5e
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 0x45434b
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 0x45434b
call fcn.00449cbb
mov edi, eax
jmp 0x454434
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x454368
call fcn.00449cbb
jmp 0x454427
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45435e
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 0x454395
mov edi, 0x8007000e
jmp 0x454429
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 0x4543cd
cmp eax, 0xffffffff
ja 0x4543cd
cmp eax, 0x400
jbe 0x4543be
push eax
lea ecx, [ebp]
call fcn.00443832
jmp 0x4543c4
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x4543ec
push 0x80070216
call fcn.00406e60
mov eax, 0x4543dd
ret
cmp dword [ebp], 0
je 0x45438b
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 0x45435e
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.0045417c
mov edi, eax
test esi, esi
je 0x454434
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x454447
lea ecx, [ebp]
call fcn.00443829
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.004d014c
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x463a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507459
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x56a078]
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.00464f20
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.00464e10
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 0x463aa7
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov byte [ebp - 4], 1
jmp 0x463aeb
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 0x463ad3
push edi
call fcn.004d635d
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.004087b1
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004632d0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00465440
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 0x463b20
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5074d9
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x56a078]
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.00463a20
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00464c00
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x463b97
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x463b9f
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 0x463c16
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x7fffffff
jbe 0x463bd2
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x463c0d
test byte [ebp - 0x24c], 0x1f
je 0x463be9
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x463bf5
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x463c01
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x463c0b
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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 0x463c45
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 0x463c7b
lea eax, [ebp - 0x21c]
push eax
call fcn.004d635d
add esp, 4
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004087b1
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.004632d0
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x463d0c
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x7fffffff
jbe 0x463cc8
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x463d03
test byte [ebp - 0x234], 0x1f
je 0x463cdf
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x463ceb
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x463cf7
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x463d01
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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.004d014c
mov esp, ebp
pop ebp
ret
Function at 0x46ae20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50834b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x56a078]
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 0x46ae83
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 0x46b06d
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 0x46af68
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 0x46af68
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x46af40
cmp ecx, 3
jne 0x46af68
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 [0x570ac0], eax
mov eax, dword [ebp - 0x450]
mov dword [0x570ac4], 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 0x46afd0
push 0xa
lea edx, [ebp - 0x454]
mov dword [ebp - 0x454], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00476840
add esp, 4
mov dword [0x570ac8], 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 0x46b05e
mov di, word [ebp - 0x238]
mov ecx, 0x570ad0
test di, di
je 0x46b032
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 0x46b020
xor eax, eax
mov word [ecx], ax
xor ecx, ecx
lea eax, [ebp - 0x238]
test di, di
je 0x46b04e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x46b044
movzx eax, word [ebp + ecx*2 - 0x23a]
sub eax, 0x30
mov dword [0x570acc], eax
call fcn.00476980
mov byte [0x570bd5], al
call fcn.0046b0b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x46b08f
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.004d014c
mov esp, ebp
pop ebp
ret
Function at 0x46b4c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5083cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.004d015d
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 0x46b550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x46b534
push 8
push esi
call fcn.004d03fb
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 0x46c400
Capabilities:
Enumerate gui resources

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

Function at 0x46c5a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508571
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x56a078]
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.00412bbf
cmp eax, 0xffffffff
jne 0x46c603
cmp dword [esi + 0x14], 8
jb 0x46c5f7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46c70d
lea ecx, [ebp - 0x478]
call fcn.0046c730
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46c61d
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.004772f0
test eax, eax
je 0x46c6fb
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 0x46c67e
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x46c67a
cmp word [ebp - 0x44c], 0x2e
jne 0x46c67a
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46c6d9
cmp cx, 0x2e
jne 0x46c67a
cmp word [ebp - 0x448], 0
je 0x46c6d9
test eax, eax
jne 0x46c6d9
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.00477720
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 0x46c6d9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x523a98
jne 0x46c6d5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x46c6d9
mov ecx, edx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46c6fb
cmp dword [ebp - 0x18], 0
je 0x46c6fb
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46c640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046c7f0
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.004d014c
mov esp, ebp
pop ebp
ret
Function at 0x46c9b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa508
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x56a078]
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 0x46ca7a
nop dword [eax + eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.00464c00
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x46ca0d
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 0x46ca5e
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x46cab5
add eax, eax
cmp eax, 0x1000
jb 0x46ca55
test cl, 0x1f
jne 0x46cab5
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46cab5
sub ecx, eax
cmp ecx, 4
jb 0x46cab5
cmp ecx, 0x23
ja 0x46cab5
mov ecx, eax
push ecx
call fcn.004d0147
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 0x46c9f0
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
cmp esi, edi
je 0x46ca93
push ecx
mov ecx, esi
call fcn.0046d410
add esi, 0x18
cmp esi, edi
jne 0x46ca84
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.004d014c
mov esp, ebp
pop ebp
ret
call fcn.004d5e81
int3

Function at 0x46e640
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x56a078]
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 0x530704
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 0x46e706
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 0x46e70d
mov ecx, dword [esp + 0xc]
push dword [esp + 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x46e70d
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004d014c
add esp, 0x2c0
ret
Function at 0x46e7b0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5089b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x56a078]
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 0x46e80c
push 0x104
lea ecx, [ebp + 8]
call fcn.004069d7
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.004d60a2
mov edx, eax
add esp, 8
test edx, edx
js 0x46e8c0
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x46e8c0
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 0x46e8a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x523a98
jne 0x46e89f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46e8a1
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.004d014c
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406e60
int3

Function at 0x46f6f0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x46f71f
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x46f705
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.00453212
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x46f72b
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x46f737
mov ebx, dword [ebx]
test esi, esi
jne 0x46f74d
mov ecx, 0xd
xor eax, eax
pop edi
test ecx, ecx
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004d635d
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 0x46fa90
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46fabd
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x46faa3
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.00453212
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 8
jb 0x46fac9
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 0x46fbf0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x508c99
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56a078]
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 0x46fcb4
call fcn.00406cde
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46fc66
push 0x80004005
call fcn.00406e60
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x46fc7b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46fc7d
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.004d014c
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x46fcc7
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x46fd4c
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00406cde
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46fcf3
push 0x80004005
call fcn.00406e60
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x46fd08
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x46fd0c
mov ecx, edx
call edi
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x46fd32
movzx eax, ax
mov ecx, esi
push eax
call fcn.00409267
jmp 0x46fc82
push eax
call fcn.004d635d
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp]
push eax
call fcn.0040935b
jmp 0x46fc82
call fcn.004d096b
int3