joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85d0f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0061eca0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call fcn.00617440
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
push 0x942ae8
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0
call fcn.0061c7f0
mov eax, dword [esp + 0x34]
mov bl, 1
mov byte [esp + 0x28], bl
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x483fc0
lea ecx, [esp + 0x34]
call fcn.0061ba90
lea ecx, [esp + 0x34]
call fcn.0061bd90
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 8]
test eax, eax
je 0x483f7d
lea edx, [esp + 0x34]
push edx
call fcn.004843c0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0061ebd0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 2
call fcn.00484980
add esp, 8
test eax, eax
je 0x483f60
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0061eef0
jmp 0x483f70
mov eax, dword [esi + 4]
lea ecx, [esp + 0x34]
push ecx
push eax
mov ecx, esi
call fcn.0061f330
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.0061ebe0
lea edx, [esp + 0xc]
lea eax, [esp + 0x30]
push edx
push 0x942ae8
push eax
lea ecx, [esp + 0x14]
call fcn.0061c7f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.00618070
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00617ec0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x483f04
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.00617ec0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x20]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x484410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85d198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0x18]
call fcn.0061ebd0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.0061ebd0
lea eax, [esp + 8]
mov ecx, 0x9be970
push eax
mov byte [esp + 0x34], 1
call fcn.00479ca0
mov eax, dword [esp + 0xc]
xor esi, esi
test eax, eax
jle 0x4844cb
mov ecx, dword [esp + 8]
push 0x2a
lea eax, [esp + 8]
lea edx, [ecx + esi*4]
push edx
push eax
call fcn.006195f0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.0061f330
mov eax, dword [0x9dce80]
test eax, eax
je 0x4844b4
mov eax, dword [esp + 4]
push eax
push str.IsWorkSpaceVols_exclude__s_
push str.CFileCondition
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call fcn.00617ec0
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x484461
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0061ebe0
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
push eax
call fcn.00483bd0
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0061ebe0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x484520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85d1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0x18]
call fcn.0061ebd0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.0061ebd0
lea eax, [esp + 8]
mov ecx, 0x9c00b8
push eax
mov byte [esp + 0x34], 1
call fcn.004d5c80
mov eax, dword [esp + 0xc]
xor esi, esi
test eax, eax
jle 0x484611
mov ecx, dword [esp + 8]
lea edx, [ecx + esi*4]
lea ecx, [esp + 4]
push edx
call fcn.00617440
lea eax, [esp + 4]
mov byte [esp + 0x30], 2
push eax
call fcn.004843c0
mov eax, dword [esp + 8]
add esp, 4
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4845ae
push 0x93c728
jmp 0x4845b3
push 0x932da4
lea ecx, [esp + 8]
call fcn.00618b00
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.0061f330
mov eax, dword [0x9dce80]
test eax, eax
je 0x4845f6
mov eax, dword [esp + 4]
push eax
push str.IsProtectedDirs_exclude___s_
push str.CFileCondition
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call fcn.00617ec0
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x484575
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0061ebe0
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
push eax
call fcn.00483bd0
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0061ebe0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4847c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x85d241
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push esi
push edi
push 0x9b5220
lea ecx, [esp + 0xc]
call fcn.00617650
mov eax, dword [esp + 0x278]
xor esi, esi
push eax
mov dword [esp + 0x274], esi
call fcn.00666320
and eax, 0xffff
lea ecx, [esp + 0xc]
push eax
push str._c_s
push ecx
call fcn.0061aed0
add esp, 0x10
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.00617440
push 0x932da4
lea ecx, [esp + 0x10]
mov byte [esp + 0x274], 1
call fcn.00618b00
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x48493b
mov esi, dword [esp + 0x288]
mov edi, dword [esp + 0x284]
push ebx
mov ebx, dword [esp + 0x280]
push ebp
mov ebp, dword [esp + 0x288]
test byte [esp + 0x20], 0x10
je 0x484916
lea edx, [esp + 0x4c]
push 0x9428c0
push edx
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x484916
lea eax, [esp + 0x4c]
push 0x9428c4
push eax
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x484916
push 0x9b5220
lea ecx, [esp + 0x1c]
call fcn.00617650
mov edx, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x50]
push ebx
push ecx
push edx
push ebp
lea eax, [esp + 0x2c]
push str._s_s_s_s_s
push eax
mov byte [esp + 0x294], 2
call fcn.0061aed0
mov eax, dword [esi + 4]
add esp, 0x1c
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.0061f330
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 1
call fcn.00617ec0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x484889
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x270], 0
call fcn.00617ec0
lea ecx, [esp + 8]
mov dword [esp + 0x270], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x268]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x26c
ret
Function at 0x486400
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebx, dword [eax]
push edi
mov dword [esp + 0x10], ebx
cmp ebx, dword [esi + 4]
jge 0x48656c
mov ebp, dword [esp + 0x28]
mov eax, dword [0x9dce80]
test eax, eax
je 0x48644b
mov ecx, dword [esi]
mov edx, dword [ecx + ebx*4]
push edx
push ebp
push str.IsMatchFolderRange_File__s__Cdt__s_
push str.CFileCondition
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x18
mov eax, dword [esi]
lea edi, [ebx*4]
add eax, edi
push str._local
mov eax, dword [eax]
push eax
call fcn.005fc4b7
add esp, 8
test eax, eax
jne 0x4864cf
mov ecx, dword [0x943688]
mov edx, dword [0x94368c]
mov ax, word [ebp]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
push ecx
mov word [esp + 0x18], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov eax, dword [0x9dce80]
test eax, eax
je 0x4864c4
mov eax, dword [esi]
push 3
lea edx, [esp + 0x18]
push ebx
mov ecx, dword [eax + edi]
push edx
push ecx
push str.IsMatchFolderRange_Cdt__s__dir__s__type__d__fixed__d_
push str.CFileCondition
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x20
cmp ebx, 3
je 0x486578
jmp 0x486545
mov eax, dword [esi]
push str._portable
add eax, edi
mov edx, dword [eax]
push edx
call fcn.005fc4b7
add esp, 8
test eax, eax
jne 0x486549
mov eax, dword [0x943688]
mov ecx, dword [0x94368c]
mov dx, word [ebp]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push eax
mov word [esp + 0x20], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov eax, dword [0x9dce80]
test eax, eax
je 0x486540
mov edx, dword [esi]
push 2
lea ecx, [esp + 0x20]
push ebx
mov eax, dword [edx + edi]
push ecx
push eax
push str.IsMatchFolderRange_Cdt__s__dir__s__type__d__removable__d_
push str.CFileCondition
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x20
cmp ebx, 2
je 0x486591
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi]
mov edi, dword [ecx + edi]
push edi
push ebp
call fcn.0066b720
add esp, 8
test eax, eax
jne 0x4865aa
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x486422
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
Function at 0x486770
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x85d5e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x94368c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, eax
mov eax, dword [0x943688]
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, 1
mov ecx, esi
shl eax, cl
cmp eax, ebp
ja 0x486864
and eax, ebp
mov dword [esp + 0x18], eax
jbe 0x48685e
lea edx, [esp + 0x1c]
lea eax, [esi + 0x61]
push edx
mov word [esp + 0x20], ax
call ebx
cmp eax, 3
jne 0x48681f
test byte [esp + 0x34], 1
jbe 0x48685e
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00617650
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
push ecx
mov ecx, edi
call fcn.00486710
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00617ec0
inc esi
jmp 0x4867b1
cmp eax, 2
jne 0x48685e
test byte [esp + 0x34], 2
jbe 0x48685e
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call fcn.00617650
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov dword [esp + 0x30], 1
call fcn.00486710
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00617ec0
inc esi
jmp 0x4867b1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x48a030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x896f08
push 0x5fd778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor esi, esi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x48a137
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48a137
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x48a142
mov dword [ebp - 0x230], ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x230]
push ecx
push 0x489fd0
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x230], ebx
push ebx
push ebx
push ebx
push 1
je 0x48a0e3
mov edx, dword [ebp - 0x22c]
and edx, 0xffff
push edx
jmp 0x48a0ea
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x48a123
cmp eax, ebx
je 0x48a137
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.00489bc0
add esp, 8
mov dword [ebp - 0x20], eax
cmp esi, ebx
je 0x48a142
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48baa0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x85dc55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
mov ebp, ecx
push edi
xor ebx, ebx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00617650
mov edi, 1
cmp esi, ebx
mov dword [esp + 0x238], edi
je 0x48bc1d
push esi
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x48bc1d
push esi
call fcn.005fc40b
add esp, 4
cmp eax, 2
mov edi, 0x3a
jbe 0x48bb1d
cmp word [esi + 2], di
jne 0x48bb1d
cmp word [esi + 4], 0x5c
je 0x48bb39
push esi
call fcn.005fc40b
add esp, 4
cmp eax, 2
jne 0x48bbd9
cmp word [esi + 2], di
jne 0x48bbd9
mov eax, dword [0x92f1fc]
mov cx, word [0x92f200]
mov dword [esp + 0x18], eax
xor eax, eax
mov ax, word [esi]
xor edx, edx
mov dword [esp + 0x1e], edx
push eax
mov word [esp + 0x20], cx
mov word [esp + 0x26], dx
call fcn.005fd934
add esp, 4
lea ecx, [esp + 0x18]
mov word [esp + 0x18], ax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x48bbd9
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call fcn.0048bf10
test eax, eax
jne 0x48bbd9
mov ecx, 0x81
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x30], 0x104
call sub.MPR.dll_WNetGetConnectionW
cmp eax, ebx
jne 0x48bbd9
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.006181a0
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00618b00
cmp dword [0x9dce80], ebx
je 0x48bc00
mov edx, dword [esp + 0x10]
push edx
push esi
push str.CFilePathManager::ConvertNetworkPath_src__s__dst__s_
push str.IPG_11220
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x18
mov esi, dword [esp + 0x240]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00617440
mov dword [esp + 0x14], 1
jmp 0x48bc34
mov esi, dword [esp + 0x240]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00617440
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], bl
call fcn.00617ec0
mov ecx, dword [esp + 0x230]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 8
Function at 0x48e270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x85e098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x7530
lea eax, [esi + 0x44]
lea ecx, [esi + 0x38]
push 0
push eax
mov dword [eax], ecx
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esi + 0x3c], esi
mov dword [esi + 0x48], 0x4139e0
call fcn.005794a0
lea edx, [esp + 4]
mov ecx, 0x9cf1a8
push edx
mov dword [esp + 0x50], 0
call fcn.0057a890
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x74], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x80], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x78], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x8c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x98], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.00579500
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x490a40
Capabilities:
Get session user name

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00662480
test eax, eax
je 0x490b06
push 0x41
push 0
push 1
push 0x94590c
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x490a9c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x490ba0
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.005fc40b
add esp, 4
cmp eax, ebx
jb 0x490ae8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.005fc492
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x490b76
lea edx, [esp + 0x14]
push edx
call fcn.005fc40b
add esp, 4
cmp eax, ebx
jb 0x490b58
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.005fc492
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x490b88
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x491c30
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x491de7
push esi
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x491de7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x491de7
test bl, 1
je 0x491c7d
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x491dbf
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.005fc492
lea ecx, [esp + 0x470]
push 0x93c728
push ecx
call fcn.005fc468
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x491d94
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x9428c4
push ecx
call ebp
test eax, eax
je 0x491d79
lea edx, [esp + 0x3c]
push 0x9428c0
push edx
call ebp
test eax, eax
je 0x491d79
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.005fc492
lea ecx, [esp + 0x268]
push 0x92edb8
push ecx
call fcn.005fc468
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.005fc468
lea ecx, [esp + 0x278]
push 0
push ecx
call fcn.00491c30
add esp, 0x20
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x491cf9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
jne 0x491de9
mov ecx, dword [esp + 0x674]
test ecx, ecx
je 0x491de9
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x491de9
cmp dword [esp + 0x674], ebp
je 0x491de9
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
Function at 0x491e00
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x491fd8
push esi
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x491fd8
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.0048f340
add esp, 0x1c
test eax, eax
je 0x491fd8
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x491fd8
test al, 1
je 0x491e6c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x491fb1
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.005fc492
lea edx, [esp + 0x474]
push 0x93c728
push edx
call fcn.005fc468
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x491f88
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x9428c4
push edx
call ebp
test eax, eax
je 0x491f68
lea eax, [esp + 0x248]
push 0x9428c0
push eax
call ebp
test eax, eax
je 0x491f68
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.005fc492
lea edx, [esp + 0x1c]
push 0x92edb8
push edx
call fcn.005fc468
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.005fc468
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00491e00
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x491ef1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x491fda
cmp dword [esp + 0x674], ebp
je 0x491fda
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x491fda
cmp dword [esp + 0x674], ebp
je 0x491fda
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret