joyce8/EMBER2024-capa huggingface dataset:
Function at 0x565460
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x248
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp]
push ecx
call fcn.00565500
add esp, 4
lea edx, [esp]
push edx
push 0
push 0x2be
call fcn.0056d4a0
add esp, 8
push eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x110]
push ecx
call fcn.005666f0
add esp, 0x258
ret

Function at 0x565550
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x685140]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5656c4
mov ebp, dword [esi + 0x372]
test ebp, ebp
jne 0x565580
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x5656c4
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, ebx
or ecx, edi
jne 0x565594
xor edi, edi
jmp 0x5655e2
test edi, edi
jl 0x5655ba
jg 0x5655a2
cmp ebx, 0x186a0
jbe 0x5655ba
push 0
push 0x64
push edi
push ebx
call fcn.0057d450
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
jmp 0x5655d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push 0x64
push ecx
push edx
call fcn.0057d500
push edi
push ebx
push edx
push eax
call fcn.0057d450
mov edi, eax
cmp edi, 0x64
jle 0x5655e2
mov edi, 0x64
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0xb10], edi
je 0x565671
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x206]
push ebx
push eax
call ebp
lea eax, [esi + 0x202]
lea ecx, [esi + 0x366]
mov dword [esi + 0x36e], eax
mov dword [esi + 0x36a], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0xb3c]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x56565d
mov eax, dword [esi + 0x92]
test eax, eax
je 0x56565d
push ecx
mov ecx, dword [esi + 0x37a]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5656af
mov dword [esi + 0x8e], 1
jmp 0x5656af
mov edx, dword [esi + 0x37a]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5656af
cmp dword [esi + 0xb3c], 0xc8
jl 0x56569c
mov eax, dword [esi + 0x92]
test eax, eax
je 0x56569c
mov eax, dword [esi + 0xb18]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb14]
jmp 0x56564d
mov ecx, dword [esi + 0xb18]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb14]
lea edx, [esi + 0x908]
push ebx
push edx
call ebp
push esi
call fcn.005669e0
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x5656d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x685140]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5656e7
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x372]
test ebx, ebx
jne 0x565700
mov eax, dword [esi + 0xb20]
test eax, eax
jne 0x565700
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x56570e
xor edi, edi
jmp 0x56574b
cmp ecx, 0x186a0
jle 0x56572f
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, dword [esp + 0x1c]
sar ecx, 5
mov edx, ecx
shr edx, 0x1f
add ecx, edx
jmp 0x56573c
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
cmp edi, 0x64
jle 0x56574b
mov edi, 0x64
xor ebp, ebp
mov dword [esi + 0xb1c], edi
test ebx, ebx
je 0x5657c7
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x206]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x202]
lea ecx, [esi + 0x366]
mov dword [esi + 0x36e], eax
push ecx
mov dword [eax], edi
mov eax, dword [esi + 0xb3c]
cmp eax, 0xc8
push ebp
mov dword [ecx], ebp
mov dword [esi + 0x36a], 0x164
push 0x4a
jl 0x5657b8
mov ecx, dword [esi + 0x37a]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x56581f
mov ebp, 1
mov dword [esi + 0x8e], ebp
jmp 0x56581f
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x56581f
mov eax, dword [esi + 0xb3c]
sub eax, 0x64
je 0x56580a
sub eax, 0x64
je 0x5657f3
sub eax, 0x64
je 0x5657f3
mov eax, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x56581f
mov ecx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x56581f
mov edx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push edx
push edi
push ebx
call dword [esi + 0xb20]
xor ebp, ebp
lea eax, [esi + 0xa0c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.005669e0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x565970
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20c
mov ecx, dword [eax + 0xb38]
push esi
test ecx, ecx
je 0x565a63
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 2
push 0x6c
call fcn.0056d4a0
add esp, 8
lea edx, [esp + 0x110]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x10c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x5659d6
lea eax, [esp + 8]
push 0x60b360
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push edx
call esi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x565a63
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x60e1bc
push esi
call edi
mov ebx, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x60e1bc
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x20c
ret
Function at 0x5666f0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x685140]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x566800
mov eax, dword [esi + 0x1ee]
test eax, eax
je 0x566800
cmp dword [esi + 0x1f6], 0xffffffff
jne 0x5667b0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x2bd
call fcn.0056d4a0
add esp, 8
lea edx, [esp + 0x114]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x566779
lea eax, [esp + 0xc]
push 0x60b360
push eax
call edi
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1f6], eax
je 0x566800
mov ecx, dword [esi + 0x1f6]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x218]
lea edx, [esp + 8]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0x1f6]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call edi
mov edx, dword [esi + 0x1f6]
lea ecx, [esp + 8]
push 0
push ecx
push 2
push 0x60e1bc
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x566810
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x160
mov al, byte [0x638420]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x685140]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x566853
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x160
ret
push ebx
mov ebx, dword [esp + 0x174]
mov eax, ebx
lea edx, [esi + 0x382]
neg eax
sbb eax, eax
push edx
and al, 0xf5
lea ecx, [esp + 0x74]
add eax, 0x6e
push eax
push str.dzprog32.exe___c__z__T_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esi + 0x37e], ebp
mov dword [esi + 0x37a], ebp
mov dword [esi + 0x372], ebp
rep stosd dword es:[edi], eax
mov eax, 1
add esp, 0x10
mov word [esp + 0x5c], ax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
push ebp
push 0x20
push ebp
push ebp
lea ecx, [esp + 0x8c]
push ebp
push ecx
push ebp
mov dword [esp + 0x54], 0x44
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x56692f
mov edx, dword [esp + 0x1c]
push 0x2710
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push 0x55f820
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x56692f
mov edi, 1
mov dword [esi + 0x37a], eax
mov dword [esi + 0x372], edi
mov dword [esi + 0x37e], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x160
ret

Function at 0x566940
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x685140]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5669d0
mov eax, dword [esi + 0x37a]
test eax, eax
je 0x5669d0
push ebx
push ebp
push edi
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x37a]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5669b8
test edi, edi
jne 0x5669b8
push esi
call fcn.005669e0
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x5669a7
mov edi, 1
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x56698a
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x372], eax
mov dword [esi + 0x37e], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x567a60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, dword [ebx + 0xd8c]
push edi
test eax, eax
jne 0x567a9f
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x2a]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x567a98
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x567b0f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jne 0x567a98
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x2a]
lea eax, [esp + 0x14]
shr edi, 1
push 0
add edi, esi
push eax
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x567a98
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x567a98
mov al, byte [edi]
cmp al, 0xa
jne 0x567ae2
mov byte [esi], 0xd
inc esi
mov byte [esi], al
jmp 0x567af7
mov byte [esi], al
mov dl, byte [edi]
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x567af9
mov al, byte [edi + 1]
mov byte [esi], al
inc esi
inc ebp
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x567ad4
sub esi, ebp
push ebx
push ebp
push esi
call fcn.00567fe0
mov edx, dword [ebx + 0x32]
mov ecx, dword [ebx + 0x3d26]
add esp, 0xc
add edx, ebp
mov dword [ebx + 0x3d2a], eax
mov dword [ebx + 0x32], edx
test ecx, ecx
mov eax, edx
jne 0x567b41
mov ecx, dword [ebx + 0x3a]
mov edx, dword [ebx + 0x36]
push 0
push eax
push ecx
push edx
jmp 0x567b4d
cmp eax, ebp
ja 0x567b5c
push 0
push 0
push 0
push 0x64
add ebx, 0x3c22
push ebx
call fcn.00565550
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x567fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x567ff0
or eax, 0xffffffff
pop esi
not eax
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, edx
dec edx
mov eax, dword [eax + 0x3d2a]
test esi, esi
not eax
je 0x56802a
push edi
lea esi, [edx + 1]
xor edx, edx
mov edi, eax
mov dl, byte [ecx]
and edi, 0xff
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x631de8]
xor eax, edx
inc ecx
dec esi
jne 0x56800b
pop edi
not eax
pop esi
ret
Function at 0x568b50
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
mov edx, dword [esi + 0xda0]
xor eax, eax
cmp edx, ebp
mov edx, dword [esp + 0x10]
sete al
push esi
push eax
push ecx
push edx
call fcn.00568a80
mov eax, dword [esi + 0x3c1e]
add esp, 0x10
cmp eax, ebp
je 0x568c87
cmp eax, dword [esi + 0xdb0]
je 0x568bcd
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x568ba6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0x3c1e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0x3c1e]
push ecx
call fcn.0057c9af
add esp, 4
mov dword [esi + 0x3c1e], ebp
jmp 0x568c87
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
cmp eax, 0xffffffff
je 0x568c87
mov edx, dword [esi + 0xdb8]
push edi
test byte [esi + 0xdf1], 0x80
mov dword [esp + 0x1c], edx
jne 0x568c77
mov edi, edx
push 0
push 0
push edi
push eax
call fcn.00560c50
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x568c75
cmp edx, ecx
jne 0x568c75
mov dword [esi + 0xdd0], edi
mov edi, dword [esi + 0xdbc]
test edi, edi
push esi
push ebx
je 0x568c50
push edi
call fcn.00570680
add esp, 0xc
test eax, eax
jne 0x568c75
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add eax, edx
lea edx, [eax + ecx + 0x2e]
mov ecx, dword [esi + 0xdd0]
add ecx, edx
inc ebp
mov dword [esi + 0xdd0], ecx
mov edi, dword [edi + 0x4e]
jmp 0x568c1a
mov eax, dword [esi + 0xdc8]
mov ecx, dword [esi + 0xdc4]
mov edx, dword [esi + 0xdd0]
push eax
mov eax, dword [esp + 0x28]
push ecx
sub edx, eax
push eax
push edx
push ebp
call fcn.00570a80
add esp, 0x1c
xor ebp, ebp
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
pop edi
mov eax, dword [esi + 0xda8]
cmp eax, ebp
je 0x568ca0
push eax
call fcn.0057c9af
add esp, 4
mov dword [esi + 0xda8], ebp
mov eax, dword [esi + 0xdac]
cmp eax, ebp
je 0x568cb3
push eax
call fcn.0057c9af
add esp, 4
mov eax, dword [esi + 0xdb0]
mov dword [esi + 0xdac], ebp
cmp eax, ebp
je 0x568ccc
push eax
call fcn.0057c9af
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 0xdb0], ebp
cmp eax, 3
je 0x568ce4
push esi
call fcn.00568800
add esp, 4
pop esi
pop ebp
pop ebx
ret
Function at 0x56bbf0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
mov ecx, dword [eax + 0x1e2]
test ecx, ecx
je 0x56bc10
mov eax, 1
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
test eax, eax
jl 0x56bc67
cmp eax, 0x1a
jg 0x56bc67
test eax, eax
jne 0x56bc29
call fcn.0056c830
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.0056c920
add esp, 8
test eax, eax
je 0x56bc5d
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x56bc58
mov eax, esi
pop esi
add esp, 0x104
ret
mov esi, 1
mov eax, esi
pop esi
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x56bc70
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x10]
cmp al, 0x5c
mov al, byte [esp + 0x11]
jne 0x56bcb9
cmp al, 0x5c
jne 0x56bcb9
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.00560000
test eax, eax
je 0x56bcc7
inc eax
push 0x5c
push eax
call fcn.00560000
test eax, eax
je 0x56bcc7
mov byte [eax + 1], 0
jmp 0x56bcc7
cmp al, 0x3a
jne 0x56bcc7
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x56bcf1
mov eax, closesocket
jmp 0x56bcff
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp]
test eax, 0x80000000
je 0x56bd0b
mov eax, closesocket
add esp, 0x114
ret
Function at 0x56bd20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x120]
mov dword [edi], 0xffffffff
mov al, byte [esi]
test al, al
jne 0x56bd55
mov eax, dword [esp + 0x118]
push esi
push eax
call fcn.0056c920
add esp, 8
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push edx
call fcn.0056d620
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x56bd84
lea eax, [esp + 0x10]
push 0x60b360
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x60d27c
push ecx
call ebp
mov esi, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x56be4a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
test al, 0x10
je 0x56bdd5
mov ecx, dword [esp + 0x128]
mov edx, dword [ecx + 0xd94]
test edx, edx
jne 0x56bdcf
test al, 6
jne 0x56bdd5
cmp byte [esi + 0x2c], 0x2e
jne 0x56bde1
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
je 0x56be36
jmp 0x56bdb4
mov ebx, dword [esp + 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push ebx
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.0056d620
add esp, 4
test eax, eax
jne 0x56be13
lea edx, [esp + 0x10]
push 0x60b360
push edx
call ebp
add esi, 0x2c
lea eax, [esp + 0x10]
push esi
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x56be4a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x56bf30
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x56bfa2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x56bf76
lea esi, [edi + 0x2c]
push 0x60ce54
push esi
call ebx
test eax, eax
je 0x56bf76
push 0x60ce50
push esi
call ebx
test eax, eax
jne 0x56bf87
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x56bf91
jmp 0x56bf56
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x56c040
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x24c
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
push ebp
push eax
xor esi, esi
call ebx
lea ecx, [esp + 0x18]
push ecx
call fcn.0056d620
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x56c084
lea edx, [esp + 0x18]
push 0x60b360
push edx
call edi
lea eax, [esp + 0x18]
push eax
call fcn.0056c680
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.0056d4a0
add esp, 8
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push 0x64
push eax
call fcn.00565550
add esp, 0x20
lea ecx, [esp + 0x18]
push ebp
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.0056d620
add esp, 4
test eax, eax
jne 0x56c0ec
lea eax, [esp + 0x18]
push 0x60b360
push eax
call edi
lea ecx, [esp + 0x18]
push 0x60d27c
push ecx
call edi
mov edx, dword [esp + 0x268]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x124]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
call fcn.0056bf30
add esp, 0x10
test eax, eax
je 0x56c1fa
mov esi, dword [esp + 0x264]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x11c]
test esi, esi
mov ebx, eax
je 0x56c14a
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x56c1bc
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call fcn.0056d620
add esp, 4
test eax, eax
jne 0x56c178
lea edx, [esp + 0x18]
push 0x60b360
push edx
call edi
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x11c]
je 0x56c19c
lea edx, [esp + 0x18]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0x1c]
push 0x64
push eax
call fcn.005656d0
add esp, 0xc
test eax, eax
jne 0x56c1e2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x268]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x120]
push eax
push ecx
call fcn.0056bfb0
add esp, 0xc
test eax, eax
je 0x56c1e6
jmp 0x56c139
xor esi, esi
jmp 0x56c1ea
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x56c1fa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x56c860
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
mov cl, byte [eax + 0xdf0]
push esi
test cl, 1
je 0x56c883
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x110]
xor esi, esi
test eax, eax
jne 0x56c895
call fcn.0056c830
add al, 0x40
lea edx, [esp + 4]
movsx ecx, al
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push 0
push 0x6322a4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x56c90a
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x1c]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x56c90a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x56d240
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov eax, dword [edi + 0x96]
cmp eax, 0xffffffff
je 0x56d278
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x56d278
test ecx, ecx
jl 0x56d278
mov eax, dword [edi + 0x19e]
pop edi
sub eax, ecx
pop esi
ret
mov eax, esi
pop edi
pop esi
ret