joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4adf28
push 0x83
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408611
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408611
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
ja 0x4085ef
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x408611
cmp dword [ebp + 0x10], 0
je 0x4085ff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.00456fc0
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x408620
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.00456fc0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004388a0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40879b
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40879b
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0x100000
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.ExtractRes__s___LgData_d_oct
call fcn.00456fc0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jbe 0x408776
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x24], 0
jbe 0x408774
cmp dword [0x4e8c34], 0
jne 0x408774
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.ExtractRes_____WriteFile__d____d
call fcn.00456fc0
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push eax
mov ecx, 0x4d09c0
call fcn.00412760
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jbe 0x40874e
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jmp 0x408750
jmp 0x408774
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x14]
jbe 0x408760
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
jmp 0x408766
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x4086da
jmp 0x408791
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00467d60
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x409c28
cmp dword [ebp - 0x124], 6
jne 0x409c14
cmp dword [ebp - 0x120], 0
jne 0x409c14
mov dword [ebp - 0x12c], 1
jmp 0x409c1e
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
jmp 0x409c34
cmp dword [ebp - 0x124], 6
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret

Function at 0x409c50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00467d60
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x409cc8
cmp dword [ebp - 0x124], 6
jne 0x409cb4
cmp dword [ebp - 0x120], 1
jne 0x409cb4
mov dword [ebp - 0x12c], 1
jmp 0x409cbe
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
jmp 0x409cff
cmp dword [ebp - 0x124], 6
ja 0x409cef
cmp dword [ebp - 0x124], 6
jne 0x409ce3
cmp dword [ebp - 0x120], 0
ja 0x409cef
mov dword [ebp - 0x130], 0
jmp 0x409cf9
mov dword [ebp - 0x130], 1
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40a970
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 8], eax
jne 0x40a994
mov dword [ebp - 4], 1
jmp 0x40aa2b
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
je 0x40a9f6
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
jmp 0x40aa03
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40aa1f
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40aa2b
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40ab80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00467d60
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40abea
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40abea
xor eax, eax
jmp 0x40ac62
mov eax, dword [ebp + 0x10]
and eax, 0x80000
je 0x40ac0f
cmp dword [ebp - 0x124], 5
jb 0x40ac06
cmp dword [ebp - 0x120], 1
jae 0x40ac0f
cmp dword [ebp - 0x124], 6
jbe 0x40ac5f
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x40ac5f
push str.AnimateWindow
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40ac5f
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x130]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x40c07c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40bf92
cmp dword [ebp + 0x14], 0
je 0x40bf8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c0b9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40bfb8
cmp dword [ebp + 0x14], 0
je 0x40bfb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c0b9
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c05e
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c053
mov eax, dword [ebp - 0x14]
push eax
call fcn.00468820
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c03a
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.00468977
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x40c033
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.0046a4fd
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x40c03a
mov dword [ebp - 0xc], 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x40c051
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c05c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c067
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x40c07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c083
mov dword [ebp - 0xc], 0x57
cmp dword [ebp + 0x10], 0
je 0x40c091
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x40c09f
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
je 0x40c0b6
mov ecx, dword [ebp - 0xc]
push ecx
push str.GetClipboardText___returns_with_the_error_code__d
call fcn.00456fc0
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c400
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40c483
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40c481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c48c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x40c4a3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x40c4bd
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
push 0x4c7de4
lea eax, [ebp - 0x1c]
push eax
call fcn.00468512
mov ecx, dword [ebp - 8]
push ecx
push str.IsRunAsAdmin_____d
call fcn.004573f0
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret

Function at 0x40c6c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40c79b
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
jne 0x40c722
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2 - 2], ax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40c730
xor eax, eax
jmp 0x40c7a5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c799
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040fea0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40c784
xor ecx, ecx
mov edx, dword [ebp - 0x21c]
mov word [edx], cx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c6c0
add esp, 4
mov dword [ebp - 8], eax
mov ecx, 0x5c
mov edx, dword [ebp - 0x21c]
mov word [edx], cx
cmp dword [ebp - 8], 0
je 0x40c799
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
jmp 0x40c7a2
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40caf0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
or ecx, 0x8000
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40cb3f
lea edx, [ebp - 0x210]
push edx
push str.CreateFreeDirectory____SHGetFolderPath__s__failed_
call fcn.00456fc0
add esp, 8
xor eax, eax
jmp 0x40cbf4
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40cb5c
push 0x4aeef8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5c
mov edx, dword [ebp + 0xc]
push edx
call fcn.0046aead
add esp, 8
test eax, eax
je 0x40cbbe
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.0040fea0
add esp, 8
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov edx, dword [ebp - 0x214]
mov word [edx], cx
lea eax, [ebp - 0x210]
push eax
call fcn.0040c6c0
add esp, 4
mov ecx, 0x5c
mov edx, dword [ebp - 0x214]
mov word [edx], cx
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cbde
push str.CreateFreeDirectory____CreateDirectory_failed_
call fcn.004573f0
add esp, 4
push 3
push 0x10000000
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040c8e0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40d340
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00467d60
add esp, 0xc
cmp dword [ebp - 4], 0
jle 0x40d464
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0046a6ad
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, word [ebp + edx*2 - 0x21a]
cmp eax, 0x5c
jne 0x40d3c5
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x21a], cx
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x40d3d7
xor eax, eax
jmp 0x40d467
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d464
push 0x5c
lea edx, [ebp - 0x218]
push edx
call fcn.0040fea0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40d434
xor eax, eax
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
lea edx, [ebp - 0x218]
push edx
call fcn.0040d340
add esp, 4
mov dword [ebp - 8], eax
mov eax, 0x5c
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
cmp dword [ebp - 8], 0
je 0x40d464
push 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.CreateAllDirectory__s____d
call fcn.00456fc0
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40d480
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.00468820
add esp, 4
mov dword [ebp - 4], eax
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea ecx, [ebp - 0x117]
push ecx
call fcn.00467d60
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x40d580
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.0046a4fd
add esp, 0xc
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x119]
cmp edx, 0x5c
jne 0x40d503
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x119], 0
movsx ecx, byte [ebp - 0x118]
test ecx, ecx
jne 0x40d512
xor eax, eax
jmp 0x40d583
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d580
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.0040fec0
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40d568
mov ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
lea edx, [ebp - 0x118]
push edx
call fcn.0040d480
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x11c]
mov byte [eax], 0x5c
cmp dword [ebp - 8], 0
je 0x40d580
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40da20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [ebp - 0x468], ax
push 0x206
push 0
lea ecx, [ebp - 0x466]
push ecx
call fcn.00467d60
add esp, 0xc
mov dword [ebp - 8], 0
push 0x4af160
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40da92
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40da99
xor eax, eax
jmp 0x40dba3
lea eax, [ebp - 0x234]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
test edx, edx
jne 0x40dabf
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x2e
jne 0x40dabf
jmp 0x40db7d
mov edx, dword [ebp - 4]
movzx eax, word [edx + 4]
test eax, eax
jne 0x40dae6
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x40dae6
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
cmp ecx, 0x2e
jne 0x40dae6
jmp 0x40db7d
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x260]
and edx, 0x10
je 0x40db25
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0040da20
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40db5d
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.0046b9ce
add esp, 8
test eax, eax
jne 0x40db5d
mov dword [ebp - 8], 1
lea edx, [ebp - 0x468]
push edx
push 0x104
mov eax, dword [ebp + 0x10]
push eax
call fcn.0046a6ad
add esp, 0xc
jmp 0x40db96
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.FindMyFile__s___s___File_s_d
call fcn.00456fc0
add esp, 0x14
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40da99
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x40dc20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x138], 0
push 0x118
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00467d60
add esp, 0xc
mov dword [ebp - 0x138], 0x11c
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 5
ja 0x40dca4
cmp dword [ebp - 0x134], 5
jne 0x40dcc3
cmp dword [ebp - 0x130], 2
jb 0x40dcc3
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 4], eax
jmp 0x40dd01
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40dd01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40dd01
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x40dd15
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret