joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x404ca0
cmp dword [esi + 0x14], ebx
jne 0x404ca0
test byte [esi], 0x10
je 0x404c40
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x404be4
cmp dword [esi + 0x34], edi
jae 0x404be4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x30], ebx
jne 0x404c0a
lea eax, [edi + edi]
push eax
push ebx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x404c0a
mov dword [esi + 0x14], 2
jmp 0x404c91
push edi
push dword [ebp + 8]
push dword [esi + 0x30]
call fcn.00508ba0
add esp, 0xc
test edi, edi
jbe 0x404c39
mov eax, dword [esi + 0x30]
movzx eax, byte [eax + ebx]
push eax
lea ecx, [esi + 0x24]
call fcn.00404ae7
pop ecx
mov ecx, dword [esi + 0x30]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x404c1d
mov ecx, dword [esi + 0x30]
xor ebx, ebx
jmp 0x404c43
mov ecx, dword [ebp + 8]
test byte [esi], 1
je 0x404c71
mov eax, dword [esi + 0x1c]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x404c5c
mov dword [esi + 0x14], 0xb
jmp 0x404c91
push edi
push ecx
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
call fcn.00508ba0
add esp, 0xc
add dword [esi + 0x1c], edi
jmp 0x404c91
push ebx
lea eax, [ebp - 4]
push eax
push edi
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c8a
cmp dword [ebp - 4], edi
je 0x404c91
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x404ca0
mov dword [esi + 0x14], 0x14
pop ebx
leave
ret

Function at 0x404d25
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
push edi
test eax, 0x40000000
je 0x404d3c
mov dword [esi + 0x14], 0x14
jmp 0x404d91
test al, al
jns 0x404d71
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
cmp eax, edi
jae 0x404d91
sub edi, eax
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0xc]
jbe 0x404d5a
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x48]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.00508ba0
add esp, 0xc
add dword [esi + 0x50], edi
jmp 0x404d98
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404d95
mov dword [esi + 0x14], 7
xor eax, eax
jmp 0x404dad
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x44]
add dword [esi + 0x40], edi
mov edx, edi
call fcn.004049c6
mov dword [esi + 0x44], eax
mov eax, edi
pop edi
leave
ret
Function at 0x405f46
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and dword [edi + 0x6af50], 0
push 0x1fffc
mov ebx, eax
lea eax, [edi + 0x4af54]
push 0
mov esi, 0x10000
push eax
mov byte [edi + 0x6af81], 1
mov dword [edi + 0x6af54], esi
call fcn.00509740
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x5347ba]
mov dword [edi + 0x6af74], ecx
movzx ecx, word [eax + 0x5347b8]
mov dword [edi + 0x6af78], ecx
movzx ecx, word [eax + 0x5347bc]
mov dword [edi + 0x6af7c], ecx
movzx eax, word [eax + 0x5347be]
add esp, 0xc
mov dword [edi + 0x6af70], eax
cmp ebx, 2
ja 0x405fc4
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x405fd1
cmp ebx, 8
jb 0x405fd1
mov eax, dword [esp + 0x10]
or word [eax], 2
push esi
mov esi, dword [edi]
lea ebx, [edi + 0x1af54]
push ebx
call fcn.00404d25
xor esi, esi
pop ecx
pop ecx
mov dword [edi + 0x6af6c], eax
cmp eax, esi
je 0x406036
mov byte [edi + 0x6af80], 0
mov dword [edi + 0x6af58], esi
mov dword [edi + 0x6af64], esi
cmp eax, 0x106
jae 0x40600d
call fcn.0040542e
mov dword [edi + 0x6af5c], esi
xor eax, eax
movzx ecx, byte [ebx + eax]
mov edx, dword [edi + 0x6af5c]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
inc eax
mov dword [edi + 0x6af5c], ecx
cmp eax, 2
jb 0x406015
pop edi
pop esi
pop ebx
ret

Function at 0x406c1d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + ebx]
push 0x534c3c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x406cec
lea eax, [edi + ebx + 1]
mov dword [ebp - 4], eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 4]
mov byte [edi + ebx], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [esi], 0x10
je 0x406cb0
cmp byte [esi + 0x2c], 0x2e
jne 0x406c8c
mov al, byte [esi + 0x2d]
test al, al
je 0x406cd1
cmp al, 0x2e
je 0x406cd1
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 0x14]
lea eax, [eax + ebx + 1]
push eax
push edi
push dword [ebp + 8]
call fcn.00406c1d
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x406cd1
mov eax, dword [esi + 0x1c]
jmp 0x406cee
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push 2
add eax, edi
push 0
push eax
mov ecx, edi
call fcn.00406633
add esp, 0xc
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x406cab
mov ebx, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406c58
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407310
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0x10
pop esi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407341
xor eax, eax
jmp 0x4073e1
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x407365
cmp dword [ebp - 4], edi
je 0x40733a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40733a
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 4]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], edi
call esi
test eax, eax
je 0x4073be
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x14], 2
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x4073d0
cmp dword [ebp - 4], edi
je 0x4073cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4073e0
cmp dword [ebp - 4], edi
je 0x4073de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x407452
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x14]
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x407480
mov eax, esi
jmp 0x4074b2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x14]
test eax, eax
je 0x4074a9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40747c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4074b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x14]
mov eax, 0x200
push eax
push 0
push esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
call fcn.00509740
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4074f6
or eax, 0xffffffff
jmp 0x407586
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x40751c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4074ee
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407527
sub eax, edx
cmp eax, 2
jbe 0x407583
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40753a
sub eax, edx
cmp byte [eax + esi - 1], 0xa
jne 0x40755c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40754f
sub eax, edx
mov byte [eax + esi - 1], cl
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407561
sub eax, edx
cmp byte [eax + esi - 1], 0xd
jne 0x407583
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407576
sub eax, edx
mov byte [eax + esi - 1], cl
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x407589
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x57b830]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x200
push esi
lea eax, [ebp - 0x204]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x407640
push esi
lea eax, [ebp - 0x204]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x407640
push edi
push str._c_del
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push str.____NUL
lea eax, [ebp - 0x404]
push eax
call edi
push esi
lea eax, [ebp - 0x204]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
pop edi
test eax, eax
je 0x407640
push ebx
push ebx
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x407640
xor eax, eax
inc eax
jmp 0x407642
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050949c
leave
ret
Function at 0x407650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407681
xor eax, eax
jmp 0x4076b5
push ebx
push esi
call fcn.00508acb
pop ecx
push 0
mov ebx, eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4076ab
mov eax, ebx
jmp 0x4076b4
push ebx
call fcn.005089ee
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4076b9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00509740
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
add esp, 0xc
cmp dword [0x57f1a8], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x8540
mov dword [ebp - 0x34], eax
je 0x4076f7
mov dword [ebp - 0x30], str.runas
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x4e20
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
leave
ret

Function at 0x40772c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x57f198], ebx
je 0x40774a
cmp byte [0x57f19d], bl
je 0x40774a
mov eax, 0x100
jmp 0x40774c
xor eax, eax
push esi
lea ecx, [ebp - 4]
push ecx
mov esi, 0xf003f
or eax, esi
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40779b
cmp dword [0x57f198], ebx
je 0x407781
cmp byte [0x57f19d], bl
je 0x407781
mov eax, 0x100
jmp 0x407783
xor eax, eax
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
or eax, esi
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp + 0x14]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4077a2
sub eax, edx
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4077c5
or ebx, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x4077d3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x57f198], ebx
je 0x4077f1
cmp byte [0x57f19d], bl
je 0x4077f1
mov eax, 0x100
jmp 0x4077f3
xor eax, eax
push esi
lea ecx, [ebp - 4]
push ecx
mov esi, 0xf003f
or eax, esi
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407842
cmp dword [0x57f198], ebx
je 0x407828
cmp byte [0x57f19d], bl
je 0x407828
mov eax, 0x100
jmp 0x40782a
xor eax, eax
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
or eax, esi
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
test eax, eax
je 0x40785f
or ebx, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x4092e3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4cc]
sub esp, 0x54c
mov eax, dword [0x57b830]
xor eax, ebp
mov dword [ebp + 0x4c8], eax
mov eax, dword [ebp + 0x4d4]
push ebx
push esi
mov esi, 0x1ff
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xc9]
push 0
push eax
mov byte [ebp + 0xc8], 0
call fcn.00509740
push esi
lea eax, [ebp + 0x2c9]
push 0
push eax
mov byte [ebp + 0x2c8], 0
call fcn.00509740
add esp, 0x18
call fcn.0040bd06
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401217
mov eax, dword [ebp + 0x4d8]
mov ecx, dword [eax - 0xc]
lea ebx, [esi + 1]
cmp ecx, ebx
jg 0x4093f6
jae 0x409373
lea edx, [ebp + 0x2c8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409369
push edi
lea edi, [ebp + 0x2c8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40937b
mov esi, 0x535898
lea eax, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp + 0x2c8]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x4093f6
mov eax, dword [ebp + 0x4d8]
cmp dword [eax - 0xc], ebx
ja 0x4093ef
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea eax, [ebp + 0xc8]
push 0x535890
push eax
call fcn.0050b393
add esp, 0x10
test byte [ebp - 0x78], 0x10
jne 0x4093e0
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x80]
call fcn.00406cf3
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4093a3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp + 0x4d8]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp + 0x4c8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050949c
add ebp, 0x4cc
leave
ret
Function at 0x4095b6
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x57b830]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x28
mov eax, 0x522b84
call fcn.005094ab
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
push 0x1ff
stosw word es:[edi], ax
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp], bl
call fcn.00509740
add esp, 0xc
lea eax, [ebp + 0x20c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040700c
push 0x535898
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00407083
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004010ac
mov esi, 0x200
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.00509740
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add esp, 0xc
cmp ecx, esi
jle 0x409658
lea ecx, [eax - 0x10]
jmp 0x4096bb
jae 0x40966b
lea edx, [ebp]
mov esi, eax
sub edx, eax
mov cl, byte [esi]
mov byte [edx + esi], cl
inc esi
cmp cl, bl
jne 0x409661
mov eax, dword [eax - 0xc]
mov byte [ebp + eax + 1], bl
lea eax, [ebp]
mov dword [ebp - 0x2c], eax
mov eax, 0x414
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x22], ebx
mov dword [ebp - 0x1e], ebx
mov dword [ebp - 0x1a], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x20c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp + 0x20c]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0050949c
add ebp, 0x204
leave
ret
Function at 0x409806
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x740
lea ebp, [esp - 4]
mov eax, dword [0x57b830]
xor eax, ebp
mov dword [ebp + 0x740], eax
push 0x10
mov eax, 0x522c28
call fcn.005094ab
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov esi, 0x1ff
push esi
lea eax, [ebp + 0x341]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x340], bl
call fcn.00509740
push esi
lea eax, [ebp + 0x141]
push ebx
push eax
mov byte [ebp + 0x140], bl
call fcn.00509740
push esi
lea eax, [ebp + 0x541]
push ebx
push eax
mov byte [ebp + 0x540], bl
call fcn.00509740
add esp, 0x24
call fcn.0040bd06
push eax
lea ecx, [ebp - 0x14]
call fcn.00401217
mov edx, dword [ebp + 0x74c]
mov ecx, dword [edx - 0xc]
lea eax, [esi + 1]
cmp ecx, eax
mov byte [ebp - 4], 1
jg 0x4099ef
jae 0x4098b2
lea esi, [ebp + 0x540]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x4098a8
lea edi, [ebp + 0x540]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4098b9
mov esi, 0x535898
lea eax, [ebp]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp + 0x540]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4099ef
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [ebp + 0x74c]
cmp dword [eax - 0xc], 0x200
ja 0x4099e6
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x340]
push 0x535890
push eax
call fcn.0050b393
add esp, 0x10
test byte [ebp], 0x10
je 0x40995e
lea eax, [ebp + 0x340]
push eax
lea eax, [ebp + 0x140]
push 0x535a44
push eax
call fcn.0050b393
add esp, 0xc
cmp byte [ebp + 0x2c], 0x2e
je 0x4099d5
push ecx
lea eax, [ebp + 0x340]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004013e4
mov ecx, dword [ebp - 0x18]
call fcn.00409806
jmp 0x4099d5
mov edi, dword [ebp - 0x18]
cmp dword [edi + 0x7c], ebx
jne 0x40997a
lea eax, [ebp + 0x2c]
push str.tc_fltr.exe
push eax
call fcn.00516921
pop ecx
pop ecx
test eax, eax
je 0x4099d5
cmp dword [edi + 0x88], ebx
jne 0x4099aa
lea eax, [ebp + 0x2c]
push str.TC_RV.exe
push eax
call fcn.00516921
pop ecx
pop ecx
test eax, eax
je 0x4099d5
lea eax, [ebp + 0x2c]
push str.TC_R.exe
push eax
call fcn.00516921
pop ecx
pop ecx
test eax, eax
je 0x4099d5
lea eax, [ebp + 0x74c]
push eax
push dword [0x57f2ec]
mov ecx, 0x57f2e4
call fcn.00415b49
lea eax, [ebp + 0x2c]
push eax
push dword [0x57f300]
mov ecx, 0x57f2f8
call fcn.00415b9b
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x4098eb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp + 0x74c]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x740]
xor ecx, ebp
call fcn.0050949c
add ebp, 0x744
leave
ret 4
Function at 0x40cb58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004165c6
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40cb91
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040c7a9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40cbef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40cc13
cmp dword [edi + 0x54], 0
jne 0x40cc13
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004165c6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040cbb0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412db8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412dff
call fcn.004165c6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412dff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412e1b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00412932
mov esi, eax
test edi, edi
je 0x412e19
test ebx, ebx
je 0x412e19
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4141ef
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52f952
call fcn.005094ab
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x414214
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41425a
lea ecx, [ebp - 0x10]
call fcn.00407951
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ad38
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010ac
mov eax, esi
call fcn.00509583
ret 8