joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55c350
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6788a0]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x55c367
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x372]
test ebx, ebx
jne 0x55c380
mov eax, dword [esi + 0xb20]
test eax, eax
jne 0x55c380
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x55c38e
xor edi, edi
jmp 0x55c3cb
cmp ecx, 0x186a0
jle 0x55c3af
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 0x55c3bc
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 0x55c3cb
mov edi, 0x64
xor ebp, ebp
mov dword [esi + 0xb1c], edi
test ebx, ebx
je 0x55c447
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 0x55c438
mov ecx, dword [esi + 0x37a]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x55c49f
mov ebp, 1
mov dword [esi + 0x8e], ebp
jmp 0x55c49f
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x55c49f
mov eax, dword [esi + 0xb3c]
sub eax, 0x64
je 0x55c48a
sub eax, 0x64
je 0x55c473
sub eax, 0x64
je 0x55c473
mov eax, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x55c49f
mov ecx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x55c49f
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.0055d6a0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x55c5f0
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 0x55c6e3
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 2
push 0x6c
call fcn.00564160
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 0x55c656
lea eax, [esp + 8]
push 0x600360
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 0x55c6e3
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 0x603184
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 0x603184
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 0x55d370
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6788a0]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x55d480
mov eax, dword [esi + 0x1ee]
test eax, eax
je 0x55d480
cmp dword [esi + 0x1f6], 0xffffffff
jne 0x55d430
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x2bd
call fcn.00564160
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 0x55d3f9
lea eax, [esp + 0xc]
push 0x600360
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 0x55d480
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 0x603184
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x55d4d0
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x160
mov al, byte [0x62cce0]
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 [0x6788a0]
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 0x55d513
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 0x55d5ef
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 0x55d490
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 0x55d5ef
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 0x55d600
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x6788a0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x55d690
mov eax, dword [esi + 0x37a]
test eax, eax
je 0x55d690
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 0x55d678
test edi, edi
jne 0x55d678
push esi
call fcn.0055d6a0
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x55d667
mov edi, 1
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x55d64a
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 0x55e720
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 0x55e75f
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 0x55e758
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x55e7cf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jne 0x55e758
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 0x55e758
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x55e758
mov al, byte [edi]
cmp al, 0xa
jne 0x55e7a2
mov byte [esi], 0xd
inc esi
mov byte [esi], al
jmp 0x55e7b7
mov byte [esi], al
mov dl, byte [edi]
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x55e7b9
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 0x55e794
sub esi, ebp
push ebx
push ebp
push esi
call fcn.0055eca0
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 0x55e801
mov ecx, dword [ebx + 0x3a]
mov edx, dword [ebx + 0x36]
push 0
push eax
push ecx
push edx
jmp 0x55e80d
cmp eax, ebp
ja 0x55e81c
push 0
push 0
push 0
push 0x64
add ebx, 0x3c22
push ebx
call fcn.0055c1d0
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x55ecb0
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 0x55ecea
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 + 0x6266c0]
xor eax, edx
inc ecx
dec esi
jne 0x55eccb
pop edi
not eax
pop esi
ret
Function at 0x55f810
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.0055f740
mov eax, dword [esi + 0x3c1e]
add esp, 0x10
cmp eax, ebp
je 0x55f947
cmp eax, dword [esi + 0xdb0]
je 0x55f88d
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x55f866
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.005737ff
add esp, 4
mov dword [esi + 0x3c1e], ebp
jmp 0x55f947
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
cmp eax, 0xffffffff
je 0x55f947
mov edx, dword [esi + 0xdb8]
push edi
test byte [esi + 0xdf1], 0x80
mov dword [esp + 0x1c], edx
jne 0x55f937
mov edi, edx
push 0
push 0
push edi
push eax
call fcn.00565650
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x55f935
cmp edx, ecx
jne 0x55f935
mov dword [esi + 0xdd0], edi
mov edi, dword [esi + 0xdbc]
test edi, edi
push esi
push ebx
je 0x55f910
push edi
call fcn.005674d0
add esp, 0xc
test eax, eax
jne 0x55f935
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 0x55f8da
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.005678d0
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 0x55f960
push eax
call fcn.005737ff
add esp, 4
mov dword [esi + 0xda8], ebp
mov eax, dword [esi + 0xdac]
cmp eax, ebp
je 0x55f973
push eax
call fcn.005737ff
add esp, 4
mov eax, dword [esi + 0xdb0]
mov dword [esi + 0xdac], ebp
cmp eax, ebp
je 0x55f98c
push eax
call fcn.005737ff
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 0xdb0], ebp
cmp eax, 3
je 0x55f9a4
push esi
call fcn.0055f4c0
add esp, 4
pop esi
pop ebp
pop ebx
ret
Function at 0x5628b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
mov ecx, dword [eax + 0x1e2]
test ecx, ecx
je 0x5628d0
mov eax, 1
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
test eax, eax
jl 0x562927
cmp eax, 0x1a
jg 0x562927
test eax, eax
jne 0x5628e9
call fcn.005634f0
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.005635e0
add esp, 8
test eax, eax
je 0x56291d
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x562918
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 0x562930
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 0x562979
cmp al, 0x5c
jne 0x562979
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.005642e0
test eax, eax
je 0x562987
inc eax
push 0x5c
push eax
call fcn.005642e0
test eax, eax
je 0x562987
mov byte [eax + 1], 0
jmp 0x562987
cmp al, 0x3a
jne 0x562987
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 0x5629b1
mov eax, closesocket
jmp 0x5629bf
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp]
test eax, 0x80000000
je 0x5629cb
mov eax, closesocket
add esp, 0x114
ret
Function at 0x5629e0
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 0x562a15
mov eax, dword [esp + 0x118]
push esi
push eax
call fcn.005635e0
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.00564360
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x562a44
lea eax, [esp + 0x10]
push 0x600360
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x602274
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 0x562b0a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
test al, 0x10
je 0x562a95
mov ecx, dword [esp + 0x128]
mov edx, dword [ecx + 0xd94]
test edx, edx
jne 0x562a8f
test al, 6
jne 0x562a95
cmp byte [esi + 0x2c], 0x2e
jne 0x562aa1
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
je 0x562af6
jmp 0x562a74
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.00564360
add esp, 4
test eax, eax
jne 0x562ad3
lea edx, [esp + 0x10]
push 0x600360
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 0x562b0a
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 0x562bf0
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 0x562c62
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x562c36
lea esi, [edi + 0x2c]
push 0x601e2c
push esi
call ebx
test eax, eax
je 0x562c36
push 0x601e28
push esi
call ebx
test eax, eax
jne 0x562c47
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x562c51
jmp 0x562c16
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 0x562d00
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.00564360
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x562d44
lea edx, [esp + 0x18]
push 0x600360
push edx
call edi
lea eax, [esp + 0x18]
push eax
call fcn.00563340
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.00564160
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.0055c1d0
add esp, 0x20
lea ecx, [esp + 0x18]
push ebp
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.00564360
add esp, 4
test eax, eax
jne 0x562dac
lea eax, [esp + 0x18]
push 0x600360
push eax
call edi
lea ecx, [esp + 0x18]
push 0x602274
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.00562bf0
add esp, 0x10
test eax, eax
je 0x562eba
mov esi, dword [esp + 0x264]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x11c]
test esi, esi
mov ebx, eax
je 0x562e0a
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x562e7c
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call fcn.00564360
add esp, 4
test eax, eax
jne 0x562e38
lea edx, [esp + 0x18]
push 0x600360
push edx
call edi
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x11c]
je 0x562e5c
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.0055c350
add esp, 0xc
test eax, eax
jne 0x562ea2
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.00562c70
add esp, 0xc
test eax, eax
je 0x562ea6
jmp 0x562df9
xor esi, esi
jmp 0x562eaa
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x562eba
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 0x563520
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 0x563543
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x110]
xor esi, esi
test eax, eax
jne 0x563555
call fcn.005634f0
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 0x626b7c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5635ca
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 0x5635ca
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 0x563f00
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 0x563f38
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 0x563f38
test ecx, ecx
jl 0x563f38
mov eax, dword [edi + 0x19e]
pop edi
sub eax, ecx
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x563f40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, 0xa
mov eax, dword [esi + 0x96]
mov dword [esp + 0xc], edi
cmp eax, 0xffffffff
je 0x564117
mov ecx, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, ebp
je 0x564117
cmp dword [ecx], 0xffffffff
je 0x564117
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x564117
mov eax, dword [esi + 0x96]
push ebx
push 2
push ebp
push ebp
push eax
call fcn.00565650
mov ebx, edx
add esp, 0x10
cmp ebx, ebp
mov dword [esp + 0x18], eax
jg 0x563fb2
jl 0x563fac
cmp eax, ebp
jae 0x563fb2
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov ecx, dword [esi + 0x96]
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5640d7
push 0x7800
mov dword [esp + 0x14], ebp
call fcn.005738e8
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x563fe9
mov dword [esp + 0x10], 4
mov edx, dword [esi + 0xdb0]
push esi
push edx
call fcn.00562930
cdq
add esp, 8
cmp edx, ebx
jl 0x5640b4
jg 0x56400e
cmp eax, dword [esp + 0x18]
jb 0x5640b4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5640b8
test ebx, ebx
jl 0x5640b8
jg 0x564030
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x5640b8
push esi
call fcn.0055c4c0
add esp, 4
test eax, eax
jne 0x5640aa
mov ecx, dword [esi + 0x96]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x7800
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5640a0
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, eax
jne 0x56406c
mov dword [esp + 0x18], eax
xor ebx, ebx
jmp 0x56401a
lea edx, [esp + 0x14]
push 0
push edx
push eax
mov eax, dword [esp + 0x30]
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5640a0
cmp dword [esp + 0x14], edi
jne 0x5640a0
mov ecx, dword [esp + 0x18]
mov eax, edi
cdq
sub ecx, eax
mov dword [esp + 0x18], ecx
sbb ebx, edx
jmp 0x56401a
mov dword [esp + 0x10], 0xa
jmp 0x5640b8
mov dword [esp + 0x10], 9
jmp 0x5640b8
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test ebp, ebp
je 0x5640d2
push ebp
call fcn.005737ff
add esp, 4
mov edi, 0xa
mov ecx, dword [esi + 0x96]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
je 0x564113
push 0
push 0x8000080
push 2
push 0
push 0
lea edx, [esi + 0x9a]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x96], eax
jne 0x564117
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0xdb0]
push esi
push eax
call fcn.00562930
add esp, 8
test eax, eax
jg 0x564146
mov ecx, dword [esp + 0x20]
push esi
push 0xffffffffffffffff
push ecx
push 0
call fcn.00563770
add esp, 0x10
test eax, eax
mov eax, 9
jne 0x56414a
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x10
ret