joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c4c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 3
lea eax, [ebp - 4]
push esi
push eax
call fcn.004a9c60
movzx ecx, byte [ebp - 4]
push ecx
call fcn.004aa54b
add esp, 0x10
test eax, eax
je 0x47c4fd
cmp byte [ebp - 3], 0x3a
jne 0x47c4fd
movzx edx, byte [esi]
mov al, byte [edx + 0x5799a0]
mov byte [ebp - 4], al
mov word [ebp - 2], 0x5c
jmp 0x47c505
mov al, 0x5c
mov word [ebp - 4], 0x5c
cmp byte [0x544854], al
jne 0x47c516
mov eax, dword [0x544858]
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x47c54f
mov eax, dword [0x579aa4]
push str.zip_diagnostic:_GetVolumeInformation_failed_n
push eax
call fcn.004abd3d
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 4]
mov edx, 0xc
cmp edx, dword [ebp - 8]
mov byte [0x544854], cl
sbb eax, eax
inc eax
mov dword [0x544858], eax
mov esp, ebp
pop ebp
ret

Function at 0x47c570
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx eax, byte [esi]
push eax
call fcn.004aa54b
add esp, 4
test eax, eax
je 0x47c59c
cmp byte [esi + 1], 0x3a
je 0x47c5bc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea esi, [ebp - 0x20c]
push 3
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x214], esi
call fcn.004a9c60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 0x20d], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 3
lea ecx, [ebp - 0x108]
push 0x4dff1c
push ecx
call fcn.004ab103
add esp, 4
push eax
call fcn.004a93c0
add esp, 0xc
pop esi
test eax, eax
je 0x47c67d
push 4
lea edx, [ebp - 0x108]
push str.VFAT
push edx
call fcn.004a93c0
add esp, 0xc
test eax, eax
je 0x47c67d
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.004a93c0
add esp, 0xc
test eax, eax
je 0x47c67d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x47e500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x544814]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
jne 0x47e53e
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5192c4]
push eax
push esi
push ecx
call fcn.004aeb0a
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x47e61e
test edi, edi
jne 0x47e5eb
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 1
mov eax, dword [ebp + 0xc]
jne 0x47e58a
mov edx, dword [0x5192c4]
shr eax, 1
push eax
lea ebx, [esi + eax]
push ebx
push edx
call fcn.004aeb0a
mov edi, eax
add esp, 0xc
mov ecx, edi
cmp edi, 0xffffffff
je 0x47e61e
test edi, edi
je 0x47e61e
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
cmp al, 0xa
jne 0x47e583
mov word [esi - 1], 0xa0d
inc esi
inc edi
dec ecx
jne 0x47e571
sub esi, edi
jmp 0x47e5eb
mov ecx, dword [0x5192c4]
dec eax
push eax
push esi
push ecx
mov ebx, esi
call fcn.004aeb0a
mov edi, eax
add esp, 0xc
mov ecx, edi
cmp edi, 0xffffffff
je 0x47e61e
test edi, edi
je 0x47e61e
mov byte [edi + esi], 0xa
nop
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
cmp al, 0xd
jne 0x47e5c1
cmp byte [ebx], 0xa
jne 0x47e5c1
dec esi
dec edi
dec ecx
jne 0x47e5b0
test edi, edi
jne 0x47e5e1
mov edx, dword [0x5192c4]
push 1
push esi
push edx
call fcn.004aeb0a
add esp, 0xc
mov edi, 1
jmp 0x47e5eb
sub esi, edi
cmp byte [edi + esi - 1], 0x1a
jne 0x47e5eb
dec edi
mov eax, dword [0x5192c0]
push edi
push esi
push eax
call fcn.00463e50
mov dword [0x5192c0], eax
mov eax, dword [0x5192bc]
add eax, edi
add esp, 0xc
mov dword [0x5192bc], eax
cmp eax, edi
jae 0x47e61c
push 6
mov eax, str.file_exceeds_Zips_4GB_uncompressed_size_limit
call fcn.00475b00
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47fd10
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [0x544864], 0
push ebx
push esi
push edi
jne 0x47fda7
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x47fd36
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
push 0x544870
call ebx
mov esi, eax
test esi, esi
je 0x47fd72
push esi
push 0x544870
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x544864]
pop edi
pop esi
pop ebx
ret
push 0x57c0c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x124
push 0
push 0x5496e0
call fcn.004b2d10
add esp, 0xc
call fcn.00480230
push edi
mov dword [0x544864], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x480320
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, eax
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x53455c], eax
mov dword [0x534560], edx
mov dword [0x534564], esi
mov cl, byte [edi]
test cl, cl
je 0x48039a
push ebx
mov ebx, dword [0x579f80]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ebx + ecx*4]
inc edi
movzx ecx, al
add edx, ecx
imul edx, edx, 0x8088405
inc edx
mov ecx, edx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
mov dword [0x53455c], eax
mov dword [0x534560], edx
xor esi, dword [ebx + ecx*4]
mov dword [0x534564], esi
mov cl, byte [edi]
test cl, cl
jne 0x480351
pop ebx
pop edi
pop esi
ret
Function at 0x480640
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x54482c], 0
mov eax, dword [ebp + 0xc]
je 0x4806e2
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x4806e1
push ebx
mov ebx, dword [0x579f80]
push esi
jmp 0x480670
movsx eax, byte [edi]
mov esi, dword [0x53455c]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x534564]
shr esi, 8
xor esi, dword [ebx + eax*4]
mov edx, ecx
mov eax, esi
mov dword [0x53455c], eax
movzx eax, al
add eax, dword [0x534560]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x534560], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [ebx + eax*4]
or edx, 2
mov dword [0x534564], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
dec dword [ebp - 4]
jne 0x480670
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop edi
mov edx, dword [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.004b2229
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x480740
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5345e4]
push esi
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 4], eax
test eax, eax
jne 0x4807e7
push 0x544958
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x544880]
test eax, eax
je 0x48078f
mov dword [edi], eax
mov ecx, dword [eax + 0x60]
push 0x544958
mov dword [0x544880], ecx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop esi
ret
push 0x64
call fcn.004a90a2
mov esi, eax
add esp, 4
test esi, esi
je 0x4807d3
lea edx, [esi + 4]
push edx
mov dword [esi], vtable.omni_thread.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call fcn.00480c30
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi], vtable._internal_omni_thread_dummy.0
mov dword [esi + 0x60], 0
jmp 0x4807d5
xor esi, esi
mov eax, esi
push 0x544958
mov dword [edi], esi
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop esi
ret
Function at 0x4809d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x544978]
mov ecx, eax
inc eax
mov dword [0x544978], eax
test ecx, ecx
jne 0x480af3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5345e4], eax
cmp eax, 0xffffffff
jne 0x480a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4e45dc
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], eax
call fcn.004b2eef
push ebx
push esi
push edi
push 0x18
call fcn.004a90a2
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x480a35
push esi
call edi
mov dword [0x5345e0], esi
jmp 0x480a3b
mov dword [0x5345e0], ebx
push 0x60
call fcn.004a90a2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x480a66
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.omni_thread.0
call edi
push 1
call fcn.00480c30
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
jmp 0x480a68
xor esi, esi
push 2
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [esi + 0x44]
push edi
mov dword [esi + 0x1c], 1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x480aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4e45dc
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], eax
call fcn.004b2eef
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x5345e4]
push esi
push edx
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x480add
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
push 0x4e45dc
lea eax, [ebp + 8]
push eax
call fcn.004b2eef
mov ecx, dword [edi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4809f8
mov eax, dword [ebp + 8]
pop ebp
ret 4
Function at 0x480d70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
je 0x480d9a
xor al, al
mov byte [ebp - 1], al
push 0x4e4610
lea eax, [ebp - 1]
push eax
call fcn.004b2eef
mov edx, dword [0x544888]
lea ecx, [ebp - 8]
push ecx
push 4
push esi
push 0x480b60
push edx
push 0
mov dword [ebp - 8], 0
call fcn.004b2e4f
mov ecx, dword [ebp - 8]
add esp, 0x18
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
test eax, eax
jne 0x480de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4e45dc
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], eax
call fcn.004b2eef
mov ecx, dword [esi + 0x20]
sub ecx, 0
je 0x480e0e
dec ecx
je 0x480e0a
dec ecx
je 0x480e03
xor al, al
mov byte [ebp - 1], al
push 0x4e4610
lea eax, [ebp - 1]
push eax
call fcn.004b2eef
mov ecx, 2
jmp 0x480e13
xor ecx, ecx
jmp 0x480e13
mov ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x480e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4e45dc
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], eax
call fcn.004b2eef
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x480e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
push 0x4e45dc
lea eax, [ebp - 0xc]
push eax
call fcn.004b2eef
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x480e70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x480ea8
cmp eax, 2
je 0x480ea8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov byte [ebp - 1], al
push 0x4e4610
lea eax, [ebp - 1]
push eax
call fcn.004b2eef
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5345e4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop edi
cmp esi, eax
jne 0x480ed4
push 0x4e4610
lea edx, [ebp - 1]
xor al, al
push edx
mov byte [ebp - 1], al
call fcn.004b2eef
cmp dword [esi + 0x34], 0
je 0x480eed
xor al, al
mov byte [ebp - 1], al
push 0x4e4610
lea eax, [ebp - 1]
push eax
call fcn.004b2eef
mov ecx, dword [esi + 0x44]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x480f14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4e45dc
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
call fcn.004b2eef
test ebx, ebx
je 0x480f1d
mov eax, dword [esi + 0x4c]
mov dword [ebx], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esp, ebp
pop ebp
ret
Function at 0x480ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5345e4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x481043
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x34], 0
pop edi
je 0x48103d
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0
call fcn.004b2d8a
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [esi + 0x4c], ecx
push 0
call fcn.004b2d8a
add esp, 4
pop esi
pop ebp
ret
Function at 0x4928f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x492969
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004b29a0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x492940
sub eax, ebx
jmp 0x492942
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x492931
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x49295f
sub eax, ebx
jmp 0x492961
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x492950
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x492a3b
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, esi
add edx, dword [edi + 0x38]
mov esi, eax
push edx
call fcn.004927f0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x4929b3
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x4929c7
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4928f5
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x492a3b
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x492a0a
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x4929ee
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.004b2d10
add esp, 0xc
add ebx, esi
pop esi
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x492a3b
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x492a24
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.004b2d10
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebx
ret
Function at 0x495af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x495b15
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x495b2d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x495b5c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x495b9e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x495c72
sub edx, 0x10000
js 0x495c72
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x495b84
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x495b84
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x495bf5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x495bf2
add edx, 8
jne 0x495bd9
jmp 0x495c63
add edx, 4
test eax, 0xffff
jne 0x495c02
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x495c63
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x495c36
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x495b84
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x495c72
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x495b84
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x495c83
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4a8a2f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ea5e0]
jne 0x4a8a39
repz ret
jmp fcn.004b2f3e
Function at 0x4b07a2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x4b07ca
call fcn.004b076c
and dword [eax], 0
call fcn.004b0759
mov dword [eax], 0x16
call fcn.004b4fc3
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b07e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b077f
pop ecx
jmp 0x4b07c5
test byte [ebp + 0xc], 0x80
je 0x4b07f2
and eax, 0xfffffffe
jmp 0x4b07f5
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4b07d8
xor eax, eax
pop ebp
ret

