joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496767
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x608
lea ebp, [esp - 4]
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x608], eax
push 0x2c
mov eax, 0x502d4e
call fcn.004e3d00
xor eax, eax
cmp dword [esi + 0x5c], eax
mov dword [ebp - 0x14], eax
jle 0x49690b
mov dword [ebp - 0x10], eax
mov ebx, 0x200
xor eax, eax
lea edi, [ebp + 0x600]
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp + 0x400]
push 0
push eax
call fcn.004e38a0
push ebx
lea eax, [ebp + 0x200]
push 0
push eax
call fcn.004e38a0
push ebx
lea eax, [ebp]
push 0
push eax
call fcn.004e38a0
mov eax, dword [esi + 0x58]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + eax + 0x18]
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x200]
push ecx
lea ecx, [ebp + 0x400]
push ecx
lea ecx, [ebp + 0x600]
push ecx
push eax
call fcn.004e0033
add esp, 0x38
push str..bac
lea ecx, [ebp - 0x1c]
call fcn.0040253b
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x200]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040253b
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0040253b
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x600]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040253b
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402130
push dword [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402130
push dword [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402130
add esp, 0x24
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x58]
lea ecx, [edi + ecx + 0x1c]
push eax
call fcn.004025da
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [esi + 0x58]
push dword [edi + eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add edi, 0x28
cmp eax, dword [esi + 0x5c]
mov dword [ebp - 0x10], edi
jl 0x4967a1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x608]
xor ecx, ebp
call fcn.004de422
add ebp, 0x60c
leave
ret
Function at 0x496adb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5055f1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x5ff740]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
cmp dword [esi + 0x5c], edi
mov dword [esp + 0x18], edi
jle 0x496c2c
mov eax, dword [esi + 0x58]
lea eax, [edi + eax + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.00402305
and dword [esp + 0x28], 0
lea ebx, [esp + 0x14]
call fcn.00496de0
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax + 0x14]
mov eax, ebx
push eax
call fcn.004025da
mov eax, dword [esi + 0x58]
mov eax, dword [edi + eax + 0x14]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], 0xffffffff
je 0x496b89
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x58]
push dword [esp + 0x10]
mov dword [edi + ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x496baa
mov eax, dword [esi + 0x58]
push ecx
lea eax, [edi + eax + 0x14]
mov dword [esp + 0x14], esp
mov ecx, esp
push eax
call fcn.00402305
call fcn.0049692e
pop ecx
mov ecx, dword [esi + 0x58]
mov dword [edi + ecx + 0xc], eax
mov eax, dword [esi + 0x58]
mov eax, dword [edi + eax + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x496be1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x58]
push dword [esp + 0x10]
mov dword [edi + ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax + 0x10]
push 0x5afd90
call fcn.0040dd09
test eax, eax
jne 0x496c07
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax + 0x10]
push 0x5b1604
call fcn.0040dd09
or dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add edi, 0x28
cmp eax, dword [esi + 0x5c]
jl 0x496b15
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496c3e
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x610
lea ebp, [esp - 4]
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x610], eax
push 0xc
mov eax, 0x502c7c
call fcn.004e3d00
mov eax, dword [ebp + 0x61c]
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 4], esi
push 0x3fe
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.004e38a0
mov eax, dword [ebp + 0x620]
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x496d55
xor eax, eax
push 0x206
mov word [ebp + 0x400], ax
lea eax, [ebp + 0x402]
push esi
push eax
call fcn.004e38a0
mov esi, 0x5c94e4
lea edi, [ebp + 0x608]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
xor bl, bl
lea edi, [ebp]
mov ax, word [edi]
mov word [ebp + 0x608], ax
push 0x104
lea eax, [ebp + 0x400]
push eax
lea eax, [ebp + 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x496d41
lea eax, [ebp + 0x400]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x496d0c
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x496d41
push esi
lea eax, [ebp + 0x400]
push eax
push dword [ebp - 0x14]
call fcn.004e357c
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jne 0x496d96
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x496d41
test bl, bl
jne 0x496d55
cmp word [edi], 0
jne 0x496cdc
mov ecx, dword [ebp - 0x10]
push 0x5afd90
call fcn.0040253b
mov ecx, dword [ebp + 0x620]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x610]
xor ecx, ebp
call fcn.004de422
add ebp, 0x614
leave
ret
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x18]
call fcn.004027f9
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp + 0x608]
push eax
lea eax, [ebp - 0x18]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402a1d
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
call fcn.00402305
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x496d62
Function at 0x4a45a4
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4a45da
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push 0x4a44b7
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov al, 1
jmp 0x4a466c
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x4a4641
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x4a4625
dec eax
je 0x4a460c
dec eax
je 0x4a4625
dec eax
jne 0x4a45d3
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x64]
mov dword [esi], ecx
add eax, 0xfffffff0
jmp 0x4a463c
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x4a45d3
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4a466a
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
jmp 0x4a45d3
xor al, al
pop edi
leave
ret
Function at 0x4a7f36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x502a24
call fcn.004e3d69
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ebx
xor esi, esi
push 0x5b2de4
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.00413eb9
test eax, eax
jne 0x4a7f79
xor edi, edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, edi
call fcn.004e3dec
ret
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea edi, [ebp - 0x224]
push ebx
call fcn.0041455e
mov edi, eax
cmp edi, esi
je 0x4a7fae
lea ecx, [ebp - 0x224]
call fcn.0041459a
jmp 0x4a7f66
xor eax, eax
lea edi, [ebp - 0x234]
push 0x206
mov dword [ebp - 0x238], esi
stosd dword es:[edi], eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 0x228], 0x100
call fcn.004e38a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
call edi
test eax, eax
jne 0x4a80b5
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040253b
push 0x5b2de4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00413eb9
mov ebx, eax
neg ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x230]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040285b
test bl, bl
jne 0x4a80af
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call fcn.0040253b
push dword [ebp - 0x224]
call fcn.004a7f36
add esp, 0xc
cmp eax, esi
jne 0x4a80af
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
mov dword [ebp - 0x228], 0x100
call edi
test eax, eax
je 0x4a8012
mov ebx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.0041459a
call fcn.00482292
test al, al
je 0x4a811b
test byte [0x60ce8c], 1
jne 0x4a80f5
or dword [0x60ce8c], 1
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x60ce88], eax
mov eax, dword [0x60ce88]
cmp eax, esi
je 0x4a810a
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call eax
jmp 0x4a8114
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x4a7fa1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x4a7fa1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x4a8114
Function at 0x4a853b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x5029de
call fcn.004e3d69
and dword [ebp - 4], 0
and dword [ebp - 0x278], 0
mov edi, ecx
mov dword [ebp - 0x274], edi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x26c]
call fcn.004027f9
xor esi, esi
inc esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0040281e
mov dword [ebp - 0x278], esi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x264]
call fcn.004027f9
and dword [ebp - 0x268], 0
mov byte [ebp - 4], 2
call fcn.004077e9
push dword [ebx + 0x24]
lea eax, [ebp - 0x26c]
push 0x5ce690
push eax
call fcn.00402a1d
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x4a86d7
mov ecx, 0x5af644
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a860c
test dx, dx
je 0x4a8608
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a860c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a85e6
xor eax, eax
jmp 0x4a8611
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a86ab
mov ecx, 0x5bc960
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a864a
test dx, dx
je 0x4a8646
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a864a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a8624
xor eax, eax
jmp 0x4a864f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a86ab
test byte [ebp - 0x260], 0x10
jne 0x4a86ab
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.00402719
mov eax, dword [ebp - 0x264]
mov edi, dword [eax - 0xc]
push 0x5ce69c
xor ecx, ecx
lea esi, [ebp - 0x264]
call fcn.0040788c
add edi, 0xfffffffd
cmp eax, edi
jne 0x4a86ab
lea eax, [ebp - 0x234]
push eax
call fcn.004df43f
cmp dword [ebp - 0x268], eax
pop ecx
jg 0x4a86ab
mov dword [ebp - 0x268], eax
call fcn.004077e9
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a85db
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
inc eax
push eax
push dword [ebx + 0x24]
push str._s_.8d
push dword [ebp - 0x274]
call fcn.00402a1d
mov ecx, dword [ebp - 0x264]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [ebp - 0x274]
call fcn.004e3dec
ret
Function at 0x4aa2e4
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x270
mov eax, 0x50297e
call fcn.004e3d69
xor ebx, ebx
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], ebx
call fcn.004c92aa
mov byte [ebp - 4], 1
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x268]
call fcn.004027f9
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 0xc], ebx
jle 0x4aa3a5
mov ecx, esi
lea eax, [ebp + 8]
call fcn.00402bd5
cmp ax, 0x5c
je 0x4aa351
mov ecx, esi
lea eax, [ebp + 8]
call fcn.00402bd5
movzx eax, ax
push eax
lea ecx, [ebp - 0x268]
call fcn.004371ff
jmp 0x4aa379
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x27c]
call fcn.004c96e8
push 0x5b2450
lea ecx, [ebp - 0x268]
call fcn.0041417d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
dec eax
cmp esi, eax
jne 0x4aa39c
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x27c]
call fcn.004c96e8
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x4aa326
xor esi, esi
inc esi
cmp dword [ebp - 0x274], esi
jle 0x4aa3f3
push esi
lea ecx, [ebp - 0x27c]
call fcn.004370b9
push eax
lea ecx, [ebp - 0x268]
call fcn.004025da
push ebx
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
je 0x4aa3ea
push 0x80
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
cmp esi, dword [ebp - 0x274]
jl 0x4aa3b0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x27c]
mov esi, eax
call fcn.004c932b
cmp dword [ebp - 0x264], 0x10
push esi
jne 0x4aa457
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.0040285b
xor esi, esi
inc esi
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call fcn.004c9586
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, esi
call fcn.004e3dec
ret 4
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.0040285b
xor esi, esi
jmp 0x4aa434
Function at 0x4aa46f
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x5024aa
call fcn.004e3d00
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x10]
call fcn.004027f9
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004e38a0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x70], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0xc], bl
je 0x4aa4c4
lea eax, [ebp - 0x18]
push eax
call fcn.0044b345
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str.regedit.exe__s___s_
push eax
call fcn.00402a1d
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040733c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004145ba
cmp edi, ebx
je 0x4aa525
push 0x2328
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x14], ebx
je 0x4aa533
push dword [ebp - 0x18]
call fcn.0044b37b
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, edi
call fcn.004e3dd8
ret 8

Function at 0x4aa611
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4aa635
xor esi, esi
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, esi
pop esi
ret 4
test al, 0x10
je 0x4aa63e
push 2
pop esi
jmp 0x4aa623
xor esi, esi
inc esi
jmp 0x4aa623

Function at 0x4aa8db
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x4aab74
Capabilities:
Access peb ldr_data
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a676
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ff740]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004051df
call fcn.004bf17c
fld qword [0x5d1230]
mov eax, dword [eax + 0xc]
push ecx
push ecx
fstp qword [esp]
push 0x1b1
push dword [esi + 0x20]
lea ecx, [esi + 0x258]
mov edx, eax
call fcn.0040c1ff
push 0x5afd90
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.RESOURCESTRING
call fcn.0040253b
and dword [esp + 0x30], 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5cf1f0
call fcn.0040253b
or dword [esp + 0x34], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.00406ef3
mov dword [esp + 0x28], 1
push dword [eax]
lea ecx, [esi + 0x26c]
call fcn.004bf38e
or dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
push 0x1f
mov edi, 0x1db
push edi
push 0x22
push 0xc
pop ebx
push ebx
push 0x169
mov ecx, esi
call fcn.0044a3cd
push 0xd
push edi
push 0x44
push ebx
push 0x17b
mov ecx, esi
call fcn.0044a3cd
push 0xd
push edi
push 0x55
push ebx
push 0x15d
mov ecx, esi
call fcn.0044a3cd
push 0xd
push edi
push 0x67
push ebx
push 0x17f
mov ecx, esi
call fcn.0044a3cd
push 0x14
push 0x14
push 0xb6
push 0x1d2
push 0x1d4
mov ecx, esi
call fcn.0044a3cd
call fcn.004bf17c
mov eax, dword [eax + 0xc]
push 0xd9
lea edi, [esi + 0x2e0]
push eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x467
push dword [edi]
call ebx
push 0xffff0000
push 0xffffffffffffffff
push 0x465
push dword [edi]
call ebx
lea edi, [esi + 0x170]
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.004bf472
push ebx
mov ecx, edi
call fcn.004bf430
add esi, 0x74
push ebx
mov ecx, esi
call fcn.004bf430
push ebx
mov ecx, esi
call fcn.004bf472
xor eax, eax
inc eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ad7cb
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push 0x480
mov eax, 0x50a260
call fcn.004e3d69
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48c], eax
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x47c]
call fcn.004027f9
and dword [ebp - 4], 0
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x488]
call fcn.004027f9
mov byte [ebp - 4], 1
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x470]
call fcn.004027f9
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.004e38a0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call fcn.00482496
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x478]
call fcn.0040253b
mov byte [ebp - 4], 3
push dword [ebp - 0x478]
lea eax, [ebp - 0x47c]
push str._s.
push eax
call fcn.00402a1d
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
je 0x4ada13
mov ecx, 0x5af644
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad8c7
test dx, dx
je 0x4ad8c3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad8c7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad8a1
xor eax, eax
jmp 0x4ad8cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad9ec
mov ecx, 0x5bc960
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad905
test dx, dx
je 0x4ad901
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad905
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad8df
xor eax, eax
jmp 0x4ad90a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad9ec
test byte [ebp - 0x46c], 0x10
jne 0x4ad9ec
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x470]
call fcn.00402719
mov eax, dword [ebp - 0x470]
mov edi, dword [eax - 0xc]
push 0x5ce9bc
xor ecx, ecx
lea esi, [ebp - 0x470]
call fcn.0040788c
add edi, 0xfffffffd
cmp eax, edi
jne 0x4ad9ec
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x474]
call fcn.004027f9
lea eax, [ebp - 0x440]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x478]
lea eax, [ebp - 0x474]
push 0x5b4a10
push eax
call fcn.00402a1d
add esp, 0x10
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x484]
call fcn.00402305
mov esi, dword [ebp - 0x484]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esi - 0x10]
cmp eax, 0xffffffff
jne 0x4ad9bb
call fcn.0040285b
jmp 0x4ad9da
test al, 0x10
jne 0x4ad9b4
call fcn.0040285b
mov ecx, dword [ebp - 0x48c]
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x474]
push edx
push eax
call fcn.004c96e8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.0040285b
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ad896
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x470]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x488]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
call fcn.0040285b
call fcn.004e3dec
ret 4