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

Disassembly:
push 0xffffffffffffffff
push 0x5c075d
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.0059e258
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x487080
mov eax, dword [0x5d44ec]
push edi
lea edi, [esi + 4]
mov dword [esp + 0x14], edi
mov dword [edi + 0x28], eax
mov ecx, dword [0x5d44ec]
mov dword [edi + 0x2c], ecx
mov edx, dword [0x5d44ec]
mov dword [edi + 0x30], edx
mov eax, dword [0x5d44ec]
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x38]
mov byte [esp + 0x20], 4
call fcn.0046fb00
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 [0x5d44ec]
mov dword [esi + 0x58], eax
mov ecx, dword [0x5d44ec]
mov dword [esi + 0x7c], ecx
mov edx, dword [0x5d44ec]
mov dword [esi + 0x84], edx
mov eax, dword [0x5d44ec]
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.0046fb00
mov dword [esi + 0xa8], 0x5cdc00
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 0x488b7b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c0a8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5d44ec]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x28], eax
mov ecx, dword [0x5d44ec]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5d44ec]
mov dword [esi + 0x30], edx
mov eax, dword [0x5d44ec]
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call fcn.0046fb00
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 0x491080
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
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 0x4911ba
cmp eax, 0x104
jae 0x4911ba
lea ecx, [esp + 4]
push esi
push ecx
call fcn.0048b6e0
add esp, 4
test eax, eax
je 0x491141
mov ecx, 0x81
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 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0048b3a0
lea ecx, [esp + 0x21c]
push ecx
call fcn.0044fa0c
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x491141
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0044fa29
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x4911ac
mov esi, dword [esp + 0x420]
test esi, esi
je 0x4911ac
lea ecx, [esp + 8]
test ecx, ecx
je 0x4911ac
mov eax, dword [esp + 0x424]
test eax, eax
je 0x49118d
lea edx, [esp + 8]
push eax
push edx
push 0x610c70
push esi
push edi
call fcn.00450f61
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.0044fa0c
add esp, 4
cmp esi, eax
jbe 0x4911ac
lea ecx, [esp + 8]
push ecx
push edi
call fcn.0044f9e7
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret

Function at 0x492730
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 0x492751
push 0x57
mov dword [0x645938], 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 0x492782
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x492782
test al, 0x10
jne 0x492782
test al, 1
je 0x49274c
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 0x4943f0
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x458
test edx, edx
jne 0x494419
push 0x57
mov dword [0x645938], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x458
ret
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x25e]
mov word [esp + 0x25c], bp
rep stosd dword es:[edi], eax
push 0x610608
push edx
stosw word es:[edi], ax
push 0x610c70
lea eax, [esp + 0x268]
push 0x103
push eax
mov dword [0x645938], 0
call fcn.00450f61
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 0x4944ec
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, 1
cmp word [esp + 0x38], 0x2e
jne 0x4944d7
mov ax, word [esp + 0x3a]
test ax, ax
je 0x4944b8
cmp ax, 0x2e
jne 0x4944d7
cmp word [esp + 0x3c], 0
jne 0x4944d7
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x494498
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x645938], eax
je 0x494502
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
Function at 0x494720
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 0x49473c
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.0044ffa0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.004500e0
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 0x4947c0
cmp byte [esp + 0x10], 0x5c
jne 0x4947c0
cmp byte [esp + 0x11], 0x5c
jne 0x4947c0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.004500e0
add esp, 8
test eax, eax
je 0x49483e
inc eax
push 0x5c
push eax
call fcn.004500e0
add esp, 8
mov esi, eax
test esi, esi
je 0x49483e
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 0x494802
test bl, 1
je 0x4947f1
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 0x494874
cmp ebx, 0xffffffff
je 0x49480b
test edi, edi
jne 0x49481a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x494874
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.004500e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4947c4
test ebp, ebp
je 0x494874
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x494869
test al, 0x10
jne 0x494874
test al, 1
je 0x49485c
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 0x494874
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 0x494890
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 0x4948ac
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.0044fa29
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0045019c
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.0044fa0c
add esp, 0x18
cmp eax, 2
jbe 0x494931
cmp word [esp + 0x10], di
jne 0x494931
cmp word [esp + 0x12], di
jne 0x494931
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0045019c
add esp, 8
test eax, eax
je 0x4949b9
add eax, 2
push edi
push eax
call fcn.0045019c
add esp, 8
mov esi, eax
test esi, esi
je 0x4949b9
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 0x494979
test bl, 1
je 0x494968
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 0x4949ef
cmp ebx, 0xffffffff
je 0x494982
test edi, edi
jne 0x494991
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x4949ef
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.0045019c
mov esi, eax
add esp, 8
test esi, esi
jne 0x494939
test ebp, ebp
je 0x4949ef
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4949e4
test al, 0x10
jne 0x4949ef
test al, 1
je 0x4949d7
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 0x4949ef
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 0x494a00
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]
push ebp
push esi
test ebx, ebx
push edi
jne 0x494a34
push 0x57
mov dword [0x645938], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x494a5b
test al, 0x10
jne 0x494bcd
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 0x494bcd
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
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.0044fa29
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0045019c
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.0044fa0c
add esp, 0x18
cmp eax, 2
jbe 0x494aea
cmp word [esp + 0x10], di
jne 0x494aea
cmp word [esp + 0x12], di
jne 0x494aea
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0045019c
add esp, 8
test eax, eax
je 0x494b72
add eax, 2
push edi
push eax
call fcn.0045019c
add esp, 8
mov esi, eax
test esi, esi
je 0x494b72
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 0x494b32
test bl, 1
je 0x494b21
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 0x494baa
cmp ebx, 0xffffffff
je 0x494b3b
test edi, edi
jne 0x494b4a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x494baa
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.0045019c
mov esi, eax
add esp, 8
test esi, esi
jne 0x494af2
test ebp, ebp
je 0x494baa
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x494b9b
test al, 0x10
jne 0x494ba6
test al, 1
je 0x494b90
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 0x494baa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x494bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x645938], eax
je 0x494bc0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x494be0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x4953f0
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 0x495439
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 0x4955a9
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x495475
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x495579
cmp ax, 0x2e
jne 0x495475
cmp word [ebx + 0x30], 0
je 0x495579
push ecx
call fcn.0044fa0c
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x495572
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.0044f9bd
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x4954ce
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 0x495535
test byte [esp + 0x27c], 0x40
jne 0x495535
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.004953f0
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x495565
test edi, edi
je 0x495565
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 0x495591
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49543f
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 0x495579
Function at 0x496e50
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x496e6f
push 0x57
mov dword [0x645938], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x496da0
push 0x20
push esi
call fcn.004952f0
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 0x496eb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x645938], eax
je 0x496eb5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret
Function at 0x4a25a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x4a25be
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.0059e258
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x4a25fd
xor ebx, ebx
jmp 0x4a261a
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a2616
or ebx, 0xffffffff
jmp 0x4a261a
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a266d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2652
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x4a2669
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0059e281
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x4a2692
test ebx, ebx
je 0x4a2766
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4a2766
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.0059e258
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4a26c6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x4a2705
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x4a2705
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a26ff
or esi, 0xffffffff
jmp 0x4a2707
mov esi, dword [esp + 0x28]
jmp 0x4a2707
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x4a272f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x4a26c2
push eax
call fcn.0059e281
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.0059e281
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a2780
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x4a27a3
or ebx, eax
jmp 0x4a27a5
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x4a27bf
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.004a2ac0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x4a27e7
mov dword [esp + 0x20], eax
push 0x8000
call fcn.0059e258
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a2831
or eax, 0xffffffff
jmp 0x4a286d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x4a286d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x4a2869
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2878
cmp dword [esp + 0x10], edi
jne 0x4a2878
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x4a288b
jmp 0x4a2801
push ebx
call fcn.0059e281
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.0059e281
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret