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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x64]
mov eax, 0x40d70c
call fcn.0040bfc4
mov word [edi + 0x10], 0x14
push 0x104
call sub.cw3230.DLL___bnwa_qui
pop ecx
mov dword [ebp - 4], eax
inc dword [edi + 0x1c]
mov word [edi + 0x10], 8
mov esi, dword [ebp - 4]
push 0x104
push esi
push dword [ebx + 0xc]
call sub.KERNEL32.dll_GetModuleFileNameA
push dword [ebp - 4]
call sub.cw3230.DLL__strlen
pop ecx
mov ebx, eax
mov esi, dword [ebp - 4]
mov word [edi + 0x10], 0x20
push 0
push 0xf003f
push str.Proj0001.ApplicationDefaultIcon
push dword [0x40f5c4]
lea eax, [ebp - 0x18]
push eax
call fcn.0040a866
add esp, 0x14
inc dword [edi + 0x1c]
push ebx
push esi
push 1
push 0
push dword [eax]
call sub.ADVAPI32.dll_RegSetValueA
dec dword [edi + 0x1c]
push 2
lea edx, [ebp - 0x18]
push edx
call fcn.0040aa76
add esp, 8
push 0x40ddaa
push dword [ebp - 4]
call sub.cw3230.DLL__strcat
add esp, 8
push dword [ebp - 4]
call sub.cw3230.DLL__strlen
pop ecx
mov ebx, eax
mov esi, dword [ebp - 4]
mov word [edi + 0x10], 0x2c
push 0
push 0xf003f
push str.Proj0001.Document.1DefaultIcon
push dword [0x40f5c4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a866
add esp, 0x14
inc dword [edi + 0x1c]
push ebx
push esi
push 1
push 0
push dword [eax]
call sub.ADVAPI32.dll_RegSetValueA
dec dword [edi + 0x1c]
push 2
lea edx, [ebp - 0x2c]
push edx
call fcn.0040aa76
add esp, 8
push 0x40ddcd
push dword [ebp - 4]
call sub.cw3230.DLL__strcpy
add esp, 8
push dword [ebp - 4]
call sub.cw3230.DLL__strlen
pop ecx
mov ebx, eax
mov esi, dword [ebp - 4]
mov word [edi + 0x10], 0x38
push 0
push 0xf003f
push 0x40dde1
push dword [0x40f5c4]
lea eax, [ebp - 0x40]
push eax
call fcn.0040a866
add esp, 0x14
inc dword [edi + 0x1c]
push ebx
push esi
push 1
push 0
push dword [eax]
call sub.ADVAPI32.dll_RegSetValueA
dec dword [edi + 0x1c]
push 2
lea edx, [ebp - 0x40]
push edx
call fcn.0040aa76
add esp, 8
dec dword [edi + 0x1c]
push dword [ebp - 4]
call sub.cw3230.DLL___bdla_qpv
pop ecx
mov ecx, dword [edi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f35
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x40dd3c
mov eax, 0x40d790
call fcn.0040bfc4
mov word [ebp - 0x40], 0x14
push 0x104
call sub.cw3230.DLL___bnwa_qui
pop ecx
mov dword [ebp - 4], eax
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 8
mov esi, dword [ebp - 4]
push 0x104
push esi
push dword [ebx + 0xc]
call sub.KERNEL32.dll_GetModuleFileNameA
mov word [ebp - 0x40], 0x20
push 0
push 0xf003f
lea eax, [edi + 0xaa]
push eax
push dword [0x40f5c4]
lea edx, [ebp - 0x18]
push edx
call fcn.0040a866
add esp, 0x14
inc dword [ebp - 0x34]
lea ecx, [edi + 0xbf]
push ecx
push dword [eax]
call sub.ADVAPI32.dll_RegDeleteKeyA
dec dword [ebp - 0x34]
push 2
lea eax, [ebp - 0x18]
push eax
call fcn.0040aa76
add esp, 8
mov word [ebp - 0x40], 0x2c
push 0
push 0xf003f
lea edx, [edi + 0xcb]
push edx
push dword [0x40f5c4]
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040a866
add esp, 0x14
inc dword [ebp - 0x34]
lea edx, [edi + 0xdf]
push edx
push dword [eax]
call sub.ADVAPI32.dll_RegDeleteKeyA
dec dword [ebp - 0x34]
push 2
lea eax, [ebp - 0x2c]
push eax
call fcn.0040aa76
add esp, 8
lea ecx, [edi + 0xeb]
push ecx
push dword [0x40f5c4]
call sub.ADVAPI32.dll_RegDeleteKeyA
lea eax, [edi + 0x100]
push eax
push dword [0x40f5c4]
call sub.ADVAPI32.dll_RegDeleteKeyA
lea edx, [edi + 0x114]
push edx
push dword [0x40f5c4]
call sub.ADVAPI32.dll_RegDeleteKeyA
dec dword [ebp - 0x34]
push dword [ebp - 4]
call sub.cw3230.DLL___bdla_qpv
pop ecx
mov ecx, dword [ebp - 0x50]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
mov eax, 0x40e8d0
call fcn.0040bfc4
mov word [ebp - 0x18], 8
mov edx, dword [ebp + 8]
mov dword [edx], fcn.00407b94
mov word [ebp - 0x18], 0x20
push 0xff
call sub.cw3230.DLL___bnwa_qui
pop ecx
mov dword [ebp - 4], eax
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x14
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 8], eax
push 0xff
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp + 0xc]
push dword [ecx + 8]
call sub.KERNEL32.dll_GetModuleFileNameA
lea eax, [ebp - 0x130]
push eax
lea edx, [ebp - 0x130]
push edx
call sub.USER32.dll_OemToCharA
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x130]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x407b77
push ebx
call sub.cw3230.DLL___bnwa_qui
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
push ebx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x130]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407b77
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.cw3230.DLL__strcpy
add esp, 8
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp + 8]
add edx, 4
push edx
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ecx + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x407b4e
mov eax, dword [ebp + 8]
push dword [eax + 8]
call sub.cw3230.DLL___bdla_qpv
pop ecx
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 8], ecx
jmp 0x407b77
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov ecx, dword [edx]
shr ecx, 0x10
and cx, 0xffff
movzx eax, cx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
movzx edx, word [ecx]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [edx], eax
dec dword [ebp - 0xc]
push dword [ebp - 4]
call sub.cw3230.DLL___bdla_qpv
pop ecx
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x40f4dc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.0040bfc4
mov edx, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x34], edx
xor esi, esi
mov eax, dword [ebp + 0xc]
jmp 0x409ccc
add esi, esi
movsx edx, dl
xor esi, edx
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x409cc4
mov ebx, dword [ebx]
test ebx, ebx
je 0x409d22
cmp esi, dword [ebx]
jne 0x409d1b
mov edi, dword [ebx + 4]
mov edx, dword [ebp - 0x34]
mov al, byte [edi]
cmp al, byte [edx]
je 0x409ce9
inc edi
mov cx, word [0x40f57c]
push ecx
push dword [ebp - 0x34]
push edi
call fcn.0040a364
add esp, 0xc
test eax, eax
je 0x409d1b
cmp edi, dword [ebx + 4]
jne 0x409d0a
mov eax, ebx
jmp 0x409d0c
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x409e76
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x409cd8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx]
cmp ecx, 0x23
je 0x409d31
inc eax
push 0xc9
push eax
push dword [0x40f478]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
jne 0x409d83
push 0xc
call sub.cw3230.DLL___bnew_qui
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x409d72
mov word [ebp - 0x20], 0x14
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00409bf4
mov word [ebp - 0x20], 8
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x409e76
push edi
push dword [0x40f478]
call sub.KERNEL32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409da6
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x409e76
push ebx
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0x38], 4
mov dl, byte [eax]
test dl, dl
jne 0x409df7
push ebx
call sub.KERNEL32.dll_FreeResource
push 0xc
call sub.cw3230.DLL___bnew_qui
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x409de9
mov word [ebp - 0x20], 0x2c
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00409bf4
mov word [ebp - 0x20], 0x20
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x409e76
cmp dl, 0x20
jb 0x409dff
dec eax
jmp 0x409e00
inc eax
inc eax
mov dword [ebp - 0x3c], eax
mov dl, byte [eax]
inc eax
cmp dl, 0x20
jae 0x409e04
mov ecx, eax
sub ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x38]
jle 0x409e1e
mov ecx, eax
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
test dl, dl
jne 0x409e00
push dword [ebp - 0x38]
push 0x15
call fcn.00409c32
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x409e58
mov word [ebp - 0x20], 0x44
push ebx
push edi
push esi
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.00409c44
add esp, 0x14
mov word [ebp - 0x20], 0x38
mov eax, dword [ebp - 0xc]
jmp 0x409e5b
mov eax, dword [ebp - 0xc]
mov dl, 2
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx]
cmp ecx, 0x21
je 0x409e69
dec edx
mov byte [eax + 0x14], dl
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp word [edi + 0xe], 0xffff
jne 0x409ea0
mov eax, dword [edi + 0x15]
mov dword [ebp - 4], eax
mov word [edi + 0xe], si
jmp 0x409f16
movsx edx, byte [edi + 0x14]
cmp edx, 2
jne 0x409ebc
push esi
call fcn.0040a16e
pop ecx
test eax, eax
je 0x409ebc
mov eax, dword [edi + 4]
jmp 0x409ffd
mov ax, word [edi + 0xc]
cmp si, ax
jne 0x409ecd
lea eax, [edi + 0x15]
jmp 0x409ffd
cmp si, word [edi + 0xe]
jne 0x409ef9
cmp ax, 0xffff
je 0x409ee1
lea eax, [edi + 0x15]
jmp 0x409ffd
movsx edx, byte [edi + 0x14]
cmp edx, 2
jne 0x409ef2
mov eax, dword [edi + 4]
jmp 0x409ffd
xor eax, eax
jmp 0x409ffd
push dword [edi + 0x10]
push dword [0x40f478]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 4], eax
test eax, eax
jne 0x409f16
mov eax, dword [edi + 4]
jmp 0x409ffd
push dword [ebp - 4]
call sub.KERNEL32.dll_LockResource
xor edx, edx
mov dword [ebp - 8], edx
mov word [ebp - 0xa], 0xffff
jmp 0x409f93
cmp dl, 0x20
jbe 0x409f40
mov dx, word [0x40f57c]
mov word [ebp - 0xa], dx
mov dword [ebp - 8], eax
jmp 0x409f57
xor ecx, ecx
inc eax
mov cl, dl
xor edx, edx
add cx, 0xffff
mov dl, byte [eax]
shl ecx, 0xa
or cx, dx
inc eax
mov edx, ecx
cmp si, dx
jne 0x409f65
mov dword [ebp - 8], eax
mov word [ebp - 0xa], dx
jmp 0x409f99
mov ecx, esi
cmp dl, cl
jne 0x409f8e
mov cl, byte [ebp - 0xa]
mov ebx, esi
cmp cl, bl
jne 0x409f84
movzx ecx, dx
movzx ebx, si
and ebx, 0xff
cmp ecx, ebx
jne 0x409f8e
mov dword [ebp - 8], eax
mov word [ebp - 0xa], dx
jmp 0x409f8e
inc eax
cmp byte [eax], 0x20
jae 0x409f8d
mov dl, byte [eax]
test dl, dl
jne 0x409f2b
cmp dword [ebp - 8], 0
je 0x409fe3
jmp 0x409fa5
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
cmp byte [eax], 0x20
jb 0x409fa1
mov dx, word [edi + 0xc]
cmp dx, word [ebp - 0xa]
je 0x409fde
mov eax, dword [ebp - 8]
lea edx, [edi + 0x15]
jmp 0x409fc5
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp byte [eax], 0x20
jae 0x409fbf
mov byte [edx], 0
mov ax, word [ebp - 0xa]
mov word [edi + 0xc], ax
cmp ax, si
je 0x409fde
mov word [edi + 0xe], si
lea ebx, [edi + 0x15]
jmp 0x409ff3
movsx eax, byte [edi + 0x14]
cmp eax, 2
jne 0x409ff1
mov ebx, dword [edi + 4]
jmp 0x409ff3
xor ebx, ebx
push dword [ebp - 4]
call sub.KERNEL32.dll_FreeResource
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a918
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x40f75e
push ebx
push esi
mov ebx, dword [ebp + 0xc]
call fcn.0040bfc4
mov word [ebp - 0x14], 8
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx], ecx
push 0x105
call sub.cw3230.DLL___bnwa_qui
pop ecx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov eax, esi
mov edx, dword [ebx + 4]
push 0x105
push eax
push edx
mov ecx, dword [ebx]
push dword [ecx]
call sub.ADVAPI32.dll_RegEnumKeyA
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov edx, dword [ebx]
push dword [edx]
call sub.ADVAPI32.dll_RegOpenKeyExA
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x10], 1
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
push 0
push 0
mov edx, dword [ebp + 8]
add edx, 8
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.0040aaac
add esp, 0x2c
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40aaac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x100
mov dword [ebp - 8], ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 0x30], 0
je 0x40aafc
mov ebx, dword [ebp + 0x30]
jmp 0x40aaff
lea ebx, [ebp - 0x28]
push ebx
cmp dword [ebp + 0x2c], 0
je 0x40ab0b
mov ebx, dword [ebp + 0x2c]
jmp 0x40ab0e
lea ebx, [ebp - 0x20]
push ebx
cmp dword [ebp + 0x28], 0
je 0x40ab1a
mov ebx, dword [ebp + 0x28]
jmp 0x40ab1d
lea ebx, [ebp - 0x1c]
push ebx
cmp dword [ebp + 0x24], 0
je 0x40ab29
mov ebx, dword [ebp + 0x24]
jmp 0x40ab2c
lea ebx, [ebp - 0x18]
push ebx
cmp dword [ebp + 0x20], 0
je 0x40ab38
mov ebx, dword [ebp + 0x20]
jmp 0x40ab3b
lea ebx, [ebp - 0x14]
push ebx
cmp dword [ebp + 0x1c], 0
je 0x40ab47
mov ebx, dword [ebp + 0x1c]
jmp 0x40ab4a
lea ebx, [ebp - 0x10]
push ebx
test edi, edi
jne 0x40ab52
lea edi, [ebp - 0xc]
push edi
test esi, esi
jne 0x40ab5a
lea esi, [ebp - 8]
push esi
push 0
test ecx, ecx
jne 0x40ab64
lea ecx, [ebp - 4]
push ecx
test edx, edx
jne 0x40ab6f
lea edx, [ebp - 0x128]
push edx
push dword [eax]
call sub.ADVAPI32.dll_RegQueryInfoKeyA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab7e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov eax, 0x40f7e2
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x4c]
call fcn.0040bfc4
mov word [esi + 0x10], 8
push 1
push 0xf003f
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push dword [edx]
push ecx
call fcn.0040a866
add esp, 0x14
inc dword [esi + 0x1c]
mov word [esi + 0x10], 0x14
lea eax, [ebp - 0x14]
mov dword [edi], eax
xor edx, edx
mov dword [edi + 4], edx
jmp 0x40ac61
mov word [esi + 0x10], 0x20
push 0xf003f
push edi
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040a918
add esp, 0xc
inc dword [esi + 0x1c]
mov word [esi + 0x10], 0x2c
cmp dword [ebp - 0x28], 0
jne 0x40ac0a
dec dword [esi + 0x1c]
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.0040aa76
add esp, 8
jmp 0x40ac80
push dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
call fcn.0040ab7e
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x40ac50
mov eax, ebx
lea edx, [ebp - 0x28]
push eax
dec dword [esi + 0x1c]
push 2
push edx
call fcn.0040aa76
add esp, 8
dec dword [esi + 0x1c]
push 2
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040aa76
add esp, 8
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x40aca8
dec dword [esi + 0x1c]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040aa76
add esp, 8
mov eax, dword [edi + 4]
test eax, eax
jl 0x40ac6f
mov edx, dword [edi]
cmp eax, dword [edx + 8]
jl 0x40ac73
xor ecx, ecx
jmp 0x40ac78
mov ecx, 1
test cl, cl
jne 0x40abd0
dec dword [esi + 0x1c]
push 2
lea eax, [ebp - 0x14]
push eax
call fcn.0040aa76
add esp, 8
mov ebx, dword [ebp + 0xc]
push ebx
mov edx, dword [ebp + 8]
push dword [edx]
call sub.ADVAPI32.dll_RegDeleteKeyA
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012c0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 0x860
push 3
push 1
push 0x80
mov eax, 0x403060
push edi
mov dword [0x403064], eax
mov dword [0x403060], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0xc0000000
lea edx, [ebp - 4]
push edx
mov dword [ebp - 8], 0x7c
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], 0x240
mov dword [ebp - 0x40], 0x403008
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x401485
push 5
xor eax, eax
push 0x18
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x28]
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, dword [ebp - 0x58]
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x4d794c73
inc esi
push esi
push edi
call ebx
push edi
push edi
movzx ecx, si
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
push edi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edi
push eax
mov word [ebp - 0x16], si
mov word [ebp - 0x18], si
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
mov byte [ecx + edx - 1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx edx, word [ebp - 0x1e]
push 0x4d794c73
push edx
push 1
call ebx
mov dword [ebp - 0xc], eax
mov ax, word [ebp - 0x1e]
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 1
lea edx, [ebp - 0x10]
push edx
push 0x403010
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x40146e
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push ecx
mov byte [0x403045], 1
call fcn.00401676
mov edi, eax
add esp, 8
test edi, edi
je 0x40146c
push 0x4d794574
push 0x10
push 1
call ebx
push edi
lea edx, [ebp - 0x30]
push edx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx edi, word [ebp - 0x30]
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [esi + 0xc], eax
mov word [esi + 0xa], di
mov word [esi + 8], di
mov edx, dword [ebp - 0x2c]
push edi
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_memmove]
mov eax, dword [0x403060]
mov dword [esi], eax
mov dword [esi + 4], 0x403060
mov dword [eax + 4], esi
lea eax, [ebp - 8]
push eax
push 0
mov dword [0x403060], esi
call fcn.00401676
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x401405
xor edi, edi
mov ecx, dword [ebp - 0xc]
push 0x4d794c73
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 0x860
push 3
push 1
push 0x80
mov eax, 0x403050
push edi
mov dword [0x403054], eax
mov dword [0x403050], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0xc0000000
lea edx, [ebp - 4]
push edx
mov dword [ebp - 8], 0x7c
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], 0x240
mov dword [ebp - 0x40], 0x403000
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x401665
push 5
xor eax, eax
push 0x18
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x28]
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, dword [ebp - 0x58]
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x4d795474
inc esi
push esi
push edi
call ebx
push edi
push edi
movzx ecx, si
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
push edi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edi
push eax
mov word [ebp - 0x16], si
mov word [ebp - 0x18], si
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
mov byte [ecx + edx - 1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx edx, word [ebp - 0x1e]
push 0x4d79426b
push edx
push 1
call ebx
mov dword [ebp - 0xc], eax
mov ax, word [ebp - 0x1e]
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 1
lea edx, [ebp - 0x10]
push edx
push 0x403010
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x40164e
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push ecx
mov byte [0x403044], 1
call fcn.00401676
mov edi, eax
add esp, 8
test edi, edi
je 0x40164c
push 0x4d794c6b
push 0x10
push 1
call ebx
push edi
lea edx, [ebp - 0x30]
push edx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx edi, word [ebp - 0x30]
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [esi + 0xc], eax
mov word [esi + 0xa], di
mov word [esi + 8], di
mov edx, dword [ebp - 0x2c]
push edi
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_memmove]
mov eax, dword [0x403050]
mov dword [esi], eax
mov dword [esi + 4], 0x403050
mov dword [eax + 4], esi
lea eax, [ebp - 8]
push eax
push 0
mov dword [0x403050], esi
call fcn.00401676
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4015e5
xor edi, edi
mov ecx, dword [ebp - 0xc]
push 0x4d79426b
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret