joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d809c
Capabilities:
Copy file
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2d
push 0
push 0
dec ecx
jne 0x4d80a4
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405388
xor eax, eax
push ebp
push 0x4d8532
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, 0x4d854c
call fcn.0040a36c
test al, al
jne 0x4d80ec
push 0
push 0x4d8558
push 0x4d8564
call sub.kernel32.dll_CopyFileA
xor eax, eax
push ebp
push 0x4d82be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4192dc]
call fcn.00403f3c
mov dword [ebp - 0x20], eax
mov edx, 0x4d8578
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4d8165
inc ebx
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x12c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x12c]
mov eax, 0x4d858c
call fcn.004054dc
test eax, eax
jle 0x4d815f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x4d8165
inc dword [ebp - 0x28]
dec ebx
jne 0x4d812d
xor eax, eax
push ebp
push 0x4d8203
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4192dc]
call fcn.00403f3c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
call fcn.004d7ebc
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jge 0x4d81a5
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x4d81ad
lea eax, [ebp - 0x10]
call fcn.00404ebc
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4d81ed
inc ebx
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x130]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x10]
call fcn.004054dc
test eax, eax
jg 0x4d81ed
inc dword [ebp - 0x28]
dec ebx
jne 0x4d81c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d820a
mov eax, dword [ebp - 0x24]
call fcn.00403f6c
ret
Function at 0x4daa38
Capabilities:
Create process on windows
Get common file path
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor eax, eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4daba3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x203]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 8]
lea edx, [ebp - 0x203]
mov ecx, pe_nt_image_headers32
call fcn.0040512c
lea eax, [ebp - 0x208]
mov ecx, 0x4dabbc
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x208]
call fcn.0040a36c
test al, al
je 0x4dab7d
push 0
push 0x4dabe4
push dword [ebp - 8]
push 0x4dac44
lea eax, [ebp - 0x20c]
mov edx, 3
call fcn.00405258
mov eax, dword [ebp - 0x20c]
call fcn.00405398
push eax
call sub.kernel32.dll_WinExec
push 2
call sub.kernel32.dll_Sleep_1
push 0x4dac64
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0xffffffffffffffff
push 0xe10
push 0xdac
push 0xbb8
push 0xbb8
push ebx
call sub.user32.dll_MoveWindow
push 0x4dac70
push 0x4dac78
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0xfb
lea eax, [ebp - 0x103]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0x103]
push eax
push 0xfb
push 0xd
push ebx
call sub.user32.dll_SendMessageA
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
movzx eax, word [ebp - 2]
push eax
push 1
push 0x201
push ebx
call sub.user32.dll_SendMessageA
movzx eax, word [ebp - 2]
push eax
push 1
push 0x202
push ebx
call sub.user32.dll_SendMessageA
mov bl, 1
push 2
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dabaa
lea eax, [ebp - 0x20c]
mov edx, 2
call fcn.00404ee0
lea eax, [ebp - 8]
call fcn.00404ebc
ret
Function at 0x4df824
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405388
xor eax, eax
push ebp
push 0x4df935
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43cd68]
call fcn.0043ce68
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4df910
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
jne 0x4df880
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0043cf44
jmp 0x4df88d
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0043cf44
xor eax, eax
push ebp
push 0x4df8f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x4df94c
mov eax, dword [ebp - 0xc]
call fcn.0043cfa8
test al, al
je 0x4df8e6
cmp byte [ebp - 5], 0
je 0x4df8d3
lea edx, [ebp - 0x10]
mov eax, dword [0x5339bc]
mov eax, dword [eax]
call fcn.00482ae4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0043d164
jmp 0x4df8de
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0043d0cc
mov eax, dword [ebp - 0xc]
call fcn.0043cf14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df8fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df917
mov eax, dword [ebp - 0xc]
call fcn.00403f6c
ret
Function at 0x4e0ddc
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e0de4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0fd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
mov edx, dword [eax]
call dword [edx + 0x44]
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov eax, dword [eax + 0x23c]
mov edx, 0x4e0ff0
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
mov edx, 0x4e0ff0
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dl, 1
mov eax, dword [0x4192dc]
call fcn.00403f3c
mov ebx, eax
mov edx, 0x4e1024
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e0f4c
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00405398
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.004050b4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004096c0
mov edx, dword [ebp - 0x14]
mov eax, 0x4e1038
call fcn.004054dc
test eax, eax
jle 0x4e0eb0
mov byte [ebp - 5], 1
cmp byte [ebp - 5], 0
je 0x4e0f42
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, 0x4e1054
call fcn.004054dc
test eax, eax
jle 0x4e0f42
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, 0x4e1060
call fcn.004054dc
test eax, eax
jne 0x4e0f42
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004e0d1c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov eax, dword [eax + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0xc]
inc esi
dec dword [ebp - 0x10]
jne 0x4e0e72
cmp dword [ebp - 0xc], 1
jg 0x4e0f7a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, 1
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
xor edx, edx
call fcn.00461e64
jmp 0x4e0fb5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov dl, 1
call fcn.00461e64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x40
mov ecx, 0x4e1084
mov edx, 0x4e108c
mov eax, dword [0x5339bc]
mov eax, dword [eax]
call fcn.004825b4
mov eax, ebx
call fcn.00403f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0fde
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00404ee0
ret
Function at 0x4e55a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x14], 0x532890
xor edx, edx
push ebp
push 0x4e5624
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4e561a
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [0x54ec6c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
test eax, eax
jne 0x4e560b
mov al, byte [ebp - 0xd]
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e563b
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x54ec68]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e562e
inc byte [ebp - 0xd]
add dword [ebp - 0x14], 4
cmp byte [ebp - 0xd], 0x25
jne 0x4e55bf
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e5704
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x12
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4e5766
xor edx, edx
mov eax, esi
call fcn.004e5460
mov dword [esp], eax
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 0
mov eax, dword [0x54ec6c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
mov eax, dword [0x54ec68]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [esp]
push eax
mov eax, dword [0x54ec68]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4e5d3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4e5e1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
push 0
lea eax, [ebp - 4]
mov ecx, 0x4e5e34
mov edx, dword [ebx + 8]
call fcn.004051e4
mov eax, dword [ebp - 4]
push eax
xor ecx, ecx
mov dx, word [ebx + 0x60]
mov eax, dword [ebx + 0x30]
call fcn.00476eb0
mov esi, eax
mov dl, byte [ebx + 0x48]
mov eax, esi
call fcn.0047439c
mov dl, byte [ebx + 0x38]
mov eax, esi
call fcn.0047441c
mov dl, byte [ebx + 0x3a]
mov eax, esi
call fcn.00474664
mov dl, byte [ebx + 0x39]
mov eax, esi
call fcn.00474470
mov dl, byte [ebx + 0x3f]
mov eax, esi
call fcn.004744e8
mov eax, dword [ebx + 0x54]
mov dword [esi + 0x54], eax
mov dl, byte [ebx + 0x3d]
mov eax, esi
call fcn.00474b10
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov dl, byte [ebx + 0x3e]
mov eax, esi
call fcn.0047458c
mov edx, dword [ebx + 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebx + 0x40]
mov eax, esi
call fcn.0047459c
lea eax, [esi + 0x58]
mov edx, dword [ebx + 0x58]
call fcn.00404f10
mov eax, ebx
call fcn.0047452c
mov edx, eax
mov eax, esi
call fcn.004749c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5e25
lea eax, [ebp - 4]
call fcn.00404ebc
ret
Function at 0x4e6cc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e6de0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00405398
push eax
mov eax, esi
call fcn.00405398
pop edx
call fcn.0040ac20
test eax, eax
jne 0x4e6d0a
mov eax, esi
call fcn.00405198
test eax, eax
jg 0x4e6dc5
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x30]
call fcn.00404f54
lea eax, [ebx + 0x30]
mov edx, esi
call fcn.00404f10
mov eax, dword [ebx + 0x30]
call fcn.00405198
test eax, eax
jne 0x4e6d40
lea eax, [ebp - 4]
push eax
push 0x11
mov eax, ebx
call fcn.004e59f8
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
jmp 0x4e6d4d
mov edx, dword [ebx + 0x30]
xor eax, eax
call fcn.004e54c8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e6d81
lea eax, [ebx + 0x30]
mov edx, dword [ebp - 8]
call fcn.00404f10
lea eax, [ebp - 0xc]
mov ecx, esi
mov edx, 0x4e6df8
call fcn.004051e4
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4e4ef0]
call fcn.0040dd7c
call fcn.00404810
mov eax, dword [ebx + 0x30]
call fcn.00405198
test eax, eax
jle 0x4e6dac
mov eax, dword [ebx + 0x30]
call fcn.00405198
mov edx, dword [ebx + 0x30]
cmp byte [edx + eax - 1], 0x5c
je 0x4e6dac
lea eax, [ebx + 0x30]
mov edx, 0x4e6e18
call fcn.004051a0
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004e6e1c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x54ec68]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6de7
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404ee0
ret

