joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b3f50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
test dl, 1
je 0x5b3f62
mov eax, 1
test dl, 2
je 0x5b3f6a
or eax, 2
test dl, 4
je 0x5b3f72
or eax, 4
test dl, 8
je 0x5b3f7a
or eax, 0x10
test dl, 0x10
je 0x5b3f84
or eax, 0x400
test dl, 0x20
je 0x5b3f8e
or eax, 0x80
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret

Function at 0x5b4160
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
push ebx
push esi
or ebx, 0xffffffff
push edi
mov dword [ebp - 8], ecx
test edx, edx
je 0x5b4226
cmp dword [ebp + 0xc], 0x20
jne 0x5b4226
cmp dword [edx], 0x4957494e
jne 0x5b4226
lea eax, [ebp - 0x20]
test eax, eax
je 0x5b41a3
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
test eax, eax
je 0x5b41b6
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
test eax, eax
je 0x5b41c9
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
test eax, eax
je 0x5b41d5
mov edi, dword [edx + 0x1c]
jmp 0x5b41d8
mov edi, dword [ebp - 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x100
push ecx
call dword [0x649010]
mov esi, eax
test esi, esi
je 0x5b421d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [0x649008]
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b42e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x679b84]
push edi
mov edi, edx
mov ebx, ecx
test esi, esi
jne 0x5b432b
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
mov dword [0x679b84], esi
test esi, esi
je 0x5b4386
xor edx, edx
mov eax, ebx
div esi
test edx, edx
jne 0x5b4386
mov eax, edi
div esi
test edx, edx
jne 0x5b4386
mov eax, dword [ebp + 8]
div esi
test edx, edx
jne 0x5b4386
push 0x10
call fcn.005421d4
mov esi, eax
add esp, 4
test esi, esi
je 0x5b4386
mov ecx, dword [ebp + 8]
push 4
push 0x1000
lea eax, [ebx + edi]
add eax, ecx
push eax
push 0
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x5b438f
push esi
call fcn.00541b50
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b8cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5b8cd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5b8d25
test edi, edi
je 0x5b8d25
push edi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5b8d10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x5b8d10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push eax
call fcn.005b8810
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
push eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b98d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
imul esi, esi, 0x20c
push edi
cmp byte [esi + 0x650498], 0
mov dword [ebp - 4], ecx
jne 0x5b9917
push 0x100
lea edi, [esi + 0x65049a]
push edi
push dword [esi + 0x650490]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x5b9978
cmp eax, 0x100
ja 0x5b9978
mov ecx, dword [ebp - 4]
mov byte [esi + 0x650498], 1
cmp word [esi + 0x65049a], 0
push ebx
lea ebx, [esi + 0x65049a]
je 0x5b996f
mov esi, dword [esi + 0x650494]
inc esi
lea esi, [ecx + esi*2]
mov ecx, ebx
mov dword [ebp - 4], esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b9940
sub ecx, edx
mov edx, esi
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5b9954
mov edi, dword [ebp + 0xc]
sub edx, esi
sar edx, 1
lea eax, [ecx + 1]
add eax, edx
cmp eax, edi
jbe 0x5b998c
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [edi], ax
pop edi
mov byte [esi + 0x650498], 1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
mov edx, edi
call fcn.005c1c20
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, edi
call fcn.005c1c80
add esp, 8
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5ba7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7908
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x64e0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], vtable.CBuffer.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 8
jb 0x5ba8b1
mov edi, dword [ebp - 0x10]
test esi, esi
je 0x5ba89c
push esi
lea ecx, [ebp - 0x20]
call fcn.005a3870
test eax, eax
je 0x5ba8b1
push esi
push ebx
push eax
call fcn.005495a0
mov ecx, dword [ebp - 0x10]
mov eax, ecx
sub eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, dword [ebp - 0x18]
add eax, esi
cmp eax, dword [ebp - 0x14]
ja 0x5ba8b1
add ecx, esi
mov dword [ebp - 0x10], ecx
cmp edi, 0xffffffff
je 0x5ba8b1
push ecx
lea ecx, [ebp - 0x20]
call fcn.005ba4b0
add esp, 4
mov esi, eax
jmp 0x5ba8b3
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.CBuffer.0
test eax, eax
je 0x5ba8ca
push eax
call fcn.00541b50
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bb840
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, ecx
and al, 0xe4
movzx eax, al
neg eax
sbb eax, eax
and eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x28], eax
mov al, byte [ebp + 0x20]
and ecx, 0xe7
push 0x1c
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0xc], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
lea ecx, [ebp + 0xf]
push ecx
lea ecx, [ebp - 0x30]
push ecx
xor ecx, ecx
call dword [eax + 8]
cmp byte [ebp + 0xf], 0
je 0x5bb97a
cmp eax, 0xffffffff
je 0x5bb97a
lea esi, [eax + eax*4]
mov eax, dword [4]
cmp dword [eax + esi*8 + 0x1c], 0
lea ebx, [eax + esi*8]
jne 0x5bb990
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebx + 0x20], eax
ja 0x5bb990
call edi
mov ebx, dword [8]
dec ebx
mov edx, eax
mov dword [ebp + 0xc], edx
js 0x5bb97a
lea ecx, [ebx + ebx*4]
shl ecx, 3
mov esi, 4
mov dword [ebp + 0x20], ecx
mov esi, dword [esi]
add esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x5bb968
cmp dword [esi + 0x20], edx
ja 0x5bb968
mov ecx, 0xa
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x5bb91e
push eax
call fcn.00541b50
add esp, 4
lea eax, [ebp - 0x44]
push eax
call dword [0x649080]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5bb93c
cmp byte [ebp - 0x34], 0
je 0x5bb93c
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x5bb95b
mov ecx, dword [esi + 0x14]
call fcn.005b0940
push dword [esi]
call fcn.00541b50
push esi
call fcn.00541b50
add esp, 8
push ecx
push ebx
call fcn.0040cda0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
sub ecx, 0x28
dec ebx
mov dword [ebp + 0x20], ecx
mov esi, 4
jns 0x5bb8f5
mov esi, dword [ebp + 8]
push 0x1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [4]
mov edx, dword [ebp + 0x1c]
inc dword [eax + esi*8 + 0x1c]
mov eax, dword [4]
lea ecx, [eax + esi*8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
mov dword [esi], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 4], eax
test edx, edx
je 0x5bb97d
cmp byte [ebp + 0x20], 0
je 0x5bb97d
mov ecx, dword [ecx + 0x10]
push 0x1c
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5bd080
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov esi, ecx
push 0x12
push esi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
call edi
test eax, eax
je 0x5bd197
cmp dword [ebp - 0x20], 4
jb 0x5bd197
cmp dword [ebp - 0x1c], 3
jne 0x5bd197
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push esi
call edi
test eax, eax
jne 0x5bd197
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5bd184
push ebx
push dword [ebp - 0x18]
call fcn.005421d4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5bd183
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ebx
push 2
push esi
call edi
test eax, eax
je 0x5bd17a
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5bd17a
xor esi, esi
cmp dword [ebx], esi
jbe 0x5bd171
lea edi, [ebx + 4]
push dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5bd16d
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x5bd154
jmp 0x5bd171
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.00541b50
add esp, 4
pop ebx
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00541b41
mov esp, ebp
pop ebp
ret

Function at 0x5bd4d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [ebp - 0x120]
push esi
push eax
mov edi, ecx
call fcn.00546fa0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5bd543
mov eax, dword [ebp - 0x11c]
cmp eax, 5
ja 0x5bd53e
jne 0x5bd543
mov eax, dword [ebp - 0x118]
cmp eax, 1
ja 0x5bd53e
jne 0x5bd543
mov eax, 2
cmp ax, word [ebp - 0xc]
ja 0x5bd543
mov esi, 2
test edi, edi
je 0x5bd568
or esi, 0x80000000
push esi
mov ecx, edi
call fcn.005bd1f0
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
push esi
push 0
push str.SysInspectorLang.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00541b41
mov esp, ebp
pop ebp
ret
Function at 0x5bdc70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x653370]
push ebx
push esi
push edi
xor edi, edi
xor bl, bl
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], edi
cmp eax, 2
jne 0x5bdcea
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00546fa0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov dword [0x653370], eax
cmp eax, 1
jne 0x5bddb2
lea eax, [ebp - 0x11c]
push eax
push 1
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x5bddb2
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x128]
push eax
push 0x12
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x5bddb2
cmp dword [ebp - 0x12c], 4
jb 0x5bddb2
cmp dword [ebp - 0x128], 3
jne 0x5bddb2
mov esi, dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea eax, [ebp - 0x120]
push eax
push 2
push 2
push 0
push 0x2000000
push dword [ebp - 0x11c]
call esi
test eax, eax
je 0x5bddb2
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [ebp - 0x11c]
call fcn.005bd050
mov edi, eax
test edi, edi
je 0x5bddb2
lea eax, [ebp - 0x124]
push eax
push 2
push 2
push 0
push 0x2000000
push edi
call esi
test eax, eax
je 0x5bddb2
push dword [ebp - 0x124]
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x5bddb2
mov bl, 1
mov eax, dword [ebp - 0x124]
mov esi, dword [0x649008]
test eax, eax
je 0x5bddc5
push eax
call esi
test edi, edi
je 0x5bddcc
push edi
call esi
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x5bddd9
push eax
call esi
test bl, bl
jne 0x5bde06
mov edi, dword [ebp - 0x120]
test edi, edi
je 0x5bddf3
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541b41
mov esp, ebp
pop ebp
ret

Function at 0x5bdf20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x5bdf67
lea esi, [eax + esi*4]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x5bdf67
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5bdf70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
lea eax, [ebp - 0x10c]
push eax
push str.msvcr80.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push 0x80
push 3
push edi
push 1
push 0xa0000000
lea eax, [ebp - 0x10c]
push eax
call dword [0x6490e8]
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
je 0x5be114
push esi
push edi
push edi
push edi
push 0x1000020
push edi
push eax
call dword [0x649184]
mov esi, eax
mov dword [ebp - 0x110], esi
cmp esi, 0xffffffff
je 0x5be107
test esi, esi
je 0x5be107
push ebx
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x5be0ff
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x80]
mov eax, dword [eax + ebx + 0x84]
add eax, 0xffffffec
add eax, ecx
lea edi, [ecx + ebx]
add eax, ebx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], eax
cmp edi, eax
jae 0x5be0f6
mov eax, dword [edi + 0xc]
add eax, ebx
push str.kernel32.dll
push eax
call fcn.00544a97
add esp, 8
test eax, eax
je 0x5be0e4
mov esi, dword [edi + 0x10]
add esi, ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x5be0db
mov edi, esi
sub edi, ebx
lea ebx, [ebx]
cmp byte [0x65c1e6], 0
je 0x5be0c8
add ecx, 2
mov eax, str.GetLongPathNameW
add ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x5be0a3
test dl, dl
je 0x5be09f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x5be0a3
add ecx, 2
add eax, 2
test dl, dl
jne 0x5be083
xor eax, eax
jmp 0x5be0a8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5be0c8
push dword [0x64909c]
mov edx, edi
sar edx, 2
mov ecx, str.msvcr80.dll
call fcn.005bdf20
add esp, 4
test eax, eax
jne 0x5be125
mov ecx, dword [esi + 4]
add esi, 4
add edi, 4
test ecx, ecx
jne 0x5be070
mov edi, dword [ebp - 0x114]
add edi, 0x14
mov dword [ebp - 0x114], edi
cmp edi, dword [ebp - 0x118]
jb 0x5be040
mov esi, dword [ebp - 0x110]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [0x649008]
pop ebx
push dword [ebp - 0x11c]
call dword [0x649008]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x110]
mov edi, 1
jmp 0x5be0f8
Function at 0x5c0210
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5c023f
mov edx, dword [esi + 8]
push 0x20
call fcn.005b1970
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, 0x200
je 0x5c02c8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5c026a
mov eax, dword [ecx]
test eax, eax
je 0x5c026a
cmp eax, 1
je 0x5c028f
mov eax, dword [ecx + 4]
add eax, 8
add ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x5c0257
mov eax, dword [esi + 4]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x5c02d4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 4
push ecx
mov ecx, dword [esi + 4]
push 0x104
lea edx, [ebp - 0x20c]
call fcn.005b9dc0
add esp, 8
test al, al
jne 0x5c02c0
mov eax, 0x1388
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20c]
jmp 0x5c026d
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x5c02f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.005b2bf0
mov ecx, eax
call fcn.005be1f0
cmp eax, 0x2332
je 0x5c02f6
cmp eax, 0x2333
jne 0x5c02f8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00541b41
mov esp, ebp
pop ebp
ret 4

Function at 0x5c0340
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x5c037a
pop edi
pop esi
mov eax, 0x1b62
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 4], 0
jne 0x5c0398
pop edi
pop esi
mov eax, 0x232e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
test eax, 0x200
je 0x5c0422
mov ecx, dword [esi + 8]
mov edx, 1
call fcn.005afc70
test eax, eax
je 0x5c03f3
push ecx
mov ecx, dword [esi + 4]
push 0x104
lea edx, [ebp - 0x20c]
call fcn.005b9dc0
add esp, 8
test al, al
jne 0x5c03eb
pop edi
pop esi
mov eax, 0x1388
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x20c]
jmp 0x5c03f6
mov eax, dword [esi + 4]
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x5c0437
push ebx
push edi
mov ecx, esi
call fcn.005c14e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ebx
push edi
call fcn.005b1520
add esp, 0xc
test eax, eax
je 0x5c0404
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.005b2bf0
mov ecx, eax
call fcn.005be1f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541b41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5c0970
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ecx + 0x14]
sub esp, 0x10
test eax, eax
je 0x5c09d8
cmp byte [0x65c1e4], 0
lea ecx, [esp]
je 0x5c099d
push 0
push ecx
xor edx, edx
mov ecx, eax
call fcn.005b2770
add esp, 8
jmp 0x5c09f4
test ecx, ecx
je 0x5c09d4
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x5c09c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c09c5
or eax, 0xffffffff
jmp 0x5c09f4
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
xor eax, eax
jmp 0x5c09f4
mov eax, dword [ecx + 4]
test eax, eax
je 0x5c0a03
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [ecx + 8]
push ecx
mov ecx, eax
call fcn.005b4050
add esp, 0xc
test eax, eax
jne 0x5c0a03
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret