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

Disassembly:
push 0xffffffffffffffff
push 0x5def00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea ebx, [esi + 0x3c]
push 0x281
push str.D:Backup_
push edi
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 2
call fcn.005708b0
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0xc]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
jne 0x48cc9f
cmp eax, ebp
mov dword [esi + 4], 0xf002
mov dword [esi + 8], 0x284
mov dword [esp + 0x34], 0xffffffff
je 0x48ce28
jmp 0x48ce20
cmp dword [esp + 0x3c], ebp
je 0x48ce06
cmp dword [esp + 0x40], ebp
je 0x48ce06
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebp
jle 0x48ccf9
mov edi, dword [esi + 0x2c]
mov eax, dword [esp + 0x3c]
add edi, ebp
push eax
mov ecx, dword [edi]
push ecx
call fcn.0045401e
add esp, 8
test eax, eax
jne 0x48ccee
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.0045401e
add esp, 8
test eax, eax
je 0x48cdd4
mov eax, dword [esi + 0x30]
inc ebx
add ebp, 0xc
cmp ebx, eax
jl 0x48ccbc
mov eax, dword [0x5f5614]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.0047ecd0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x38], 3
call fcn.0046d230
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046d230
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push edx
call fcn.0047ee30
mov edi, dword [esi + 0x30]
add esi, 0x28
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.0048db10
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [esp + 0x10]
lea esi, [edx + ecx*4]
push eax
mov ecx, esi
call fcn.0046d100
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.0046d100
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.0047ee30
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0047ee00
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.0046cf50
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0046cf50
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x48cdcd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00570b30
mov eax, 1
jmp 0x48ce2a
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [edi + 8]
call fcn.0047ee30
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x48cdff
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
call fcn.00570b30
mov eax, 2
jmp 0x48ce2a
cmp eax, ebp
mov dword [esi + 4], 0xf000
mov dword [esi + 8], 0x28a
mov dword [esp + 0x34], 0xffffffff
je 0x48ce28
push edi
mov ecx, ebx
call fcn.00570b30
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x48deb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df08d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov ebp, ecx
push 0xc0
call fcn.005bc14c
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x48dff0
mov eax, dword [0x5f5614]
push edi
lea edi, [esi + 4]
mov dword [esp + 0x14], edi
mov dword [edi + 0x28], eax
mov ecx, dword [0x5f5614]
mov dword [edi + 0x2c], ecx
mov edx, dword [0x5f5614]
mov dword [edi + 0x30], edx
mov eax, dword [0x5f5614]
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x38]
mov byte [esp + 0x20], 4
call fcn.00473c60
lea edx, [edi + 8]
xor ecx, ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov eax, dword [0x5f5614]
mov dword [esi + 0x58], eax
mov ecx, dword [0x5f5614]
mov dword [esi + 0x7c], ecx
mov edx, dword [0x5f5614]
mov dword [esi + 0x84], edx
mov eax, dword [0x5f5614]
mov dword [esi + 0x88], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
lea ecx, [esi + 0x98]
mov byte [esp + 0x20], 6
call fcn.00473c60
mov dword [esi + 0xa8], 0x5eec00
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi], ebx
mov dword [ebp], esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48faeb
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5df3bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5f5614]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x28], eax
mov ecx, dword [0x5f5614]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5f5614]
mov dword [esi + 0x30], edx
mov eax, dword [0x5f5614]
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call fcn.00473c60
lea edx, [esi + 8]
xor ecx, ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [edx], ecx
mov eax, esi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x497ff0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x618
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x49812a
cmp eax, 0x104
jae 0x49812a
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00492650
add esp, 4
test eax, eax
je 0x4980b1
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x208
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00492310
lea ecx, [esp + 0x21c]
push ecx
call fcn.00453b6c
mov esi, eax
add esp, 0x10
cmp esi, 0x208
jge 0x4980b1
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00453b89
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x624]
test edi, edi
je 0x49811c
mov esi, dword [esp + 0x628]
test esi, esi
je 0x49811c
lea ecx, [esp + 8]
test ecx, ecx
je 0x49811c
mov eax, dword [esp + 0x62c]
test eax, eax
je 0x4980fd
lea edx, [esp + 8]
push eax
push edx
push 0x634a00
push esi
push edi
call fcn.004548c8
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x618
ret
lea eax, [esp + 8]
push eax
call fcn.00453b6c
add esp, 4
cmp esi, eax
jbe 0x49811c
lea ecx, [esp + 8]
push ecx
push edi
call fcn.00453b47
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x618
ret
xor eax, eax
pop edi
add esp, 0x618
ret

Function at 0x4994c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x4994e1
push 0x57
mov dword [0x66ac70], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x499512
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x499512
test al, 0x10
jne 0x499512
test al, 1
je 0x4994dc
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x49b360
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x660
test edx, edx
jne 0x49b389
push 0x57
mov dword [0x66ac70], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x660
ret
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x25e]
mov word [esp + 0x25c], bp
rep stosd dword es:[edi], eax
push 0x634608
push edx
stosw word es:[edi], ax
push 0x634a00
lea eax, [esp + 0x268]
push 0x207
push eax
mov dword [0x66ac70], 0
call fcn.004548c8
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49b45c
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, 1
cmp word [esp + 0x38], 0x2e
jne 0x49b447
mov ax, word [esp + 0x3a]
test ax, ax
je 0x49b428
cmp ax, 0x2e
jne 0x49b447
cmp word [esp + 0x3c], 0
jne 0x49b447
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x49b408
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x660
ret
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x660
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x66ac70], eax
je 0x49b472
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x660
ret
Function at 0x49b690
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x49b6ac
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00454100
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00454240
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x49b730
cmp byte [esp + 0x10], 0x5c
jne 0x49b730
cmp byte [esp + 0x11], 0x5c
jne 0x49b730
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.00454240
add esp, 8
test eax, eax
je 0x49b7ae
inc eax
push 0x5c
push eax
call fcn.00454240
add esp, 8
mov esi, eax
test esi, esi
je 0x49b7ae
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x49b772
test bl, 1
je 0x49b761
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x49b7e4
cmp ebx, 0xffffffff
je 0x49b77b
test edi, edi
jne 0x49b78a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x49b7e4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00454240
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b734
test ebp, ebp
je 0x49b7e4
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49b7d9
test al, 0x10
jne 0x49b7e4
test al, 1
je 0x49b7cc
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x49b7e4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x49b800
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x49b81c
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00453b89
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004542fc
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00453b6c
add esp, 0x18
cmp eax, 2
jbe 0x49b8a1
cmp word [esp + 0x10], di
jne 0x49b8a1
cmp word [esp + 0x12], di
jne 0x49b8a1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004542fc
add esp, 8
test eax, eax
je 0x49b929
add eax, 2
push edi
push eax
call fcn.004542fc
add esp, 8
mov esi, eax
test esi, esi
je 0x49b929
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x49b8e9
test bl, 1
je 0x49b8d8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x49b95f
cmp ebx, 0xffffffff
je 0x49b8f2
test edi, edi
jne 0x49b901
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x49b95f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.004542fc
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b8a9
test ebp, ebp
je 0x49b95f
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b954
test al, 0x10
jne 0x49b95f
test al, 1
je 0x49b947
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x49b95f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x49b970
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
push ebp
push esi
test ebx, ebx
push edi
jne 0x49b9a4
push 0x57
mov dword [0x66ac70], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b9cb
test al, 0x10
jne 0x49bb3d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49bb3d
mov ecx, 0x103
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00453b89
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004542fc
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00453b6c
add esp, 0x18
cmp eax, 2
jbe 0x49ba5a
cmp word [esp + 0x10], di
jne 0x49ba5a
cmp word [esp + 0x12], di
jne 0x49ba5a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004542fc
add esp, 8
test eax, eax
je 0x49bae2
add eax, 2
push edi
push eax
call fcn.004542fc
add esp, 8
mov esi, eax
test esi, esi
je 0x49bae2
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x49baa2
test bl, 1
je 0x49ba91
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x49bb1a
cmp ebx, 0xffffffff
je 0x49baab
test edi, edi
jne 0x49baba
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x49bb1a
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.004542fc
mov esi, eax
add esp, 8
test esi, esi
jne 0x49ba62
test ebp, ebp
je 0x49bb1a
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49bb0b
test al, 0x10
jne 0x49bb16
test al, 1
je 0x49bb00
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x49bb1a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x49bb3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x66ac70], eax
je 0x49bb30
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x428]
test eax, eax
je 0x49bb50
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x49c360
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x49c3a9
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x49c519
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x49c3e5
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x49c4e9
cmp ax, 0x2e
jne 0x49c3e5
cmp word [ebx + 0x30], 0
je 0x49c4e9
push ecx
call fcn.00453b6c
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x49c4e2
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.00453b1d
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x49c43e
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x49c4a5
test byte [esp + 0x27c], 0x40
jne 0x49c4a5
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.0049c360
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x49c4d5
test edi, edi
je 0x49c4d5
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x49c501
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49c3af
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x49c4e9
Function at 0x49d620
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x49d63f
push 0x57
mov dword [0x66ac70], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x49d570
push 0x20
push esi
call fcn.0049c260
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x49d685
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x66ac70], eax
je 0x49d685
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret

Function at 0x49d970
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 0x49dafc
push esi
call fcn.00453b6c
add esp, 4
test eax, eax
je 0x49dafc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49dafc
test bl, 1
je 0x49d9bd
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x49dae8
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.00453b47
lea ecx, [esp + 0x470]
push 0x63470c
push ecx
call fcn.00453b1d
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 0x49dad2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x634758
push ecx
call ebp
test eax, eax
je 0x49dab7
lea edx, [esp + 0x3c]
push 0x634754
push edx
call ebp
test eax, eax
je 0x49dab7
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.00453b47
lea ecx, [esp + 0x268]
push 0x63461c
push ecx
call fcn.00453b1d
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.00453b1d
lea ecx, [esp + 0x278]
push ecx
call fcn.0049d970
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49da39
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret