joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449688
Capabilities:
Copy file

Disassembly:
mov eax, 0x47a6dc
call fcn.00467ed8
sub esp, 0x854
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x860]
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x800
push eax
call fcn.00449754
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x449747
lea eax, [ebp + 0x13]
push ebx
push eax
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x47e4b8
mov dword [ebp - 0x18], 0x47e4b0
call fcn.00405ab2
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x60]
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.00405ab2
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040756c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00407d51
push ebx
lea ecx, [ebp - 0x38]
push dword [ebp + 8]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x449739
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x449737
mov eax, 0x80004005
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407d51
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x449754
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a6f0
call fcn.00467ed8
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
xor eax, eax
cmp dword [ebp + 0xc], esi
push 0x20019
push 0x4984c0
setne al
add eax, 0x80000001
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.004291d8
mov edi, eax
cmp edi, esi
jne 0x4497ad
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push dword [ebp + 8]
push eax
push esi
push 0x4984b8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 0x10], esi
je 0x4497bb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44a0d9
Capabilities:
Delete file

Disassembly:
mov eax, 0x47a7e3
call fcn.00467ed8
sub esp, 0x7c
push ebx
push esi
push edi
lea eax, [ebp - 0xd]
push 1
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x88]
call fcn.0040573d
lea eax, [ebp - 0xe]
push 1
xor edi, edi
push eax
push 0x4987a4
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], edi
call fcn.0040573d
push dword [0x47e4c4]
lea eax, [ebp - 0x60]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x5c]
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00408bae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00407d51
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x38]
push dword [ebp + 0x18]
push eax
call fcn.0041717c
lea eax, [ebp - 0x38]
push 0xc
push eax
mov byte [ebp - 4], 2
call fcn.00418679
mov ebx, dword [ebp + 8]
add esp, 0x14
test al, al
jne 0x44a19f
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
call fcn.00406617
push eax
push ebx
call fcn.004495b3
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x44a19f
push esi
push 0x498770
push ebx
call fcn.004493eb
add esp, 0xc
jmp 0x44a260
push 8
push edi
lea ecx, [ebp - 0x38]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x44a1de
call esi
test eax, eax
je 0x44a1de
call esi
push eax
push 0x498748
push ebx
call fcn.004493eb
add esp, 0xc
call esi
mov esi, eax
jmp 0x44a260
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x498458], eax
jne 0x44a1f9
call esi
test eax, eax
jne 0x44a1c4
push dword [ebp + 0xc]
call dword [0x498458]
mov edi, eax
test edi, edi
je 0x44a21b
push edi
push 0x498720
push ebx
call fcn.004493eb
add esp, 0xc
mov esi, edi
jmp 0x44a260
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x44a238
call esi
test eax, eax
je 0x44a238
call esi
push eax
push 0x4986f4
jmp 0x44a1cc
lea ecx, [ebp - 0x38]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44a25e
call esi
test eax, eax
je 0x44a25e
call esi
push eax
push 0x4986d0
jmp 0x44a1cc
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407d51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x44a973
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x44a992
xor al, al
jmp 0x44a9ac
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x44a9b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x44abfa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x498a7c
push SysReAllocString
xor edi, edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x44ac34
mov edi, dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x808]
push dword [ebp + 8]
push eax
call fcn.004681db
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push esi
push 0x498a70
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, esi
je 0x44ac7a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x44b727
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x44b75b
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x44b77e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x44b789
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x44b792
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x44b817
xor eax, eax
cmp dword [ebp - 4], esi
je 0x44b7d3
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x44b817
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push 0x498d1c
call fcn.0044b727
cmp dword [ebp - 4], esi
je 0x44b813
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x44b835
cmp eax, esi
push ebx
jle 0x44b826
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x44b832
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x451e5a
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x47b633
call fcn.00467ed8
sub esp, 0x1c0
push ebx
push esi
mov esi, ecx
push edi
push 0x49a464
lea eax, [ebp - 0x8c]
lea ebx, [esi + 0x1c]
mov byte [ebp - 0xd], 1
push ebx
push eax
call fcn.004076d0
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, eax
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00407d51
cmp edi, 0xffffffff
je 0x451f68
cmp byte [ebp - 0xd], 0
je 0x451f61
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040573d
test byte [ebp - 0x1cc], 0x10
mov byte [ebp - 4], 3
jne 0x451f3c
push 0x4957d4
call fcn.00468008
pop ecx
push eax
push 0x4957d4
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push 0
call fcn.0045f39b
test eax, eax
je 0x451f3c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0041717c
add esp, 0xc
push eax
lea ecx, [esi + 0x458]
mov byte [ebp - 4], 4
call fcn.0045a2f0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00407d51
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00407d51
lea eax, [ebp - 0x1cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne byte [ebp - 0xd]
jmp 0x451ec1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4542b4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x47ba0b
call fcn.00467ed8
sub esp, 0x78
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45435e
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00406c84
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x50]
sete bl
or dword [ebp - 4], 0xffffffff
call fcn.00407d51
test bl, bl
je 0x454365
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.00406c84
push 1
mov ecx, eax
pop edi
push 0
mov dword [ebp - 4], edi
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
lea ecx, [ebp - 0x84]
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
inc bl
call fcn.00407d51
test bl, bl
je 0x454368
push 0
push 0x49ac2c
mov ecx, esi
call fcn.00406617
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4544d1
push 1
pop edi
mov eax, dword [ebp + 0xc]
xor esi, esi
and dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
mov eax, dword [eax + 0xc]
cmp eax, edi
mov dword [ebp - 0x18], eax
jbe 0x454493
push 2
pop ebx
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0044a703
movzx eax, word [eax]
cmp eax, 0x56
jg 0x454409
je 0x45446e
cmp eax, 0x49
jg 0x4543e7
je 0x454434
sub eax, 0x21
je 0x4543df
sub eax, 9
je 0x4543d5
dec eax
je 0x4543cd
sub eax, 0x16
je 0x454441
sub eax, ebx
je 0x454439
sub eax, ebx
jne 0x45435e
or esi, ebx
jmp 0x454484
mov dword [ebp - 0x14], edi
jmp 0x454484
mov esi, 0xfdf
jmp 0x454484
mov dword [ebp - 0x14], ebx
jmp 0x454484
sub eax, 0x4d
je 0x454430
sub eax, ebx
je 0x454449
dec eax
je 0x45447e
sub eax, ebx
je 0x454476
sub eax, 3
jne 0x45435e
or esi, 8
jmp 0x454484
cmp eax, 0x6f
jg 0x454451
je 0x454449
sub eax, 0x57
je 0x454469
sub eax, 0xa
je 0x454441
sub eax, ebx
je 0x454439
sub eax, ebx
je 0x4543c6
sub eax, 4
je 0x454434
sub eax, 4
jne 0x45435e
or esi, edi
jmp 0x454484
or esi, 0x10
jmp 0x454484
or esi, 0x800
jmp 0x454484
or esi, 0x100
jmp 0x454484
or esi, 0x80
jmp 0x454484
sub eax, 0x70
je 0x45447e
sub eax, ebx
je 0x454476
sub eax, 3
je 0x454404
dec eax
je 0x45446e
dec eax
jne 0x45435e
or esi, 4
jmp 0x454484
or esi, 0x1000
jmp 0x454484
or esi, 0x200
jmp 0x454484
or esi, 0x400
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x454384
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
mov dword [edi + 0x2c8], esi
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4544ab
mov eax, 0x47e4c0
push eax
lea ecx, [edi + 0x2a0]
call fcn.00405c35
mov eax, dword [ebp - 0x14]
mov ecx, ebx
push eax
mov dword [edi + 0x2cc], eax
call fcn.00406617
push eax
push esi
call sub.msi.dll_MsiGetComponentPathA
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x457a33
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x47c122
call fcn.00467ed8
sub esp, 0x1e4
push esi
mov esi, ecx
push 0x4b39f8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x457b61
add esi, 0x1c
push 0x496340
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.004076d0
add esp, 0xc
mov eax, dword [eax + 8]
and dword [ebp - 4], 0
test eax, eax
jne 0x457a81
mov eax, 0x47e4c0
push edi
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.004056a1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00407d51
lea eax, [ebp - 0x1f0]
lea ecx, [ebp - 0x60]
push eax
call fcn.0040654b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp byte [ebp - 0x1c4], 0x2e
je 0x457b29
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x47e4b8
mov dword [ebp - 0x18], 0x47e4b0
call fcn.00405ab2
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00407502
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00407d51
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00407d51
lea eax, [ebp - 0x1f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x457ab8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00407d51
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x458e7d
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x458ea4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47c357
call fcn.00467ed8
sub esp, 0xa4
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, dword [eax + 0xc]
mov esi, ecx
cmp eax, edi
jne 0x459095
push ebx
lea ebx, [esi + 0x2f8]
push ebx
call fcn.0044a28c
neg al
sbb eax, eax
pop ecx
add eax, reloc.OLEAUT32.dll_SysReAllocString
push 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x12]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040562c
lea eax, [ebp - 0x11]
push 1
push eax
push 0x49b01c
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call fcn.0040573d
push dword [0x47e4c4]
lea eax, [ebp - 0x54]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x50]
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004079e1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407d51
push dword [0x47e4c4]
mov eax, ebx
add ebx, 4
lea ecx, [ebp - 0x78]
neg eax
sbb eax, eax
push edi
and eax, ebx
push eax
call fcn.00408bae
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x7c]
push eax
push 1
push edi
mov byte [ebp - 4], 2
call fcn.0040654b
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45903c
mov ecx, dword [ebp + 8]
mov eax, 0x104
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406c57
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 3
call fcn.00406617
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x4954a0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x2c]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 2
inc bl
call fcn.00405d74
test bl, bl
je 0x459077
cmp byte [ebp + 0xc], 0
je 0x459077
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xb0]
push eax
call fcn.00406c84
push 0x4957d4
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
call fcn.0040a582
add esp, 0xc
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 5
neg ecx
sbb ecx, ecx
push edi
and ecx, eax
push ecx
lea ecx, [esi + 0xe8]
call fcn.00406741
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00407d51
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00407d51
jmp 0x459077
cmp byte [ebp + 0xc], 0
je 0x459077
lea ebx, [esi + 0xe4]
push 0x49ba00
mov ecx, ebx
call fcn.00405c35
mov esi, dword [esi + 0x300]
cmp esi, edi
jne 0x459063
mov esi, 0x47e4c8
push esi
mov ecx, ebx
call fcn.00407248
push 0x4957d4
mov ecx, ebx
call fcn.00407248
cmp dword [ebp - 0x10], edi
pop ebx
je 0x459089
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4601c7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46022e
call esi
cmp eax, 0x3f0
jne 0x460221
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x46022a
push 1
jmp 0x46024d
cmp eax, ebx
je 0x46024c
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x46024c
call esi
cmp eax, 0x7a
je 0x46025c
push ebx
push dword [ebp - 4]
call fcn.004601b8
pop ecx
pop ecx
jmp 0x460343
push dword [ebp - 8]
call fcn.0046808f
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4602a2
push ebx
push dword [ebp - 4]
call fcn.004601b8
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x46029a
push esi
call fcn.0045ff78
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x460343
lea eax, [ebp - 0xc]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4602ec
push ebx
push dword [ebp - 4]
call fcn.004601b8
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x4602e7
push esi
call fcn.0045ff78
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x460343
cmp dword [esi], ebx
mov byte [ebp - 0x10], bl
mov dword [ebp + 8], ebx
jbe 0x46031b
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x460317
inc dword [ebp + 8]
add edi, 8
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jb 0x4602f9
jmp 0x46031b
mov byte [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004601b8
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x460340
push esi
call fcn.0045ff78
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46063f
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x47cc3f
call fcn.00467ed8
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.004607ef
test al, 0x10
pop ecx
je 0x4607ba
push 1
lea eax, [ebp + 8]
pop edi
push 0x496340
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004076d0
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00407d51
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x460765
test edi, edi
je 0x46075e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x49633c
push eax
call edi
test eax, eax
je 0x460749
lea eax, [ebp - 0x1bc]
push 0x496338
push eax
call edi
test eax, eax
je 0x460749
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47e4b8
mov dword [ebp - 0x20], 0x47e4b0
call fcn.00405ab2
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.00407502
add esp, 0xc
call fcn.0046063f
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00407d51
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x4606c3
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x460794
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00407dae
lea eax, [ebp - 0x60]
push 0x481f58
push eax
call fcn.00467ef7
cmp dword [ebp - 0x10], 0xffffffff
je 0x46079f
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46079f
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00407dae
lea eax, [ebp - 0xa8]
push 0x481f58
push eax
call fcn.00467ef7

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x460824
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00407dae
lea eax, [ebp - 0x48]
push 0x481f58
push eax
call fcn.00467ef7
leave
ret
Function at 0x46164b
Capabilities:
Write file on windows

Disassembly:
push 0x4000
push dword [esp + 8]
push dword [0x4b3bc8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp fcn.00461665

Function at 0x461665
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x47cdb8
call fcn.00467ed8
sub esp, 0x34
push ebx
push esi
push dword [0x4b3bc4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x40]
call fcn.00419fb2
push 4
xor ebx, ebx
sub esp, 0x1c
mov ecx, 0x4b3b9c
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
mov dword [ebp - 4], ebx
call fcn.0041b3ca
push eax
mov ecx, esi
call fcn.00461754
lea ecx, [ebp - 0x40]
call fcn.00461785
cmp al, bl
je 0x461718
push dword [0x4b3bc8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 2
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], eax
call fcn.0041a151
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0x3c]
call esi
push 0x21
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push dword [0x4b3bc8]
call fcn.0046784f
mov eax, dword [0x4b3bc8]
lea ecx, [ebp - 0x18]
push ebx
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x3c]
call esi
lea ecx, [ebp - 0x40]
call fcn.0041a17f
push dword [0x4b3bc4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x40], 0x47ee54
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.0041a17f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0041b666
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret