joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
mul edx
mov eax, edx
ret

Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040458c
add esp, 0x104
pop ebx
ret

Function at 0x405694
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4056cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x4056d6
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4056e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405701
mov al, byte [esp]
jmp 0x405703
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406e64
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406eac
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406e00
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eb3
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x4070b4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407142
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4070ff
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x40712c
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x407113
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x407122
lea edx, [ebp - 4]
call fcn.00406f78
test ebx, ebx
je 0x407122
dec ebx
jmp 0x407104
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407149
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x407150
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405268
add esp, 0x104
pop ebx
ret

Function at 0x40717c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405268
add esp, 0x104
pop ebx
ret
Function at 0x4072c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4073fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4073e6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407321
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073e6
cmp dword [ebp - 0x10], 0
jne 0x407336
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x4073e6
cmp dword [ebp - 0x10], 0x70000000
jb 0x407344
call fcn.00405d0c
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x4072ea
test eax, eax
jne 0x4073e6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407394
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073e6
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x40739f
dec esi
test esi, esi
je 0x4073ad
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x40739e
cmp dword [ebp - 0xc], 7
jne 0x4073b8
test esi, esi
je 0x4073b8
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x4073d9
test esi, esi
je 0x4073d9
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407403
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x407d44
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d560
mov eax, esi
mov edx, 8
test al, 1
je 0x407d60
shr eax, 1
xor eax, 0xedb88320
jmp 0x407d62
shr eax, 1
dec edx
jne 0x407d53
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407d4c
pop esi
ret

