joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461a20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x461af3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00431b20
add esp, 8
test eax, eax
je 0x461a6c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x461aec
mov esi, dword [esp + 0x118]
test esi, esi
je 0x461aec
lea edx, [esp + 0xc]
test edx, edx
je 0x461aec
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x461ab5
push eax
lea eax, [esp + 0x10]
push eax
push 0x5bf328
push esi
push ebx
call fcn.004320c8
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x461afb
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x461ae8
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x461afb
mov esi, 0x57
jmp 0x461afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x5e277c], esi
je 0x461b0c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret

Function at 0x461c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x461ce0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00431310
add esp, 8
test eax, eax
je 0x461c6f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x461cd9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x461cd9
lea edx, [esp + 0xc]
test edx, edx
je 0x461cd9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x461cb6
push eax
lea eax, [esp + 0x10]
push eax
push 0x5bf338
push ebx
push edi
call fcn.00431468
add esp, 0x14
xor esi, esi
jmp 0x461ce8
lea ecx, [esp + 0xc]
push ecx
call fcn.0043139f
add esp, 4
cmp ebx, eax
jbe 0x461ce8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.0043137a
add esp, 8
xor esi, esi
jmp 0x461ce8
mov esi, 0x57
jmp 0x461ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x5e277c], esi
je 0x461cf9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x461d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x573145
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5b9f20]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x22c], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x461e39
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.00431b20
add esp, 8
cmp eax, ebx
je 0x461da3
mov byte [eax], bl
lea eax, [esp + 0x118]
test eax, eax
je 0x461e32
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x461e32
mov eax, dword [esp + 0x230]
mov edx, 0x7a
cmp eax, ebx
je 0x461df0
lea edx, [esp + 0x14]
push eax
push edx
push 0x5bf328
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.004320c8
add esp, 0x14
xor edx, edx
mov eax, edx
jmp 0x461e3f
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x461e2e
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x461e3f
mov eax, 0x57
jmp 0x461e3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x5e277c], eax
je 0x461e51
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x461e62
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x10]
call fcn.00556380
mov esi, dword [esp + 0x22c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00555f6c
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], bl
call fcn.005561f7
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x461f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x46201d
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x462016
mov esi, dword [esp + 0x118]
test esi, esi
je 0x462016
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x462016
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x461fdf
lea edx, [esp + 0xc]
push eax
push edx
push 0x5bf328
push esi
push ebx
call fcn.004320c8
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x462025
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x462012
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x462025
mov esi, 0x57
jmp 0x462025
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x5e277c], esi
je 0x462036
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret

Function at 0x462140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4621e4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x4621dd
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x4621dd
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x4621dd
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x4621ba
lea edx, [esp + 0xc]
push eax
push edx
push 0x5bf338
push ebx
push edi
call fcn.00431468
add esp, 0x14
xor esi, esi
jmp 0x4621ec
lea eax, [esp + 0xc]
push eax
call fcn.0043139f
add esp, 4
cmp ebx, eax
jbe 0x4621ec
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.0043137a
add esp, 8
xor esi, esi
jmp 0x4621ec
mov esi, 0x57
jmp 0x4621ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x5e277c], esi
je 0x4621fd
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x4667f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x5bf7b8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x46693f
cmp eax, 0x104
jae 0x46693f
push ebp
lea ecx, [esp + 8]
push esi
push ecx
call fcn.00460c70
add esp, 4
test eax, eax
je 0x4668b2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x110]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00460860
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jge 0x4668b2
lea ecx, [esp + 0x110]
push esi
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00431a20
add esp, 0xc
mov byte [esp + esi + 0xc], 0
mov ebp, dword [esp + 0x218]
test ebp, ebp
je 0x466930
mov edx, dword [esp + 0x21c]
test edx, edx
je 0x466930
lea eax, [esp + 0xc]
test eax, eax
je 0x466930
mov eax, dword [esp + 0x220]
test eax, eax
je 0x4668ff
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x5bf328
push edx
push ebp
call fcn.004320c8
add esp, 0x14
mov eax, 1
pop esi
pop ebp
pop edi
add esp, 0x208
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jbe 0x466930
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x208
ret
xor eax, eax
pop edi
add esp, 0x208
ret

Function at 0x468000
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 0x468021
push 0x57
mov dword [0x5e277c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
jne 0x468052
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x468052
test al, 0x10
jne 0x468052
test al, 1
je 0x46801c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4680c0
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 0x4680e1
push 0x57
mov dword [0x5e277c], 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 0x468112
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x468112
test al, 0x10
jne 0x468112
test al, 1
je 0x4680dc
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 0x469ba0
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x244
test edx, edx
jne 0x469bc9
push 0x57
mov dword [0x5e277c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x244
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
push 0x5bf82c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 0x5bf328
lea eax, [esp + 0x158]
push 0x103
push eax
mov dword [0x5e277c], 0
xor ebp, ebp
call fcn.004320c8
mov ecx, 0x4f
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 + 0x14c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x469c98
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, 1
cmp byte [esp + 0x38], 0x2e
jne 0x469c83
mov al, byte [esp + 0x39]
test al, al
je 0x469c64
cmp al, 0x2e
jne 0x469c83
mov al, byte [esp + 0x3a]
test al, al
jne 0x469c83
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x469c49
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x244
ret
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x244
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x5e277c], eax
je 0x469cae
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x244
ret
Function at 0x469ff0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x46a00c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
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.00431a20
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00431b60
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 0x46a090
cmp byte [esp + 0x10], 0x5c
jne 0x46a090
cmp byte [esp + 0x11], 0x5c
jne 0x46a090
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.00431b60
add esp, 8
test eax, eax
je 0x46a10e
inc eax
push 0x5c
push eax
call fcn.00431b60
add esp, 8
mov esi, eax
test esi, esi
je 0x46a10e
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 0x46a0d2
test bl, 1
je 0x46a0c1
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 0x46a144
cmp ebx, 0xffffffff
je 0x46a0db
test edi, edi
jne 0x46a0ea
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x46a144
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00431b60
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a094
test ebp, ebp
je 0x46a144
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46a139
test al, 0x10
jne 0x46a144
test al, 1
je 0x46a12c
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 0x46a144
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, 0x104
ret
Function at 0x46a160
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 0x46a17c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.004313bc
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00431ca0
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.0043139f
add esp, 0x18
cmp eax, 2
jbe 0x46a201
cmp word [esp + 0x10], di
jne 0x46a201
cmp word [esp + 0x12], di
jne 0x46a201
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00431ca0
add esp, 8
test eax, eax
je 0x46a289
add eax, 2
push edi
push eax
call fcn.00431ca0
add esp, 8
mov esi, eax
test esi, esi
je 0x46a289
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 0x46a249
test bl, 1
je 0x46a238
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 0x46a2bf
cmp ebx, 0xffffffff
je 0x46a252
test edi, edi
jne 0x46a261
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x46a2bf
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.00431ca0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a209
test ebp, ebp
je 0x46a2bf
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46a2b4
test al, 0x10
jne 0x46a2bf
test al, 1
je 0x46a2a7
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 0x46a2bf
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, 0x208
ret
Function at 0x46a2d0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
test ebx, ebx
push edi
jne 0x46a304
push 0x57
mov dword [0x5e277c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46a32b
test al, 0x10
jne 0x46a493
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x46a493
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
push 0x103
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.00431a20
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00431b60
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 0x46a3ba
cmp byte [esp + 0x10], 0x5c
jne 0x46a3ba
cmp byte [esp + 0x11], 0x5c
jne 0x46a3ba
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.00431b60
add esp, 8
test eax, eax
je 0x46a438
inc eax
push 0x5c
push eax
call fcn.00431b60
add esp, 8
mov esi, eax
test esi, esi
je 0x46a438
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 0x46a3fc
test bl, 1
je 0x46a3eb
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 0x46a470
cmp ebx, 0xffffffff
je 0x46a405
test edi, edi
jne 0x46a414
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x46a470
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00431b60
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a3be
test ebp, ebp
je 0x46a470
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46a461
test al, 0x10
jne 0x46a46c
test al, 1
je 0x46a456
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46a470
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
jne 0x46a493
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x5e277c], eax
je 0x46a486
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x46a4a6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x46a9b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x154
push ebx
mov ebx, dword [esp + 0x15c]
push ebp
mov ebp, dword [esp + 0x164]
push esi
mov esi, dword [esp + 0x16c]
mov eax, 0x1f3
push esi
sub eax, ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x46a9f9
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret
push edi
mov dword [esp + 0x10], 1
mov eax, dword [esi]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x46ab61
mov al, byte [esi + 0x2c]
lea edx, [esi + 0x2c]
cmp al, 0x2e
jne 0x46aa34
mov al, byte [esi + 0x2d]
test al, al
je 0x46ab89
cmp al, 0x2e
jne 0x46aa34
mov al, byte [esi + 0x2e]
test al, al
je 0x46ab89
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
mov dword [esp + 0x1c], ecx
inc ecx
cmp eax, ecx
jb 0x46ab89
add ebp, ebx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 1], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x174]
and ecx, 3
test dl, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x46aaac
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0
push ebx
call dword [esp + 0x188]
mov edx, dword [esp + 0x174]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46ab18
test dl, 0x40
jne 0x46ab18
mov esi, dword [esp + 0x1c]
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0
mov byte [esi + ebp - 1], 0x5c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
push eax
mov eax, dword [esp + 0x170]
push ecx
push edx
lea edx, [esp + 0x30]
lea ecx, [esi + eax + 1]
push edx
push ecx
mov byte [esi + ebp], 0x2a
push ebx
mov byte [esi + ebp + 1], 0
call fcn.0046a9b0
mov edx, dword [esp + 0x18c]
add esp, 0x18
mov dword [esp + 0x10], eax
jmp 0x46ab1c
mov esi, dword [esp + 0x1c]
test dl, 0x20
je 0x46ab49
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46ab49
mov edx, dword [esp + 0x17c]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push ebx
mov byte [esi + ebp - 1], 0
call dword [esp + 0x188]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x170]
mov byte [ebp - 1], 0x2a
mov byte [ebp], 0
mov ebp, dword [esp + 0x16c]
jmp 0x46ab89
mov ecx, dword [esp + 0x17c]
lea edx, [esi + 0x2c]
push ecx
push eax
push edx
push ebx
mov byte [ebx + ebp - 2], 0
call dword [esp + 0x188]
mov byte [ebx + ebp - 2], 0x5c
mov dword [esp + 0x10], eax
mov byte [ebx + ebp - 1], 0x2a
mov edi, dword [esp + 0x10]
test edi, edi
je 0x46aba5
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46aa02
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret
Function at 0x46bcb0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x46bccf
push 0x57
mov dword [0x5e277c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x46bb50
push 0x20
push esi
call fcn.0046a8a0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test esi, esi
jne 0x46bd15
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x5e277c], eax
je 0x46bd15
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret