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

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x553ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d0074]
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 0x480f78
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x480f78
call fcn.00412420
mov edi, eax
jmp 0x481080
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x480f95
call fcn.00412420
jmp 0x481073
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x480fb0
call fcn.00412420
jmp 0x481073
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 0x480fce
mov edi, 0x8007000e
jmp 0x481075
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x4810c2
jb 0x480ff2
cmp eax, 0xffffffff
ja 0x4810c2
cmp eax, 0x400
jbe 0x48100b
push eax
lea ecx, [ebp]
call fcn.004770a0
mov dword [ebp - 4], 1
jmp 0x481030
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x481030
mov eax, dword [ebp]
test eax, eax
jne 0x48103e
mov edi, 0x8007000e
jmp 0x481075
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 0x481059
call fcn.00412420
jmp 0x481073
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.00480d70
mov edi, eax
test esi, esi
je 0x481080
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x481094
lea ecx, [ebp]
call fcn.00477060
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.00520c02
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.004143a0
int3
Function at 0x483b00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554298
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5d0074]
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 edi, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x54]
mov ecx, 0x58aa8c
movzx esi, ax
call fcn.00453da0
mov ebx, eax
push str.IsWow64Process
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x483b8e
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x30]
test eax, eax
je 0x483b8e
cmp dword [ebp - 0x34], 0
je 0x483b8e
push str.GetNativeSystemInfo
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x483b8e
lea ecx, [ebp - 0x58]
push ecx
call eax
jmp 0x483b98
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov cx, word [ebp - 0x58]
movzx eax, cx
test eax, eax
je 0x483bdb
cmp eax, 6
je 0x483bd6
cmp eax, 9
jne 0x483be0
cmp esi, eax
je 0x483bb6
test si, si
jne 0x483be0
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.00520c02
mov esp, ebp
pop ebp
ret 4
cmp esi, 6
jmp 0x483bb4
cmp si, cx
je 0x483bb6
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push 0x1048
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x483c24
lea edx, [ebp - 0x2c]
mov ecx, 0x661
call fcn.00481a20
cmp dword [ebp - 0x1c], 0
jne 0x483c24
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x2797
mov eax, esp
mov dword [eax], 0x2796
jmp 0x483c3d
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.004394e0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407c80
xor al, al
jmp 0x483bb8
Function at 0x4856d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5548e2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x7c], esi
mov edi, ecx
mov dword [ebp - 0x84], edi
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x88], edi
push eax
mov dword [ebp - 0x78], 0
call fcn.00485a90
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x48573b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48574e
mov byte [ebp - 0x71], al
cmp dword [esi + 0x10], eax
jne 0x485752
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x40]
and eax, 0xfffffffe
mov dword [ebp - 0x78], eax
call fcn.00407c80
cmp byte [ebp - 0x71], 0
je 0x485790
push esi
mov ecx, edi
call fcn.00406d00
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 2
jmp 0x4858a5
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.00485a20
mov dword [ebp - 4], 4
xor eax, eax
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 - 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]
mov ecx, dword [ebp - 0x7c]
mov esi, 8
push eax
mov dword [ebp - 0x78], esi
call fcn.00484a90
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004856d0
add esp, 4
mov byte [ebp - 4], 0xb
and esi, 0xfffffff7
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.00407c80
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446980
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x485843
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004079c0
movups xmm0, xmmword [ebp - 0x58]
mov dword [edi + 0x10], 0
xor eax, eax
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
mov dword [ebp - 0x78], 2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00407c80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00407c80
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.00520c02
mov esp, ebp
pop ebp
ret
Function at 0x48de30
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x48de5f
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x48de4d
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.0047fa30
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x48de6b
mov edx, dword [edx]
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x48de77
mov edi, dword [edi]
test edx, edx
jne 0x48de8a
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 0x48de90
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 0x48dec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555e99
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d0074]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], 0
mov edx, dword [ebx]
test edx, edx
jne 0x48df1a
xor eax, eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
jmp 0x48e07e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48df24
mov eax, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e068
cmp dword [ebp - 0x4c], eax
je 0x48e068
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x48df5a
cmp eax, 2
jne 0x48e068
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
shr ecx, 1
cmp ecx, eax
ja 0x48dfbd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x48dfca
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00479640
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x48dfdd
mov edi, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e053
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00408c60
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x48e027
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp word [eax + ecx*2 - 2], 0
jne 0x48e027
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0x44]
call fcn.00479590
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00407970
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407c80
jmp 0x48e085
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x48e032
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 1
mov eax, esi
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.00520c02
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48e0b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x48e0e1
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x48e0cd
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.0047fa30
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x48e0ee
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 0x48ea90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556030
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d0074]
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.0048ed20
mov edi, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
mov esi, dword [eax]
mov dword [ebp - 0x30], eax
cmp edi, esi
je 0x48eb19
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop word [eax + eax]
lea eax, [ebp - 0x28]
lea ecx, [edi - 0x18]
push eax
mov edi, ecx
call fcn.00485a90
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x48eafd
mov eax, dword [eax]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c80
cmp edi, esi
jne 0x48eae0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.0048eed0
mov esi, dword [ebx + 0x18]
lea eax, [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x48eb9f
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00485a90
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48eb4a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004144e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00494010
lea ecx, [ebp - 0x2c]
call fcn.00494240
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 0x48eb86
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.00407c80
add esi, 0x18
cmp esi, edi
jne 0x48eb30
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.0048eed0
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.00520c02
mov esp, ebp
pop ebp
ret
Function at 0x48ed20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556109
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5d0074]
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 0x48eea4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00485a90
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, ebx
push 0
push 0x2a
call fcn.00429a70
cmp eax, 0xffffffff
jne 0x48ed9b
cmp dword [ebx + 0x14], 8
jb 0x48ed8f
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x48ee84
lea ecx, [ebp - 0x290]
call fcn.0048ebd0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x48edb2
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x290]
call fcn.00498870
test eax, eax
je 0x48ee75
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x48ee05
mov eax, dword [ebp - 0x28c]
shr eax, 4
and eax, 1
je 0x48ee01
cmp word [ebp - 0x260], 0x2e
jne 0x48ee01
mov dx, word [ebp - 0x25e]
test dx, dx
je 0x48ee4c
cmp dx, 0x2e
jne 0x48ee01
cmp word [ebp - 0x25c], 0
je 0x48ee4c
test eax, eax
jne 0x48ee4c
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x290]
call fcn.00498b90
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 0x48ee49
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 0x48ee75
test ecx, ecx
je 0x48ee75
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 0x48edcd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0048ec70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c80
add esi, 0x18
cmp esi, edi
jne 0x48ed63
mov eax, dword [ebp - 0x298]
mov ecx, eax
call fcn.0048eed0
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.00520c02
mov esp, ebp
pop ebp
ret
Function at 0x492f90
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x556b3f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
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 [0x5d6538]
test eax, eax
jne 0x4930ce
push 0x10
call fcn.00520c21
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x2b4
push 0
push eax
call fcn.00522fa0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp]
add esp, 0x10
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x58bb18
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 0x49309d
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 0x4930a4
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4930a4
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5d6538]
mov dword [0x5d6538], esi
test eax, eax
je 0x4930cc
push 0x10
push eax
call fcn.00520c13
mov eax, dword [0x5d6538]
add esp, 8
jmp 0x4930ce
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.00520c02
lea esp, [ebp + 0x2b8]
pop ebp
ret
Function at 0x493940
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x556cf9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
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 0x4939e3
call fcn.00413cd0
test eax, eax
je 0x493a67
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.00520c02
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x4939f6
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x493a62
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x493a71
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 0x493a3c
movzx eax, ax
mov ecx, esi
push eax
call fcn.00414050
jmp 0x4939b2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493a42
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004143c0
jmp 0x4939b2
call fcn.005212a0
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3
Function at 0x494240
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556ee8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x494310
call fcn.00494800
test al, al
jne 0x494310
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x49433b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x57efb4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4942be
movzx eax, ax
push eax
call fcn.00414050
jmp 0x4942ca
push 4
push 0x57efb4
call fcn.004143c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00418250
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49431e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49431e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x494328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004143a0
int3

Function at 0x494350
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556ee8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x494420
call fcn.00494800
test al, al
jne 0x494420
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x49444b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x57efb4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4943ce
movzx eax, ax
push eax
call fcn.00414050
jmp 0x4943da
push 4
push 0x57efb4
call fcn.004143c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00418250
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49442e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49442e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x494438
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004143a0
int3