Function at 0x407d78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d55c], 0
jne 0x407d9b
call fcn.00407d44
push 1
push 0x40d55c
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407dc6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d560]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407da1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x409470
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.00409424
test al, al
jne 0x409491
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4094dd
xor eax, eax
push ebp
push 0x4094cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094d4
lea eax, [ebp - 0xc]
call fcn.00409460
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409808
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4098f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004071a8
mov edx, dword [ebp - 8]
mov ecx, 0x409910
xor eax, eax
call fcn.004096fc
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4098c5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409828
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040928c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040511c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407738
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.0040925c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404ae8
call fcn.00405d18
call fcn.00402eb4
jmp 0x409828
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098fe
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409920
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40c07c], 2
jne 0x409987
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409942
xor eax, eax
jmp 0x409996
lea eax, [esp + 8]
push eax
push 0x40999c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
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_1
test eax, eax
je 0x409987
xor eax, eax
jmp 0x409996
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x4099b0
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 0x409a0a
inc esi
xor edi, edi
cmp edi, 1
jne 0x4099d6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4099e4
cmp edi, 1
jle 0x4099e4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00409470
test eax, eax
jne 0x409a0a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409a0a
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409a0a
inc edi
dec esi
jne 0x4099c6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x409a14
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x409a61
xor ebx, ebx
jmp 0x409a56
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.004050c8
test eax, eax
jne 0x409a55
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409b11
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409a37
mov al, byte [ebp - 1]
sub al, 1
jb 0x409a6c
je 0x409a75
jmp 0x409a7e
call fcn.004074d8
mov edi, eax
jmp 0x409a80
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x409a80
xor edi, edi
test di, di
je 0x409b11
xor ebx, ebx
jmp 0x409abc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x409abb
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409ab0
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x409abb
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409b11
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409a8d
xor ebx, ebx
jmp 0x409b06
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x409b05
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409afa
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x409b05
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409b11
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409acb
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x409ec4
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 0x409f97
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409fb0
push ebx
push 0x409fbc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
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.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409f44
mov al, 0x6a
call fcn.00409b20
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409e98
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409f4d
call fcn.00409e98
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 0x409f9e
lea eax, [ebp - 4]
call fcn.00403198
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a104
jmp 0x40a0f9
cmp dword [esi + 0x10], 0x1000
jne 0x40a0e5
test byte [esi + 0x15], 1
jne 0x40a0e5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40a0a4
cmp eax, 2
je 0x40a0a4
cmp eax, 0x10
je 0x40a0a4
cmp eax, 0x20
jne 0x40a0b9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40a0b9
mov bl, 1
xor ebp, ebp
jmp 0x40a0ca
mov eax, dword [esi]
add eax, ebp
call fcn.0040a048
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40a0bd
test bl, bl
je 0x40a0e5
push esp
mov eax, dword [esp + 4]
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 ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a104
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40a07c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402ece
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040650f
xor ebx, ebx
cmp eax, ebx
jne 0x402fb1
test byte [ebp + 0x10], 2
je 0x402f2f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f96
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f6b
test edi, edi
jne 0x402f96
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ece
test eax, eax
jne 0x402f74
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a96
test eax, eax
jne 0x402fa6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402fb1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402fb1
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403396
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033c1
mov ecx, dword [0x46c2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040349e
cmp eax, esi
jl 0x403498
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00406215
test eax, eax
je 0x403488
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.0040349e
mov ebx, eax
cmp ebx, esi
jl 0x403496
cmp dword [ebp + 0x10], esi
jne 0x403464
cmp dword [ebp + 8], esi
jle 0x403496
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403426
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00406215
test eax, eax
je 0x403488
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406244
test eax, eax
je 0x403460
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403415
jmp 0x403496
push 0xfffffffffffffffe
jmp 0x40348a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40346f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40348d
push 0xfffffffffffffffd
pop eax
jmp 0x403498
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c85
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45a750], 0x44
push eax
xor eax, eax
push 0x45a750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405cc4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405cc8
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405d66
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040616d
mov edi, eax
cmp edi, 0xffffffff
je 0x405da7
test byte [esp + 0x10], 1
push esi
je 0x405d89
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d8f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d98
xor eax, eax
inc eax
jmp 0x405da9
test byte [esp + 0x10], 4
jne 0x405da7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405dae
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00406079
test bl, 8
mov dword [ebp - 8], eax
je 0x405ded
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46c2e8], eax
jmp 0x405f6a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405e07
test eax, eax
je 0x405f18
test bl, 2
je 0x405f18
mov esi, 0x452750
push edi
push esi
call fcn.004066a2
cmp dword [ebp + 8], 0
je 0x405e26
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405e2c
push edi
call fcn.00405fbd
cmp word [edi], 0
jne 0x405e3c
cmp word [0x452750], 0x5c
jne 0x405e47
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f0d
cmp word [ebp - 0x22c], 0x2e
jne 0x405e91
cmp word [ebp - 0x22a], 0
je 0x405ef0
cmp word [ebp - 0x22a], 0x2e
jne 0x405e91
cmp word [ebp - 0x228], 0
je 0x405ef0
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004066a2
test byte [ebp - 0x258], 0x10
je 0x405ebc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ef0
push dword [ebp + 0xc]
push edi
call fcn.00405dae
jmp 0x405ef0
push dword [ebp - 4]
push edi
call fcn.00405d66
test eax, eax
jne 0x405ee8
cmp dword [ebp - 4], eax
je 0x405ee0
push edi
push 0xfffffffffffffff1
call fcn.00405727
push 0
push edi
call fcn.00406462
jmp 0x405ef0
inc dword [0x46c2e8]
jmp 0x405ef0
push edi
push 0xfffffffffffffff2
call fcn.00405727
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e69
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f18
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f6a
cmp dword [ebp - 8], esi
jne 0x405f2c
inc dword [0x46c2e8]
jmp 0x405f6a
push edi
call fcn.004069ff
test eax, eax
je 0x405f6a
push edi
call fcn.00405f71
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d66
test eax, eax
jne 0x405f62
cmp dword [ebp - 4], esi
je 0x405f24
push edi
push 0xfffffffffffffff1
call fcn.00405727
push esi
push edi
call fcn.00406462
jmp 0x405f6a
push edi
push 0xffffffffffffffe5
call fcn.00405727
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406079
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x456750
push esi
call fcn.004066a2
push esi
call fcn.0040601c
mov edi, eax
test edi, edi
jne 0x40609a
xor eax, eax
jmp 0x4060f2
push edi
call fcn.00406950
test byte [0x46c278], 0x80
je 0x4060b7
mov ax, word [edi]
test ax, ax
je 0x406096
cmp ax, 0x5c
je 0x406096
sub edi, esi
sar edi, 1
jmp 0x4060d1
call fcn.004069ff
test eax, eax
je 0x4060cb
test byte [eax], 0x10
je 0x406096
push esi
call fcn.00405fbd
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060bd
call fcn.00405f71
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40616d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40618c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406192
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4061c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406211
test edi, edi
jne 0x4061ce
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40620b