joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44132a
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3c
mov eax, dword [0x459c80]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
mov dword [esp + 0x14], ebp
lea ecx, [ebp*2 + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esp + 0x14], eax
lea edi, [esp + 0x2c]
xor eax, eax
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
sub dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x24], eax
lea eax, [ebp + 1]
mov edi, dword [esp + 0x10]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebx + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x400
lea eax, [esp + 0x2c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebx + 8]
xor esi, esi
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, dword [0x45a5bc]
jne 0x44141f
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xffffffbf
je 0x44144c
cmp dword [esp + 0x14], esi
je 0x44144c
xor eax, eax
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push esi
push 0x1604
push dword [ebx + 4]
mov dword [esp + 0x48], 6
call ebp
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
push 6
cmp ecx, dword [0x45a5b8]
jge 0x441456
sub ecx, dword [0x45a5c0]
mov eax, dword [ecx*4 + 0x4595e4]
add eax, dword [esp + 0x38]
push eax
mov eax, dword [ecx*4 + 0x4595a4]
add eax, dword [esp + 0x38]
push eax
jmp 0x44146a
push 6
push 0x18
push 0x18
xor esi, esi
jmp 0x44146a
sub ecx, dword [0x45a5c0]
push dword [ecx*4 + 0x4595e4]
push dword [ecx*4 + 0x4595a4]
push esi
push esi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 8]
cmp eax, dword [0x45a5a8]
jne 0x44148d
push esi
push esi
push 0xb1
push dword [ebx + 4]
call ebp
push 1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449662
add esp, 0x3c
ret
Function at 0x442413
Capabilities:
Get file attributes
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x459c80]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2d4]
xor ebp, ebp
push ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x2b4
mov ebx, eax
lea eax, [esp + 0x1c]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
push edi
call dword [0x45402c]
add esp, 0x10
cmp eax, 1
jle 0x442568
push 2
push edi
call dword [0x454034]
pop ecx
pop ecx
test eax, eax
je 0x442568
cmp eax, 5
jne 0x4424d6
lea eax, [esp + 0x14]
push eax
push 2
push edi
call dword [0x454130]
mov ecx, dword [sym.wluart.exe_TBuffer]
add esp, 0xc
mov esi, dword [esp + 0x14]
mov edx, eax
cmp esi, dword [ecx]
jne 0x4424be
push ebp
push 0x10
push 0x10
push 0x30000
push 1
push dword [edx + 4]
push dword [edx + 8]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
jmp 0x44256c
mov eax, dword [sym.wluart.exe_TWidget]
cmp esi, dword [eax]
jne 0x4424d6
push dword [edx + 0x30]
push ebx
call dword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x44256c
push 2
push edi
call dword [0x454028]
pop ecx
pop ecx
mov esi, eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4424e6
sub eax, edx
sar eax, 1
push 1
movzx ebx, word [esi + eax*2 - 2]
lea eax, [esp + 0x14]
push eax
push ebp
push ebp
push 1
push 3
push edi
call dword [0x45406c]
add esp, 0x10
dec eax
push eax
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x442523
cmp eax, 0xffffffff
jne 0x442560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp ebx, 0x5c
je 0x44253e
cmp ebx, 0x2f
je 0x44253e
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
jmp 0x442541
push 0x10
pop eax
push 0x111
push 0x2b4
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449662
add esp, 0x2c0
ret

Function at 0x443f5f
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ebp, ebp
push ebp
push ebp
push ebp
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push dword [esp + 0x18]
push 2
push 1
push 0x45a20c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov cx, word [0x45a20c]
add esp, 0x20
cmp cl, 0xff
jne 0x443f9b
cmp ch, 0xfe
jne 0x443fc9
push 2
pop eax
pop ebp
ret
cmp cl, 0xef
jne 0x443fc9
cmp ch, 0xbb
jne 0x443fc9
push dword [esp + 8]
push 1
push 1
push 0x45a20c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x45a20c], 0xbf
jne 0x443fc9
xor eax, eax
inc eax
pop ebp
ret
push ebp
push ebp
push ebp
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
xor eax, eax
pop ebp
ret
Function at 0x44a3a6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a3e5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a3e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a3e5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a3e5
cmp dword [ecx + 0x74], 0xe
jbe 0x44a3e5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4066a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42e8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4045c4
call fcn.0040788b
push 4
mov dword [esp + 0x18], 0
call fcn.004089a4
mov edi, eax
add esp, 4
test edi, edi
je 0x406714
push ebx
call fcn.00407686
mov dword [edi], eax
call fcn.00407445
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040784c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406708
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00407874
pop ebx
jmp 0x406716
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40957b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431354]
jne 0x409585
repz ret
jmp fcn.0040dbcc
Function at 0x4128c2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c13f
and dword [ebp - 0x14], 0
cmp dword [0x436bcc], 0
mov dword [ebp - 0x18], eax
jne 0x412975
push 0x403ff8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412a1d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fec
push ebx
call edi
test eax, eax
je 0x412a1d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fdc
push ebx
mov dword [0x436bcc], eax
call edi
push eax
call esi
push 0x403fc8
push ebx
mov dword [0x436bd0], eax
call edi
push eax
call esi
push 0x403fac
push ebx
mov dword [0x436bd4], eax
call edi
push eax
call esi
mov dword [0x436bdc], eax
test eax, eax
je 0x412975
push 0x403f94
push ebx
call edi
push eax
call esi
mov dword [0x436bd8], eax
mov eax, dword [0x436bd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4129ce
cmp dword [0x436bdc], ecx
je 0x4129ce
push eax
call esi
push dword [0x436bdc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4129ce
test ebx, ebx
je 0x4129ce
call edi
test eax, eax
je 0x4129c5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4129c5
test byte [ebp - 8], 1
jne 0x4129ce
or dword [ebp + 0x10], 0x200000
jmp 0x412a01
mov eax, dword [0x436bd0]
cmp eax, dword [ebp - 0x18]
je 0x412a01
push eax
call esi
test eax, eax
je 0x412a01
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412a01
mov eax, dword [0x436bd4]
cmp eax, dword [ebp - 0x18]
je 0x412a01
push eax
call esi
test eax, eax
je 0x412a01
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436bcc]
call esi
test eax, eax
je 0x412a1d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412a1f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040957b
leave
ret
Function at 0x406320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a41b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404264
call fcn.0040750b
push 4
mov dword [esp + 0x18], 0
call fcn.004086e8
mov edi, eax
add esp, 4
test edi, edi
je 0x406394
push ebx
call fcn.00407306
mov dword [edi], eax
call fcn.004070c5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004074cc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406388
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004074f4
pop ebx
jmp 0x406396
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4092bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d354]
jne 0x4092c5
repz ret
jmp fcn.0040dbac
Function at 0x411822
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b35f
and dword [ebp - 0x14], 0
cmp dword [0x43bc04], 0
mov dword [ebp - 0x18], eax
jne 0x4118d5
push 0x403e48
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41197d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e3c
push ebx
call edi
test eax, eax
je 0x41197d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e2c
push ebx
mov dword [0x43bc04], eax
call edi
push eax
call esi
push 0x403e18
push ebx
mov dword [0x43bc08], eax
call edi
push eax
call esi
push 0x403dfc
push ebx
mov dword [0x43bc0c], eax
call edi
push eax
call esi
mov dword [0x43bc14], eax
test eax, eax
je 0x4118d5
push 0x403de4
push ebx
call edi
push eax
call esi
mov dword [0x43bc10], eax
mov eax, dword [0x43bc10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41192e
cmp dword [0x43bc14], ecx
je 0x41192e
push eax
call esi
push dword [0x43bc14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41192e
test ebx, ebx
je 0x41192e
call edi
test eax, eax
je 0x411925
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411925
test byte [ebp - 8], 1
jne 0x41192e
or dword [ebp + 0x10], 0x200000
jmp 0x411961
mov eax, dword [0x43bc08]
cmp eax, dword [ebp - 0x18]
je 0x411961
push eax
call esi
test eax, eax
je 0x411961
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411961
mov eax, dword [0x43bc0c]
cmp eax, dword [ebp - 0x18]
je 0x411961
push eax
call esi
test eax, eax
je 0x411961
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43bc04]
call esi
test eax, eax
je 0x41197d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41197f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092bb
leave
ret
Function at 0x401510
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
je 0x401553
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x114], 5
jb 0x401543
push str.IsUserAnAdmin
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401543
call eax
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0050629a
mov esp, ebp
pop ebp
ret
Function at 0x401a20
Capabilities:
Acquire debug privileges
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x156c
call fcn.005068e0
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1560]
xor ebx, ebx
push eax
mov dword [ebp - 0x156c], esi
mov dword [ebp - 0x1564], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x401c41
mov dword [ebp - 0x1568], ebx
call fcn.00401510
test eax, eax
je 0x401a84
call fcn.00401590
mov dword [ebp - 0x1568], eax
test eax, eax
jne 0x401a84
lea ebx, [eax + 1]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x155c]
push ecx
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x401add
mov ecx, dword [ebp - 0x155c]
lea eax, [ebp - 0xc34]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x1560]
mov ecx, dword [ebp - 0x155c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
push 1
lea eax, [ebp - 0xc34]
push eax
push edi
call fcn.004034d0
add esp, 0xc
mov dword [ebp - 0x1564], edi
test ebx, ebx
je 0x401c05
cmp dword [ebp - 0x1564], 0
je 0x401c05
mov edx, dword [ebp - 0x156c]
lea ecx, [ebp - 0x155c]
push ecx
push 0x28
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401c05
mov ecx, dword [ebp - 0x155c]
lea eax, [ebp - 0xc34]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x1560]
mov ecx, dword [ebp - 0x155c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
push 1
lea eax, [ebp - 0xc34]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.004034d0
lea eax, [ebp - 0x310]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b56
sub eax, edx
mov esi, eax
push esi
lea edx, [ebp - 0x310]
push edi
push edx
call fcn.0050698f
add esp, 0xc
test eax, eax
jne 0x401c05
push 1
push str.SeDebugPrivilege
call fcn.00401460
add esp, 8
test eax, eax
je 0x401c05
lea eax, [ebp - 0x61c]
push eax
call fcn.00401640
add esp, 4
test eax, eax
je 0x401bf6
lea ecx, [ebp - 0x124c]
push edi
push ecx
call fcn.004036d0
lea edx, [ebp - 0x310]
push edx
push 0
push 0
lea eax, [ebp - 0xf40]
push eax
lea ecx, [ebp - 0x1558]
push ecx
call fcn.00401920
lea edx, [ebp + esi - 0x124c]
push edx
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0xf40]
push ecx
lea edx, [ebp - 0x1558]
push edx
push str._s_s_s_s
push edi
call fcn.0050690b
add esp, 0x34
push 0
push str.SeDebugPrivilege
call fcn.00401460
add esp, 8
mov esi, dword [ebp - 0x1568]
test esi, esi
je 0x401c1c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1560]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1564]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0050629a
mov esp, ebp
pop ebp
ret
Function at 0x401c60
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401c98
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, 0x40000
je 0x401cb2
mov eax, ebx
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0xc]
test bl, 0x10
je 0x401db3
push esi
lea ecx, [ebp - 0x61c]
push str._s
push ecx
call fcn.00401900
mov ebx, dword [ebp + 0xc]
add esp, 0xc
test bl, 2
je 0x401c86
test ebx, 0x20000
je 0x401da2
push edi
lea edx, [ebp - 0x86c]
push edx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401da1
lea ecx, [ebp - 0x86c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401d9a
lea ebx, [ebx]
lea ecx, [ebp - 0x840]
mov eax, 0x52ede8
jmp 0x401d30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d56
test dx, dx
je 0x401d52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d56
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d30
xor eax, eax
jmp 0x401d5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401d88
lea edx, [ebp - 0x840]
push edx
push esi
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.00401900
lea ecx, [ebp - 0x61c]
push ebx
push ecx
call fcn.00401c60
add esp, 0x18
lea edx, [ebp - 0x86c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401d20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
push esi
test ebx, 0x10000
jne 0x401dc3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x401dd3
test al, 1
je 0x401c86
push esi
test eax, 0x10000
je 0x401dcd
call fcn.00401440
add esp, 4
jmp 0x401dd3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050629a
mov esp, ebp
pop ebp
ret
Function at 0x402350
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov edx, 0x80
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], edx
lea edx, [ebp - 0x188]
push edx
push 0xf003f
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push eax
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x19c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4023bf
mov eax, SysReAllocStringLen
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x1a0]
push edx
mov edx, dword [ebp - 0x188]
xor esi, esi
push esi
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x40244b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x188]
lea eax, [ebp - 0x104]
push eax
push ecx
call ebx
lea edx, [ebp - 0x190]
push edx
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp - 0x188]
push 0
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 0x104]
push eax
inc esi
push esi
push ecx
call edi
test eax, eax
je 0x402401
mov ebx, dword [ebp - 0x194]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
lea edx, [ebp - 0x1a8]
push edx
mov edx, dword [ebp - 0x188]
push esi
push esi
push esi
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x4024bf
lea esp, [esp]
mov ecx, dword [ebp - 0x188]
lea eax, [ebp - 0x104]
push eax
push ecx
mov ecx, ebx
call fcn.00402350
lea edx, [ebp - 0x1a8]
push edx
mov edx, dword [ebp - 0x188]
push 0
push 0
push 0
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x104]
push ecx
inc esi
push esi
push edx
call edi
test eax, eax
je 0x402480
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x198]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050629a
mov esp, ebp
pop ebp
ret 8