Function at 0x4e73d0
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x4009
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.004e6bdc
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop ebx
ret

Function at 0x4e7404
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x400b
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.004e6bdc
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop ebx
ret

Function at 0x4e774c
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffe9c
mov word [esp], 0
push 0x4009
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 8]
add esp, 0x164
ret

Function at 0x4e785c
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffe9c
mov ebx, edx
mov word [esp], 0
push 0x208
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, ebx
lea edx, [esp + 0x10]
mov ecx, 0x104
call fcn.0040512c
add esp, 0x164
pop ebx
ret
Function at 0x4e7dc8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov ebx, eax
cmp byte [ebx + 0x68], 0
jne 0x4e7e02
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x4e7e98
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
mov eax, ebx
call fcn.0046f3c4
jmp 0x4e7e28
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x4e7e98
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
mov eax, ebx
call fcn.0046f3c4
mov eax, ebx
call fcn.004e7e9c
test al, al
jne 0x4e7e91
mov ecx, ebx
mov dl, 1
mov eax, dword [0x45e570]
call fcn.0046f068
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e7e8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x42], 1
mov eax, ebx
call fcn.0046f400
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0046f3c4
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7e91
mov eax, dword [ebp - 4]
call fcn.00403f6c
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e8d90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405388
lea ebx, [ebp - 0x158]
xor eax, eax
push ebp
push 0x4e8ff2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 8]
call fcn.00405198
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.004053f8
mov eax, dword [ebp - 0x15c]
mov edx, 0x4e9008
call fcn.004052e4
jne 0x4e8e34
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00405198
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004053f8
mov eax, dword [ebp + 8]
call fcn.00404ebc
mov byte [ebp - 0x15], 1
push ebx
lea eax, [ebp - 0x160]
mov ecx, 0x4e9014
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x160]
call fcn.00405398
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4e8fb4
xor eax, eax
push ebp
push 0x4e8f6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.0040512c
mov eax, dword [ebp - 0x164]
mov edx, 0x4e9020
call fcn.004052e4
je 0x4e8f41
lea eax, [ebp - 0x168]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.0040512c
mov eax, dword [ebp - 0x168]
mov edx, 0x4e902c
call fcn.004052e4
je 0x4e8f41
push dword [ebp - 8]
push 0x4e9008
lea eax, [ebp - 0x16c]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.0040512c
push dword [ebp - 0x16c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405258
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00409760
test eax, eax
je 0x4e8f41
cmp byte [ebp - 0x15], 0
je 0x4e8f20
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e9030
test al, al
jne 0x4e8f24
xor eax, eax
jmp 0x4e8f26
mov al, 1
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4e8f41
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404f10
call fcn.004048bc
jmp 0x4e8fb4
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e8e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8f71
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8ff9
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.00404ee0
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.00404ee0
lea eax, [ebp - 0x14]
call fcn.00404ebc
lea eax, [ebp - 8]
call fcn.00404ebc
ret
Function at 0x4e9950
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405388
xor eax, eax
push ebp
push 0x4e9bca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405198
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.004053f8
mov eax, dword [ebp - 0x14c]
mov edx, 0x4e9be4
call fcn.004052e4
jne 0x4e99fa
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00405198
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004053f8
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00409760
test eax, eax
je 0x4e9b8f
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x4e9bf0
mov edx, dword [ebp - 4]
call fcn.004051e4
mov eax, dword [ebp - 0x150]
call fcn.00405398
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e9b8f
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.0040512c
mov eax, dword [ebp - 0x154]
mov edx, 0x4e9bfc
call fcn.004052e4
je 0x4e9b21
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.0040512c
mov eax, dword [ebp - 0x158]
mov edx, 0x4e9c08
call fcn.004052e4
je 0x4e9b21
push dword [ebp - 4]
push 0x4e9be4
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.0040512c
push dword [ebp - 0x15c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405258
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 8]
call fcn.00409670
mov eax, dword [ebp - 0x160]
push eax
lea edx, [ebp - 0x164]
mov eax, edi
call fcn.00409670
mov edx, dword [ebp - 0x164]
pop eax
call fcn.004052e4
je 0x4e9b21
mov eax, dword [ebp - 0x148]
and eax, 0x10
cmp eax, 0x10
jne 0x4e9b16
lea eax, [ebp - 8]
mov edx, 0x4e9bf0
call fcn.004051a0
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e9a42
push ebx
call sub.kernel32.dll_FindClose_1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404f54
lea edx, [ebp - 8]
mov eax, esi
call fcn.004e972c
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jl 0x4e9b6d
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404f10
jmp 0x4e9b8f
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 4]
call fcn.0040a75c
mov edx, dword [ebp - 0x168]
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.004e9950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9bd1
lea eax, [ebp - 0x168]
mov edx, 6
call fcn.00404ee0
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00404ee0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ee0
ret
Function at 0x4e9df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e9e6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, esi
mov eax, dword [ebx + 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00405198
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004053f8
push ebx
push 0x4e9704
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e87b0]
call fcn.004e9f18
mov dword [eax + 0x40], 0xffffffff
mov edx, esi
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9e76
lea eax, [ebp - 4]
call fcn.00404ebc
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 0x144]
xor eax, eax
push ebp
push 0x4ea18d
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
lea eax, [ebp - 0x148]
mov ecx, 0x4ea1a4
mov edx, esi
call fcn.004051e4
mov eax, dword [ebp - 0x148]
call fcn.00405398
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4ea164
xor eax, eax
push ebp
push 0x4ea15d
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [edi], 0x10
je 0x4ea123
cmp byte [edi + 0x2c], 0x2e
jne 0x4ea0e5
mov al, byte [edi + 0x2d]
test al, al
je 0x4ea138
sub al, 0x2e
je 0x4ea138
push esi
lea eax, [ebp - 0x150]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.0040512c
push dword [ebp - 0x150]
push 0x4ea1b0
lea eax, [ebp - 0x14c]
mov edx, 3
call fcn.00405258
mov edx, dword [ebp - 0x14c]
mov eax, ebx
call fcn.004ea058
jmp 0x4ea138
mov eax, dword [edi + 0x1c]
mov edx, eax
neg eax
add eax, dword [edi + 0x20]
xor edx, edx
add dword [ebx + 0x48], eax
adc dword [ebx + 0x4c], edx
inc dword [ebx + 0x50]
push edi
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4ea0cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea164
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea194
lea eax, [ebp - 0x150]
call fcn.00404ebc
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.00404ee0
ret