joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5413c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x480ac7
lea eax, [ebx + 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor esi, esi
mov edx, ebx
nop dword [eax + eax]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480ad5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x480ad0
mov eax, dword [ebp - 0x10]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x481db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x558465
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d6024]
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 0x481e58
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x481e58
call fcn.00413c90
mov edi, eax
jmp 0x481f60
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x481e75
call fcn.00413c90
jmp 0x481f53
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x481e90
call fcn.00413c90
jmp 0x481f53
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 0x481eae
mov edi, 0x8007000e
jmp 0x481f55
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x481fa2
jb 0x481ed2
cmp eax, 0xffffffff
ja 0x481fa2
cmp eax, 0x400
jbe 0x481eeb
push eax
lea ecx, [ebp]
call fcn.004784e0
mov dword [ebp - 4], 1
jmp 0x481f10
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x481f10
mov eax, dword [ebp]
test eax, eax
jne 0x481f1e
mov edi, 0x8007000e
jmp 0x481f55
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 0x481f39
call fcn.00413c90
jmp 0x481f53
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.00481c50
mov edi, eax
test esi, esi
je 0x481f60
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x481f74
lea ecx, [ebp]
call fcn.004784a0
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.00521461
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00408fe0
int3
Function at 0x4848f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558bed
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5d6024]
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 + 0x54]
mov ecx, str.kernel32.dll
movzx esi, ax
call fcn.00454060
mov ebx, eax
push str.IsWow64Process
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x484981
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 0x484981
cmp dword [ebp - 0x34], 0
je 0x484981
push str.GetNativeSystemInfo
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x484981
lea ecx, [ebp - 0x5c]
push ecx
call eax
jmp 0x48498b
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 0x4849ce
cmp eax, 6
je 0x4849c9
cmp eax, 9
jne 0x4849d3
cmp esi, eax
je 0x4849a9
test si, si
jne 0x4849d3
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.00521461
mov esp, ebp
pop ebp
ret 4
cmp esi, 6
jmp 0x4849a7
cmp si, cx
je 0x4849a9
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x148]
test ecx, ecx
je 0x4849eb
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x484a66
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 0x484a2f
lea edx, [ebp - 0x2c]
mov ecx, 0x661
call fcn.00482920
cmp dword [ebp - 0x1c], 0
jne 0x484a2f
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x2797
mov eax, esp
mov dword [eax], 0x2796
jmp 0x484a48
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.00439980
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407f50
xor al, al
jmp 0x4849ab
Function at 0x486210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559216
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5d6024]
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.004865b0
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.00407f50
cmp esi, 0xffffffff
mov esi, dword [ebp - 0x78]
jne 0x4863bb
cmp dword [esi + 0x10], 0
je 0x4863bb
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.00486540
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]
push eax
mov ecx, esi
mov dword [ebp - 0x74], 4
call fcn.00485670
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00486210
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.00407f50
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446f60
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x486358
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00407c80
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
or esi, 1
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00407f50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00407f50
jmp 0x4863d1
push esi
mov ecx, edi
call fcn.00406c70
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x4892b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55996f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5d6024]
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.0051f94f
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 0x489361
push eax
push esi
call fcn.0051f80d
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.0051f5d5
int3

Function at 0x48b1e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5407b0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x3c], 1
je 0x48b259
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x48b21e
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
jmp 0x48b22b
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 0x48b24f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48b2aa
mov eax, edx
push ecx
push eax
call fcn.00521472
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.005267ea
int3
Function at 0x48f3c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x48f3ef
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x48f3dd
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.00480980
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x48f3fb
mov edx, dword [edx]
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x48f407
mov edi, dword [edi]
test edx, edx
jne 0x48f41a
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 0x48f420
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 0x48f6b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x48f6e1
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x48f6cd
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.00480980
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x48f6ee
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 0x48fcc0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ab85
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d6024]
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.0048ff60
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x48fd49
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.004865b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x48fd2d
mov eax, dword [eax]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f50
cmp esi, edi
jne 0x48fd10
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.00490110
mov esi, dword [ebx + 0x18]
lea eax, [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x48fdcf
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004865b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48fd7a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00492890
lea ecx, [ebp - 0x2c]
call fcn.00492a90
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 0x48fdb6
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.00407f50
add esi, 0x18
cmp esi, edi
jne 0x48fd60
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.00490110
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x48ff60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ac5e
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5d6024]
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 0x4900e4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004865b0
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, ebx
push 0
push 0x2a
call fcn.00429680
cmp eax, 0xffffffff
jne 0x48ffdb
cmp dword [ebx + 0x14], 8
jb 0x48ffcf
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4900c4
lea ecx, [ebp - 0x290]
call fcn.0048fe00
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x48fff2
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x290]
call fcn.00497750
test eax, eax
je 0x4900b5
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x490045
mov eax, dword [ebp - 0x28c]
shr eax, 4
and eax, 1
je 0x490041
cmp word [ebp - 0x260], 0x2e
jne 0x490041
mov dx, word [ebp - 0x25e]
test dx, dx
je 0x49008c
cmp dx, 0x2e
jne 0x490041
cmp word [ebp - 0x25c], 0
je 0x49008c
test eax, eax
jne 0x49008c
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x290]
call fcn.00497c50
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 0x490089
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 0x4900b5
test ecx, ecx
je 0x4900b5
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 0x49000d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0048feb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f50
add esi, 0x18
cmp esi, edi
jne 0x48ffa3
mov eax, dword [ebp - 0x298]
mov ecx, eax
call fcn.00490110
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x492160
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x55b26e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d6024]
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 0x492203
call fcn.00409310
test eax, eax
je 0x492287
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.00521461
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x492216
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x492282
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x492287
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 0x49225c
movzx eax, ax
mov ecx, esi
push eax
call fcn.00415200
jmp 0x4921d2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492262
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408e90
jmp 0x4921d2
call fcn.00521a4e
push 0x80004005
call fcn.00408fe0
int3
Function at 0x492890
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x55b435
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x49290b
lea ecx, [edx - 1]
test ecx, ecx
js 0x492a85
cmp ecx, edx
jg 0x492a85
cmp word [eax + ecx*2], 0x5c
je 0x49290b
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00490cf0
push 1
push 0x58feb8
lea ecx, [ebp - 0x14]
call fcn.00418fd0
lea ecx, [ebp]
call fcn.0048fe00
mov byte [ebp - 4], 2
lea ecx, [ebp]
mov esi, dword [ebp - 0x14]
push esi
call fcn.00497750
or ebx, 0xffffffff
test eax, eax
je 0x492a3a
mov ecx, dword [ebp + 0x25c]
or esi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ecx, ecx
je 0x492986
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x492986
cmp word [ebp + 0x30], 0x2e
jne 0x492986
mov ax, word [ebp + 0x32]
test ax, ax
je 0x492a0e
cmp ax, 0x2e
jne 0x492986
cmp word [ebp + 0x34], 0
je 0x492a0e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00497c50
mov byte [ebp - 4], 3
cmp dword [ebp + 0x25c], 0
je 0x4929d0
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x4929d0
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00492890
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x4929c6
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00492a90
jmp 0x4929ea
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x4929e2
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00492ba0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492a08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp]
test eax, eax
je 0x492a34
test ecx, ecx
je 0x492a34
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp + 0x25c], ecx
test ecx, ecx
jne 0x492956
mov esi, dword [ebp - 0x14]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0048feb0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x492a62
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.00521461
lea esp, [ebp + 0x268]
pop ebp
ret
push 0x80070057
call fcn.00408fe0
int3
Function at 0x492a90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b47d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d6024]
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 0x492b60
call fcn.00492fa0
test al, al
jne 0x492b60
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x492b8b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x584fb4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x492b0e
movzx eax, ax
push eax
call fcn.00415200
jmp 0x492b1a
push 4
push 0x584fb4
call fcn.00408e90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
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 0x492b6e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x492b6e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x492b78
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.00408fe0
int3

Function at 0x492ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b47d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d6024]
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 0x492c70
call fcn.00492fa0
test al, al
jne 0x492c70
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x492c9b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x584fb4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x492c1e
movzx eax, ax
push eax
call fcn.00415200
jmp 0x492c2a
push 4
push 0x584fb4
call fcn.00408e90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
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 0x492c7e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x492c7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x492c88
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.00408fe0
int3