Function at 0x4be3d9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004b3a9f
and dword [ebp - 0x14], 0
cmp dword [0x4ee424], 0
mov dword [ebp - 0x18], eax
jne 0x4be48c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4be534
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4be534
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ee424], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ee428], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ee42c], eax
call edi
push eax
call esi
mov dword [0x4ee434], eax
test eax, eax
je 0x4be48c
push 0x4cdc08
push ebx
call edi
push eax
call esi
mov dword [0x4ee430], eax
mov eax, dword [0x4ee430]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4be4e5
cmp dword [0x4ee434], ecx
je 0x4be4e5
push eax
call esi
push dword [0x4ee434]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4be4e5
test ebx, ebx
je 0x4be4e5
call edi
test eax, eax
je 0x4be4dc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4be4dc
test byte [ebp - 8], 1
jne 0x4be4e5
or dword [ebp + 0x10], 0x200000
jmp 0x4be518
mov eax, dword [0x4ee428]
cmp eax, dword [ebp - 0x18]
je 0x4be518
push eax
call esi
test eax, eax
je 0x4be518
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4be518
mov eax, dword [0x4ee42c]
cmp eax, dword [ebp - 0x18]
je 0x4be518
push eax
call esi
test eax, eax
je 0x4be518
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ee424]
call esi
test eax, eax
je 0x4be534
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4be536
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
leave
ret
Function at 0x4c0a3d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4c0a64
call fcn.004b076c
mov dword [eax], esi
call fcn.004b0759
push 0x16
pop esi
mov dword [eax], esi
call fcn.004b4fc3
mov eax, esi
jmp 0x4c0ab9
test dword [ebp + 0xc], 0xfffffff9
jne 0x4c0a4a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c0a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b077f
pop ecx
call fcn.004b0759
mov eax, dword [eax]
jmp 0x4c0ab9
test al, 0x10
jne 0x4c0ab7
test al, 1
je 0x4c0ab7
test byte [ebp + 0xc], 2
je 0x4c0ab7
call fcn.004b076c
mov dword [eax], 5
call fcn.004b0759
mov dword [eax], 0xd
jmp 0x4c0a88
xor eax, eax
pop esi
pop ebp
ret