joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c4b78
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5c4ba6
mov eax, ebx
call fcn.005c562c
cmp dword [ebx + 0x40], 0
je 0x5c4b9f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5c4c17
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5c4c09
cmp dword [ebx + 8], 0
je 0x5c4bc8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5c4bda
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5c4c09
cmp dword [ebx + 8], 0
je 0x5c4bbb
cmp eax, 3
je 0x5c4bed
dec eax
jne 0x5c4bbb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5c4bbb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5c4bbb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5c4c35
cmp dword [ebx + 0x14], 0xcc
je 0x5c4c35
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005c4c40
pop ebx
ret

Function at 0x5d609c
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov ecx, edx
dec ecx
test ecx, ecx
jl 0x5d60b2
inc ecx
xor edx, edx
mov esi, eax
add esi, edx
xor byte [esi], dl
inc edx
dec ecx
jne 0x5d60a8
mov eax, edi
pop edi
pop esi
ret

Function at 0x5d6aec
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d6c4d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5d6c1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5d6c0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4579f4]
call fcn.00459b50
mov dword [ebp - 0xc], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.00459c38
mov cl, 1
mov edx, 0x5d6c68
mov eax, dword [ebp - 0xc]
call fcn.00459d80
test bl, bl
je 0x5d6bd2
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0045a7b0
mov eax, dword [ebp - 0x10]
push eax
push 0x5d6cd0
push dword [ebp - 8]
push 0x5d6cd0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00408404
mov edx, dword [ebp - 0x14]
pop eax
call fcn.004085c4
je 0x5d6bec
push 0x5d6cd0
push dword [ebp - 8]
push 0x5d6cd0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00408404
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0045a698
jmp 0x5d6bec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0045ad38
test al, al
je 0x5d6bec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0045a228
mov eax, dword [ebp - 0xc]
call fcn.00459c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d6c11
mov eax, dword [ebp - 0xc]
call fcn.004058d0
ret
Function at 0x5d6cd4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
mov eax, esp
call fcn.00417624
add esp, 0x200
pop ebx
ret

Function at 0x5d7244
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d72d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0
push 0
push 0x801c
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040804c
cmp dword [ebp - 0x210], 0
jne 0x5d72ad
mov ecx, 0x5d72f0
mov dl, 1
mov eax, dword [0x4102d4]
call fcn.0041c120
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040804c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d72df
lea eax, [ebp - 0x210]
call fcn.00407e2c
ret

Function at 0x5d7328
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d73bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0
push 0
push 0x801a
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040804c
cmp dword [ebp - 0x210], 0
jne 0x5d7391
mov ecx, 0x5d73d4
mov dl, 1
mov eax, dword [0x4102d4]
call fcn.0041c120
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040804c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d73c3
lea eax, [ebp - 0x210]
call fcn.00407e2c
ret

Function at 0x5d740c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d745e
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
push 0x5d746c
push 0
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7465
lea eax, [ebp - 4]
call fcn.00407e2c
ret
Function at 0x5d78cc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
mov eax, dword [ebp - 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d79d4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00405000
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00405000
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 5
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.00416c68
mov eax, dword [ebp - 0x64]
call fcn.00407ec8
push eax
push 0
push 0x20
push 0
push 0
push 0
push 0x5d79f0
push dword [ebp - 4]
push 0x5d7a00
push dword [ebp - 8]
push 0x5d79f0
push 0x5d7a14
push dword [ebp - 0xc]
lea eax, [ebp - 0x68]
mov edx, 7
call fcn.00408404
mov eax, dword [ebp - 0x68]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x5d79ac
mov ebx, dword [ebp - 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d79db
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00407e34
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407e34
ret
Function at 0x5d7a18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov byte [ebp - 9], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp + 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d7be4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00405000
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00405000
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
mov word [ebp - 0x3a], 0
xor eax, eax
mov dword [ebp - 0x38], eax
test bl, bl
je 0x5d7a92
mov word [ebp - 0x3c], 1
jmp 0x5d7a98
mov word [ebp - 0x3c], 0
cmp dword [ebp + 0xc], 0
je 0x5d7abf
mov eax, dword [ebp + 0xc]
call fcn.00407ec8
mov edi, eax
lea eax, [ebp - 0x70]
mov edx, dword [ebp + 0xc]
call fcn.004080c8
mov eax, dword [ebp - 0x70]
call fcn.00407980
mov esi, eax
jmp 0x5d7ac3
xor edi, edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x14], eax
xor ebx, ebx
call fcn.005d8380
test al, al
je 0x5d7b62
lea eax, [ebp - 0x14]
push eax
push 0x2000000
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x18]
push eax
push 1
push 2
push 0
push 0x2000000
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x5d7bb6
cmp byte [ebp - 9], 0
jne 0x5d7b19
lea eax, [ebp - 0x18]
call fcn.005d7478
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004080c8
mov eax, dword [ebp - 8]
call fcn.00407980
mov edi, eax
push edi
push 0
push 0
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.005d66c4
test al, al
jne 0x5d7b4e
mov bl, 1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5d7b8e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x5d7b8e
mov bl, 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp byte [ebp + 8], 0
je 0x5d7bb6
test bl, bl
jne 0x5d7bb6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7beb
lea eax, [ebp - 0x70]
call fcn.00407790
lea eax, [ebp - 8]
call fcn.00407790
lea eax, [ebp - 4]
call fcn.00407e2c
lea eax, [ebp + 0xc]
call fcn.00407e2c
ret
Function at 0x5d7bf8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d7c9b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x5d7c80
push 0xff
lea eax, [ebp - 0x206]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
test eax, eax
jle 0x5d7c72
lea eax, [ebp - 8]
lea edx, [ebp - 0x206]
mov ecx, 0xff
call fcn.0040804c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040899c
test eax, eax
jle 0x5d7c72
mov esi, ebx
jmp 0x5d7c80
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x5d7c36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7ca2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407e34
ret

Function at 0x5d7d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d7d5e
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
push 0x5d7d68
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7d65
lea eax, [ebp - 4]
call fcn.00407e2c
ret

Function at 0x5d7d74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d7df1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
mov eax, dword [0x66bc40]
push eax
call sub.kernel32.dll_FindResourceW
mov esi, eax
push esi
mov eax, dword [0x66bc40]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
setne bl
push esi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7df8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407e34
ret
Function at 0x5d7e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
mov eax, dword [ebp - 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d7ec6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00407ec8
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00407ec8
push eax
mov ecx, dword [0x66bc40]
mov dl, 1
mov eax, dword [0x437144]
call fcn.00443900
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x5d7e9a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004431f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7ea1
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.004058d0
ret
Function at 0x5d7edc
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d8110
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0xc]
call fcn.004171f8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5d7f3f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5d7f3f
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406e9c
test eax, eax
je 0x5d7f48
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0xc]
xchg edx, eax
call fcn.004081c8
mov eax, dword [ebp - 4]
call fcn.00404758
call fcn.0040471c
lea eax, [ebp - 0x260]
push eax
push 0x5d8120
call sub.kernel32.dll_FindFirstFileW_1
mov edi, eax
cmp edi, 0xffffffff
je 0x5d80a4
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.0040804c
mov eax, dword [ebp - 8]
mov edx, 0x5d8134
call fcn.004085c4
je 0x5d8079
mov eax, dword [ebp - 8]
mov edx, 0x5d8144
call fcn.004085c4
je 0x5d8079
xor ebx, ebx
test byte [ebp - 0x260], 0x10
je 0x5d806f
mov esi, dword [ebp - 4]
test esi, esi
je 0x5d7fe1
mov eax, esi
sub eax, 0xa
cmp word [eax], 2
je 0x5d7fe1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406e9c
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5d7ffe
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5d7ffe
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406e9c
test eax, eax
je 0x5d8007
sub eax, 4
mov eax, dword [eax]
cmp word [esi + eax*2 - 2], 0x5c
je 0x5d803c
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x5d8158
push dword [ebp - 8]
lea eax, [ebp - 0x264]
mov edx, 3
call fcn.00408404
mov eax, dword [ebp - 0x264]
call fcn.005d7edc
pop ecx
jmp 0x5d805d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x268]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408320
mov eax, dword [ebp - 0x268]
call fcn.005d7edc
pop ecx
mov eax, dword [ebp - 8]
call fcn.00407ec8
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jmp 0x5d8079
mov eax, dword [ebp - 8]
call fcn.005d7cac
test al, al
lea eax, [ebp - 0x260]
push eax
push edi
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5d7f7a
push edi
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 0x10]
call fcn.00417220
jmp 0x5d80b5
mov eax, dword [ebp - 0xc]
call fcn.00404758
call fcn.0040471c
xor ebx, ebx
jmp 0x5d80e5
test bl, bl
je 0x5d80d6
mov eax, 0x5d8144
call fcn.00404758
call fcn.0040471c
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov eax, dword [ebp - 0xc]
call fcn.00404758
call fcn.0040471c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8117
lea eax, [ebp - 0x268]
mov edx, 2
call fcn.00407e34
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407e34
ret
Function at 0x5d81c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 9], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d834a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 1
mov bl, 1
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, 0x5d8368
mov edx, dword [ebp - 4]
call fcn.00408320
mov eax, dword [ebp - 0x260]
call fcn.00407ec8
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x5d8319
jmp 0x5d8311
cmp word [ebp - 0x230], 0x2e
je 0x5d82fe
lea eax, [ebp - 8]
lea edx, [ebp - 0x230]
mov ecx, 0x104
call fcn.0040804c
push dword [ebp - 4]
push 0x5d837c
push dword [ebp - 8]
lea eax, [ebp - 0x264]
mov edx, 3
call fcn.00408404
mov eax, dword [ebp - 0x264]
mov edx, 0x10
call fcn.004168a4
cmp byte [ebp - 9], 0
je 0x5d82d0
test byte [ebp - 0x25c], 0x10
je 0x5d82d0
push dword [ebp - 4]
push 0x5d837c
push dword [ebp - 8]
lea eax, [ebp - 0x268]
mov edx, 3
call fcn.00408404
mov eax, dword [ebp - 0x268]
call fcn.005d815c
test al, al
jne 0x5d82fe
mov byte [ebp - 0xa], 0
jmp 0x5d82fe
push dword [ebp - 4]
push 0x5d837c
push dword [ebp - 8]
lea eax, [ebp - 0x26c]
mov edx, 3
call fcn.00408404
mov eax, dword [ebp - 0x26c]
call fcn.005d7cac
test al, al
jne 0x5d82fe
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x25c]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x5d8245
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8351
lea eax, [ebp - 0x26c]
mov edx, 4
call fcn.00407e34
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407e34
ret
Function at 0x5d838c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
xor ebx, ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
mov eax, dword [ebp - 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d85b8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0041667c
test al, al
je 0x5d856d
cmp dword [ebp - 0xc], 0
jne 0x5d8424
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 4]
call fcn.00416f00
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0xc]
xor edx, edx
call fcn.00416b58
lea edx, [ebp - 0x14]
mov eax, dword [0x668708]
call fcn.00517724
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, 0x5d85c8
call fcn.0040b2e0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00416c2c
mov eax, dword [ebp - 0x10]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x238]
mov ecx, 0x5d85e4
mov edx, dword [ebp - 0x10]
call fcn.00408320
mov eax, dword [ebp - 0x238]
call fcn.0041667c
test al, al
je 0x5d84ce
push 0
lea eax, [ebp - 0x23c]
mov ecx, 0x5d85e4
mov edx, dword [ebp - 0x10]
call fcn.00408320
mov eax, dword [ebp - 0x23c]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x22e]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x22e]
mov dword [ebp - 0x250], eax
mov byte [ebp - 0x24c], 0xa
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0x11
lea edx, [ebp - 0x250]
mov ecx, 1
mov eax, 0x5d860c
call fcn.004177dc
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0x20]
call fcn.004080c8
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, 0x5d8620
call fcn.0040b2e0
push 0
mov eax, dword [ebp - 0x20]
call fcn.00407980
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x5d856d
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
call fcn.004080b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d85bf
lea eax, [ebp - 0x240]
mov edx, 4
call fcn.00407e34
lea eax, [ebp - 0x20]
call fcn.00407790
lea eax, [ebp - 0x1c]
call fcn.0040b29c
lea eax, [ebp - 0x18]
call fcn.0040b29c
lea eax, [ebp - 0x14]
call fcn.0040b29c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407e34
ret
Function at 0x5d8698
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
xor ecx, ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d8832
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x5d870d
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 4]
call fcn.00416f00
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 8]
xor edx, edx
call fcn.00416b58
lea edx, [ebp - 0xc]
mov eax, dword [0x668708]
call fcn.00517724
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x5d8840
call fcn.0040b2e0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.00416c2c
mov eax, dword [ebp - 0x22c]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x222]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x222]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0xa
mov eax, dword [ebp - 8]
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0x11
lea edx, [ebp - 0x240]
mov ecx, 1
mov eax, 0x5d885c
call fcn.004177dc
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x14]
call fcn.004080c8
lea eax, [ebp - 0x244]
mov edx, dword [ebp - 0x14]
call fcn.004080b4
mov eax, dword [ebp - 0x244]
call fcn.005d7cac
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8839
lea eax, [ebp - 0x244]
call fcn.00407e2c
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00407e34
lea eax, [ebp - 0x14]
call fcn.00407790
lea eax, [ebp - 0x10]
call fcn.0040b29c
lea eax, [ebp - 0xc]
call fcn.0040b29c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407e34
ret