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

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x5e9e85
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
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
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4ecc88
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4ecc88
call fcn.00415530
mov edi, eax
jmp 0x4ecd90
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4ecca5
call fcn.00415530
jmp 0x4ecd83
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4eccc0
call fcn.00415530
jmp 0x4ecd83
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4eccde
mov edi, 0x8007000e
jmp 0x4ecd85
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x4ecdd2
jb 0x4ecd02
cmp eax, 0xffffffff
ja 0x4ecdd2
cmp eax, 0x400
jbe 0x4ecd1b
push eax
lea ecx, [ebp]
call fcn.004e2cd0
mov dword [ebp - 4], 1
jmp 0x4ecd40
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x4ecd40
mov eax, dword [ebp]
test eax, eax
jne 0x4ecd4e
mov edi, 0x8007000e
jmp 0x4ecd85
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4ecd69
call fcn.00415530
jmp 0x4ecd83
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.004eca80
mov edi, eax
test esi, esi
je 0x4ecd90
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4ecda4
lea ecx, [ebp]
call fcn.004e2c90
mov 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.0059046a
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00409920
int3
Function at 0x4ef7d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea60d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x58]
mov ecx, str.kernel32.dll
movzx esi, ax
call fcn.004bdfa0
mov ebx, eax
push 0x62b4dc
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4ef861
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x38]
test eax, eax
je 0x4ef861
cmp dword [ebp - 0x34], 0
je 0x4ef861
push str.GetNativeSystemInfo
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ef861
lea ecx, [ebp - 0x5c]
push ecx
call eax
jmp 0x4ef86b
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov cx, word [ebp - 0x5c]
movzx eax, cx
test eax, eax
je 0x4ef8ae
cmp eax, 6
je 0x4ef8a9
cmp eax, 9
jne 0x4ef8b3
cmp esi, eax
je 0x4ef889
test si, si
jne 0x4ef8b3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret 4
cmp esi, 6
jmp 0x4ef887
cmp si, cx
je 0x4ef889
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x148]
test ecx, ecx
je 0x4ef8cb
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4ef946
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push 0x1048
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x4ef90f
lea edx, [ebp - 0x2c]
mov ecx, 0x661
call fcn.004ed780
cmp dword [ebp - 0x1c], 0
jne 0x4ef90f
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x2797
mov eax, esp
mov dword [eax], 0x2796
jmp 0x4ef928
push ecx
mov eax, esp
lea ecx, [ebp - 0x2c]
mov dword [eax], 0
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
push ecx
mov eax, esp
mov dword [eax], ecx
mov edx, 0x10
xor ecx, ecx
call fcn.004a6fe0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004075e0
xor al, al
jmp 0x4ef88b
Function at 0x4f1280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eac26
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x78], eax
mov edi, ecx
mov dword [ebp - 0x80], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x84], edi
mov ecx, eax
mov dword [ebp - 0x74], 0
call fcn.004f1640
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004075e0
cmp esi, 0xffffffff
mov esi, dword [ebp - 0x78]
jne 0x4f143b
cmp dword [esi + 0x10], 0
je 0x4f143b
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.004f15c0
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov dword [ebp - 0x74], 4
call fcn.004f0670
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004f1280
add esp, 4
mov byte [ebp - 4], 0xb
mov esi, 4
mov dword [ebp - 0x74], esi
and esi, 0xfffffffb
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.004075e0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.004b0d10
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4f13d2
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00406e80
movups xmm0, xmmword [ebp - 0x58]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x58], ax
movq xmm0, qword [ebp - 0x48]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov byte [ebp - 4], 0xc
or esi, 1
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.004075e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004075e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004075e0
jmp 0x4f1451
push esi
mov ecx, edi
call fcn.00406350
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], 1
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.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x4f4200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb37f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.0058e3e9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f42b1
push eax
push esi
call fcn.0058e2a7
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0058e069
int3
Function at 0x4f5510
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb597
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
lea eax, [edi + 0x50]
mov dword [edi], 0x62b784
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
lea ebx, [edi + 4]
mov eax, dword [edi]
push 0
push ebx
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004f7290
mov dword [ebp - 4], 4
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x62b780
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005904a9
add esp, 4
mov esi, eax
push 1
call fcn.0058e1a7
mov dword [esi + 4], eax
add esp, 4
lea eax, [edi + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x62b78c
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f62c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0890
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x3c], 1
je 0x4f6339
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4f62fe
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
jmp 0x4f630b
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
lea ecx, [eax + ecx*2]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4f632f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f638a
mov eax, edx
push ecx
push eax
call fcn.00590478
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
and dword [esi + 0x3c], 0xfffffffe
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0059505f
int3

Function at 0x4fa3d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x4fa3ff
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x4fa3ed
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.004eb7b0
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x4fa40b
mov edx, dword [edx]
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x4fa417
mov edi, dword [edi]
test edx, edx
jne 0x4fa42a
mov eax, 0xd
test eax, eax
pop edi
sete al
pop esi
ret 0xc
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fa430
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 2
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
pop edi
sete al
pop esi
ret 0xc
Function at 0x4fa6e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x4fa711
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x4fa6fd
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.004eb7b0
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x4fa71e
mov ecx, dword [ecx]
mov eax, dword [esp + 8]
push 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
ret 8

Function at 0x4fad00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec565
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x69001c]
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 dword [ebp - 0x2c], ebx
call fcn.004fae40
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x4fad89
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop word [eax + eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.004f1640
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4fad6d
mov eax, dword [eax]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004075e0
cmp esi, edi
jne 0x4fad50
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.004faff0
mov esi, dword [ebx + 0x18]
lea eax, [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x4fae0f
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004f1640
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4fadba
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004ff420
lea ecx, [ebp - 0x2c]
call fcn.004ff620
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fadf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004075e0
add esi, 0x18
cmp esi, edi
jne 0x4fada0
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.004faff0
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.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x4fae40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec5be
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x69001c]
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 eax, ecx
mov dword [ebp - 0x298], eax
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x4fafc4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004f1640
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, ebx
push 0
push 0x2a
call fcn.0042cdf0
cmp eax, 0xffffffff
jne 0x4faebb
cmp dword [ebx + 0x14], 8
jb 0x4faeaf
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4fafa4
lea ecx, [ebp - 0x290]
call fcn.004e51a0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x4faed2
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x290]
call fcn.0041a8f0
test eax, eax
je 0x4faf95
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4faf25
mov eax, dword [ebp - 0x28c]
shr eax, 4
and eax, 1
je 0x4faf21
cmp word [ebp - 0x260], 0x2e
jne 0x4faf21
mov dx, word [ebp - 0x25e]
test dx, dx
je 0x4faf6c
cmp dx, 0x2e
jne 0x4faf21
cmp word [ebp - 0x25c], 0
je 0x4faf6c
test eax, eax
jne 0x4faf6c
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x290]
call fcn.0041ade0
mov byte [ebp - 4], 2
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x294]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4faf69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x4faf95
test ecx, ecx
je 0x4faf95
lea ecx, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x4faeed
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.004e5250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004075e0
add esi, 0x18
cmp esi, edi
jne 0x4fae83
mov eax, dword [ebp - 0x298]
mov ecx, eax
call fcn.004faff0
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.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x4fdbe0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x5ecd04
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x698010]
test eax, eax
jne 0x4fdd1e
push 0x10
call fcn.005904a9
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x2b4
push 0
push eax
call fcn.005929f0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp]
add esp, 0x10
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x622a20
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4fdced
push 0x4009
push 0x2b4
lea eax, [ebp]
push eax
push 0
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4fdcf4
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4fdcf4
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x698010]
mov dword [0x698010], esi
test eax, eax
je 0x4fdd1c
push 0x10
push eax
call fcn.00590478
mov eax, dword [0x698010]
add esp, 8
jmp 0x4fdd1e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0059046a
lea esp, [ebp + 0x2b8]
pop ebp
ret
Function at 0x4fdd40
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecd45
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x69001c]
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 0x4fdd9c
push 0x104
lea ecx, [ebp + 8]
call fcn.004096b0
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.00597f8d
mov edx, eax
add esp, 8
test edx, edx
js 0x4fde4c
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x4fde4c
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x2b4
push ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2c4]
push eax
call fcn.005929f0
add esp, 0xc
lea eax, [ebp - 0x2c4]
push 0x4013
push 0x2b4
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 esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fde2d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.0059046a
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00409920
int3
Function at 0x4fed70
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x5ecf2e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
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 0x4fee13
call fcn.00409c60
test eax, eax
je 0x4fee97
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
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 esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0059046a
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x4fee26
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x4fee92
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x4fee97
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x4fee6c
movzx eax, ax
mov ecx, esi
push eax
call fcn.004091a0
jmp 0x4fede2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fee72
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004097d0
jmp 0x4fede2
call fcn.00590b6a
push 0x80004005
call fcn.00409920
int3