joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411b30
test al, al
jne 0x411b9d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x411be9
xor eax, eax
push ebp
push 0x411bd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405040
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411be0
lea eax, [ebp - 0xc]
call fcn.00411b6c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4161f4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4161fc
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4162e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040f3e8
mov edx, dword [ebp - 8]
mov ecx, 0x416304
xor eax, eax
call fcn.004160d8
push 0
mov eax, dword [ebp - 4]
call fcn.00405040
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4162b7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x416216
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x3b
call fcn.00411934
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00408988
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f970
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x70
call fcn.00411904
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x407224]
call fcn.0040c6c8
call fcn.00404198
jmp 0x416216
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4162f0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404fac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fac
ret

Function at 0x416318
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x41bdc0]
cmp dword [eax], 2
jne 0x416380
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41633b
xor eax, eax
jmp 0x41638f
lea eax, [esp + 8]
push eax
push 0x416394
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x416380
xor eax, eax
jmp 0x41638f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4163bc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x416416
inc esi
xor edi, edi
cmp edi, 1
jne 0x4163e2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4163f0
cmp edi, 1
jle 0x4163f0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00411b7c
test eax, eax
jne 0x416416
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x416416
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x416416
inc edi
dec esi
jne 0x4163d2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x416420
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416444
mov eax, dword [ebp - 4]
jmp 0x416447
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x41644c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x416499
xor ebx, ebx
jmp 0x41648e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00408424
test eax, eax
jne 0x41648d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x416543
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41646f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4164a5
je 0x4164ae
jmp 0x4164b7
call fcn.0040f6a0
mov esi, eax
jmp 0x4164b9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4164b9
xor esi, esi
test si, si
je 0x416543
xor ebx, ebx
jmp 0x4164df
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4164de
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x416543
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4164c6
xor ebx, ebx
jmp 0x416538
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x416537
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x41652c
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.00416420
push eax
mov eax, esi
call fcn.00416420
pop edx
cmp edx, eax
jne 0x416537
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x416543
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4164ee
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x416930
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x416a05
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x416a20
push ebx
push 0x416a30
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405458
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403340
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405040
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4169b0
mov al, 0x72
call fcn.00416550
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00416904
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4169b9
call fcn.00416904
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a0c
lea eax, [ebp - 4]
call fcn.00404fa4
ret

Function at 0x416b20
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x416beb
jmp 0x416bdf
cmp dword [esi + 0x10], 0x1000
jne 0x416bcb
test byte [esi + 0x15], 1
jne 0x416bcb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x416b7c
cmp ebp, 2
je 0x416b7c
cmp ebp, 0x10
je 0x416b7c
cmp ebp, 0x20
jne 0x416b98
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x416b98
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x416ba9
mov eax, dword [esi]
add eax, ebx
call fcn.00416b18
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x416b9c
cmp byte [esp + 4], 0
je 0x416bcb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x416beb
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x416b51
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x415c0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4228b4]
jne 0x415c15
repz ret
jmp fcn.00418d2a

Function at 0x416008
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004135ce
and dword [ebp - 4], 0
cmp dword [0x423e3c], 0
mov ebx, eax
jne 0x4160b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41616a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41616a
push eax
call fcn.0041355c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e3c], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e40], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e44], eax
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e4c], eax
test eax, eax
je 0x4160b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e48], eax
mov eax, dword [0x423e48]
cmp eax, ebx
je 0x416111
cmp dword [0x423e4c], ebx
je 0x416111
push eax
call fcn.004135d7
push dword [0x423e4c]
mov esi, eax
call fcn.004135d7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416111
test edi, edi
je 0x416111
call esi
test eax, eax
je 0x416108
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416108
test byte [ebp - 0xc], 1
jne 0x416111
or dword [ebp + 0x10], 0x200000
jmp 0x41614a
mov eax, dword [0x423e40]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41614a
mov eax, dword [0x423e44]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e3c]
call fcn.004135d7
pop ecx
test eax, eax
je 0x41616a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41616c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x4a4a71bc
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3a2f17f3
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40ecb3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409aef
mov dword [ebp - 0x14], eax
cmp dword [0x432b20], esi
jne 0x40eda6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ed33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ee86
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ee86
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ee86
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x432b20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x432b24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x432b28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x432b30], eax
test eax, eax
je 0x40eda3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x432b2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40edcb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40edbe
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ede0
push 4
pop eax
jmp 0x40ee88
cmp dword [ebp - 0x14], esi
je 0x40ede0
push dword [0x432b20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40edc5
mov eax, dword [0x432b2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ee3e
cmp dword [0x432b30], edi
je 0x40ee3e
push eax
call ebx
push dword [0x432b30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ee3e
test eax, eax
je 0x40ee3e
call ecx
test eax, eax
je 0x40ee33
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ee33
test byte [ebp - 8], 1
jne 0x40ee3e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ee6e
mov eax, dword [0x432b24]
cmp eax, edi
je 0x40ee6b
push eax
call ebx
test eax, eax
je 0x40ee6b
call eax
mov esi, eax
test esi, esi
je 0x40ee6b
mov eax, dword [0x432b28]
cmp eax, edi
je 0x40ee6b
push eax
call ebx
test eax, eax
je 0x40ee6b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x432b20]
call ebx
test eax, eax
je 0x40ee86
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ee88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040414c
mov esp, ebp
pop ebp
ret
Function at 0x401773
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4017a5
test dl, 7
je 0x4017a5
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42ba70]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x401785
cmp esi, 8
jb 0x401835
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ba70]
xor ecx, dword [eax*4 + 0x42be70]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42c270]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42ca70]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x42ce70]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42d270]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x42c670]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42d670]
mov ebx, ecx
sub edi, 1
jne 0x4017b4
pop edi
test esi, esi
je 0x401851
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42ba70]
inc edx
sub esi, 1
jne 0x401839
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401df7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401e10
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401e83
mov ecx, esi
call fcn.00401ee4
test al, al
je 0x401e4b
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401e4b
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401df7
jmp 0x401e86
cmp dword [esi + 0xc], 1
jne 0x401e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401e60
xor eax, eax
jmp 0x401e86
cmp dword [esi + 0xc], 0
jne 0x401e7e
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401e7e
push ebx
jmp 0x401e3f
or eax, 0xffffffff
jmp 0x401e86
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401f07
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.0040f4b0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401f31
mov cl, dl
test bl, 4
je 0x401f33
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401f58
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401f67
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.004033ec
test al, al
je 0x401fe5
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401fe0
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401ff6
cmp dword [esp + 0x10], 2
jne 0x401ff6
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
test bl, bl
je 0x402024
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.004045c8
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

Function at 0x40258c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4b0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025d1
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033ec
test al, al
je 0x4025d1
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40260d
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4b0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040368a
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40263e
cmp eax, 0x20
je 0x40263e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402671
push esi
call fcn.00402578
test al, al
jne 0x402684
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004033ec
test al, al
je 0x402684
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402684
cmp byte [ebp + 0xc], 0
je 0x402680
push dword [ebp + 0x10]
push esi
call fcn.0040284a
xor eax, eax
jmp 0x40269c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402699
cmp eax, 3
je 0x402699
xor eax, eax
inc eax
jmp 0x40269c
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40284a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4b0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x40289a
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033ec
test al, al
je 0x40289a
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4029f7
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.0040f4b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x402a91
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402ab8
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.004033ec
test al, al
je 0x402a6a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402a84
cmp eax, 3
je 0x402a84
cmp eax, 0x12
je 0x402a84
xor eax, eax
inc eax
jmp 0x402a86
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402b66
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402ab0
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402b66
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.004045c8
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040375a
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00404d93
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00404d93
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00404d93
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc