joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5522f8]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x568c0c], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x4be0f7
call edi
cmp dword [0x568ce8], eax
ja 0x4be0f7
cmp dword [0x568ce4], 0
je 0x4be094
lea eax, [esp + 0x14]
push eax
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004b9fb0
push eax
call fcn.004c80f0
mov edx, dword [eax]
call fcn.004c8100
mov ecx, dword [eax]
call fcn.004be380
add esp, 0xc
call fcn.004bb320
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div ecx
mov esi, eax
call edi
mov dword [0x568ce4], 0
jmp 0x4be0db
call fcn.004b9fb0
cmp eax, 1
jne 0x4be0e3
call fcn.004bafb0
test eax, eax
je 0x4be0e3
push 0
push 0
call fcn.004b9fb0
push eax
call fcn.004c80f0
mov edx, dword [eax]
call fcn.004c8100
mov ecx, dword [eax]
call fcn.004be380
add esp, 0xc
call fcn.004bb320
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div ecx
mov esi, eax
call edi
inc eax
add eax, esi
mov dword [0x568cd8], eax
mov dword [0x568c0c], 0
mov dword [0x568ce8], 0
cmp dword [0x568cfc], 0
je 0x4be16d
cmp dword [0x56ae90], 0
je 0x4be163
call fcn.004eef60
test eax, eax
jne 0x4be163
call fcn.004eef70
test eax, eax
jne 0x4be163
call fcn.004bffd0
test eax, eax
jne 0x4be163
call fcn.004b9fb0
neg eax
sbb esi, esi
inc esi
call fcn.004c80f0
mov edx, dword [eax]
call fcn.004c8100
push 0
push 0
push esi
mov ecx, dword [eax]
call fcn.004be380
add esp, 0xc
test eax, eax
je 0x4be163
push 0
call fcn.004b9fb0
mov edx, eax
mov ecx, 1
call fcn.004f7050
add esp, 4
mov dword [0x568cfc], 0
cmp dword [0x568cd8], 0
je 0x4be18f
call edi
cmp dword [0x568cd8], eax
ja 0x4be18f
call fcn.004be7a0
mov dword [0x568cd8], 0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4bfb70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.004bffd0
test eax, eax
je 0x4bfbce
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push dword [0x56916c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
lea eax, [ebp - 0x804]
push 0xffffffffffffffff
push eax
push edi
call fcn.004f5990
add esp, 0xc
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop edi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4bfc30
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.004bffd0
test eax, eax
je 0x4bfc99
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [0x56916c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
test edi, edi
push 0
cmovne eax, dword [0x569058]
push eax
push 0x30
push dword [0x56916c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x56ab2c]
call dword [sym.imp.IMM32.dll_ImmGetDefaultIMEWnd]
xor ecx, ecx
test edi, edi
push 0
setne cl
add ecx, 0x21
push ecx
push 0x283
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x569168], edi
pop edi
ret

Function at 0x4c08c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
lea eax, [ebp - 0x61c]
mov esi, ecx
push eax
call fcn.004f5d20
lea eax, [ebp - 0x61c]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c08f0
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4c091a
cmp word [ebp + eax*2 - 0x61e], 0x5c
je 0x4c091a
mov dword [ebp + eax*2 - 0x61c], 0x5c
lea ecx, [ebp - 0x61c]
call fcn.004c3500
test eax, eax
je 0x4c096b
push 0
push 0
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4c096b
mov ecx, dword [ebp - 0x624]
mov eax, dword [ebp - 0x620]
shrd ecx, eax, 0x14
mov eax, 1
mov dword [esi], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4c0980
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [edx]
push esi
push edi
push eax
lea eax, [ebp - 4]
mov esi, ecx
push str._c:_
push eax
call fcn.00401500
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 0
push 0
push 0
push 0
push 0x30c
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c0d10
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push esi
push eax
mov dword [ebp - 0x938], edx
mov dword [ebp - 0x93c], ecx
call fcn.004f5eb0
lea eax, [ebp - 0x310]
push eax
call fcn.004f5f10
mov cl, byte [ebp - 0x310]
add esp, 0xc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4c0f0f
cmp byte [ebp - 0x30f], 0x3a
jne 0x4c0f0f
movsx eax, cl
push eax
lea eax, [ebp - 0x310]
push str._c:_
push eax
call fcn.00401500
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0x930]
push eax
lea eax, [ebp - 0x948]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4c0efd
lea eax, [ebp - 0x928]
push esi
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x928]
push 0
push 0x28000020
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x92c], eax
cmp eax, 0xffffffff
je 0x4c0ee9
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4c0e07
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, dword [ebp - 0x930]
cmp esi, edi
jae 0x4c0e17
add esi, esi
cmp esi, edi
jb 0x4c0e11
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4c0ec6
push 0
lea eax, [ebp - 0x934]
push eax
push esi
mov esi, dword [ebp - 0x92c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c0e9b
cmp dword [ebp - 0x934], edi
mov eax, dword [ebp - 0x938]
cmovb edi, dword [ebp - 0x934]
push edi
push ebx
push dword [ebp - 0x93c]
mov dword [eax], edi
call fcn.00432810
add esp, 0xc
xor edi, edi
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x92c]
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c1580
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513a47
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc44], ecx
xor esi, esi
xor edi, edi
call fcn.004f1940
test eax, eax
je 0x4c15c8
call fcn.004f1990
mov edi, eax
push 0xc
call fcn.0042766b
mov edx, dword [ebp - 0xc44]
mov ebx, eax
add esp, 4
xorps xmm0, xmm0
mov ecx, ebx
movq qword [ebx], xmm0
mov dword [ebx + 8], esi
call fcn.004cf6f0
test eax, eax
je 0x4c16a1
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc40]
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x628]
push eax
push 0
push 0x535f04
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4c16a1
lea ecx, [ebp - 0xc50]
call fcn.0047db40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push 0
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047d790
test eax, eax
je 0x4c1682
lea ecx, [ebp - 0xc50]
call fcn.0047da80
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047d7e0
test eax, eax
je 0x4c1682
lea ecx, [ebp - 0xc50]
call fcn.0047da80
mov esi, 1
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc50]
call fcn.0047d9a0
mov ecx, ebx
call fcn.004d00e0
mov ecx, ebx
call fcn.004cefb0
test edi, edi
je 0x4c16c0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4c16e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x620]
xor esi, esi
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c177b
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x618
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push str.ProgramFilesDir
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c176f
cmp dword [ebp - 0x628], 1
jne 0x4c176f
push 1
lea eax, [ebp - 0x61c]
push eax
push edi
call fcn.004f5990
add esp, 0xc
mov esi, 1
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c1790
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb94
mov eax, dword [0x5522f8]
xor eax, esp
mov dword [esp + 0xb90], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x584]
mov dword [esp + 0x14], edx
mov ebx, ecx
mov dword [esp + 0x1c], 0
xor esi, esi
mov dword [esp + 0x20], ebx
push eax
xor edi, edi
mov dword [esp + 0x1c], esi
call fcn.004f5d20
add esp, 8
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4c1934
mov esi, dword [ebp + 0xc]
nop
test byte [esp + 0x20], 0x10
je 0x4c18da
mov ecx, 0x535efc
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c183a
test dx, dx
je 0x4c1836
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c183a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c1814
xor eax, eax
jmp 0x4c183f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c18d6
mov eax, 0x535ef4
lea ecx, [esp + 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4c1876
test dx, dx
je 0x4c1872
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4c1876
add ecx, 4
add eax, 4
test dx, dx
jne 0x4c1850
xor eax, eax
jmp 0x4c187b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c18d6
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004f5990
lea ecx, [esp + 0x27c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c18a0
sub ecx, edx
lea esi, [ecx + 1]
test ebx, ebx
je 0x4c18ce
cmp esi, dword [esp + 0x10]
ja 0x4c18fb
push esi
lea eax, [esp + 0x274]
push eax
push ebx
call fcn.00432810
add esp, 0xc
add ebx, esi
sub dword [esp + 0x10], esi
inc edi
add dword [esp + 0x14], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
test esi, esi
je 0x4c18e2
cmp edi, esi
jae 0x4c1903
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c1903
mov eax, dword [esp + 0xc]
jmp 0x4c1800
mov dword [esp + 0x18], 1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x4c192c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb90]
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb9c]
test ebx, ebx
cmovne esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c1d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x5522f8]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
cmp edi, 1
jb 0x4c1f15
mov ecx, 1
call fcn.004bb6e0
mov ecx, 1
call fcn.004fab10
push 0x30c
push 0
push ebx
call fcn.004326b0
add esp, 0xc
mov byte [esp + 0x78], 0
lea ebx, [esp + 0x78]
test edi, edi
je 0x4c1e1e
mov edi, dword [esp + 0xc]
sub edi, esi
mov dword [esp + 0xc], edi
push dword [edi + esi]
push dword [esi]
push str._s__s
push ebx
call fcn.00401500
mov ecx, dword [esi]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1de0
sub ecx, edx
mov byte [ecx + ebx], al
mov edx, dword [esi]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c1df1
mov eax, dword [edi + esi]
sub edx, ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c1e00
sub eax, edi
add ebx, 2
mov edi, dword [esp + 0xc]
add eax, edx
add ebx, eax
add esi, 4
sub dword [esp + 0x10], 1
jne 0x4c1dc5
push 0x58
lea eax, [esp + 0x24]
mov byte [ebx], 0
push 0
push eax
call fcn.004326b0
mov eax, dword [0x56ab2c]
xor ecx, ecx
mov edx, dword [ebp + 0x18]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp edx, 1
lea eax, [esp + 0x78]
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x2c], eax
sete cl
mov eax, dword [esp + 0x14]
mov esi, 0x1000
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea ecx, [ecx*2 + 0x804]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
xor eax, eax
test edx, edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 0x30c
cmove eax, esi
mov dword [esp + 0x5c], 0x5337dc
or ecx, eax
mov dword [esp + 0x54], ecx
sub edx, 0
je 0x4c1ede
sub edx, 1
je 0x4c1ed1
mov esi, 4
call fcn.004fab60
xor ecx, ecx
call fcn.004bb6e0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4c1ee9
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
call fcn.004fab60
xor ecx, ecx
call fcn.004bb6e0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
mov eax, 7
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c1fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x620], ecx
xor esi, esi
test esi, esi
jne 0x4c2081
mov ecx, 0x56a1b8
call fcn.004c3500
test eax, eax
je 0x4c2040
push dword [ebp - 0x620]
mov edx, 0x56a1b8
lea ecx, [ebp - 0x61c]
call fcn.004f5150
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c2040
mov esi, eax
shr esi, 4
not esi
and esi, 1
jne 0x4c1ff3
mov ecx, dword [0x56ab2c]
mov edx, ebx
push 0x41
push edi
call fcn.004b9330
add esp, 8
cmp eax, 2
jne 0x4c1ff3
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f9a90
mov ecx, dword [0x56ab2c]
mov edx, eax
push 0x124
push edi
call fcn.004b9330
add esp, 8
cmp eax, 6
jne 0x4c1ff3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4c20a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov edx, 0x56a1b8
lea ecx, [ebp - 0x61c]
call fcn.004f5150
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c2106
push 1
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.004f5990
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, 0x569198
call fcn.004c3500
test eax, eax
je 0x4c213a
push edi
mov edx, 0x569198
lea ecx, [ebp - 0x61c]
call fcn.004f5150
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c20df
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c21c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1258], ecx
mov ecx, ebx
push edi
call fcn.004c3500
test eax, eax
je 0x4c22d0
lea eax, [ebp - 0xc3c]
push esi
push eax
call fcn.004f5d20
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x624]
push 0x535d88
push eax
call fcn.004041f0
add esp, 0x18
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
xor edi, edi
shr esi, 4
not esi
and esi, 1
cmp dword [0x552f5c], edi
cmovne edi, dword [0x56a148]
test edi, edi
je 0x4c229d
test esi, esi
jne 0x4c22a1
push dword [edi]
mov edx, ebx
lea ecx, [ebp - 0x1254]
call fcn.004f5150
add esp, 4
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x624]
push str._s_s
push eax
call fcn.004041f0
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [edi + 4]
mov esi, eax
shr esi, 4
not esi
and esi, 1
test edi, edi
jne 0x4c2247
test esi, esi
je 0x4c22bd
mov eax, dword [ebp - 0x1258]
test eax, eax
je 0x4c22bd
push 1
lea ecx, [ebp - 0x624]
push ecx
push eax
call fcn.004f5990
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4c2300
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x61c]
push eax
call fcn.004f5d20
add esp, 8
lea ecx, [ebp - 0x61c]
call fcn.004c3500
test eax, eax
je 0x4c2355
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4c2650
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.004c80d0
movzx ecx, word [edi + 0xe]
call fcn.004f1c30
xor esi, esi
xor bh, bh
xor bl, bl
cmp dword [0x56ae40], esi
jle 0x4c268e
add bh, byte [esi + edi + 0x40]
xor bl, byte [esi + edi + 0x40]
call fcn.004f1c40
movzx eax, ax
sub byte [esi + edi + 0x40], al
inc esi
cmp esi, dword [0x56ae40]
jl 0x4c2671
call fcn.004c80c0
cmp byte [edi + 0x38], bh
jne 0x4c26a6
cmp byte [edi + 0x39], bl
jne 0x4c26a6
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4c27b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004c80d0
movzx ecx, word [esi + 0xe]
call fcn.004f1c30
mov ebx, dword [0x56ae40]
xor edi, edi
mov word [esi + 0x38], 0
test ebx, ebx
jle 0x4c27f6
call fcn.004f1c40
movzx eax, ax
add byte [edi + esi + 0x40], al
movzx eax, byte [edi + esi + 0x40]
add byte [esi + 0x38], al
movzx eax, byte [edi + esi + 0x40]
inc edi
xor byte [esi + 0x39], al
cmp edi, ebx
jl 0x4c27d5
call fcn.004f1c40
mov byte [esi + 0x3a], al
call fcn.004f1c40
pop edi
mov byte [esi + 0x3b], al
mov byte [esi + 0x3c], 1
pop esi
pop ebx
jmp fcn.004c80c0

Function at 0x4c3050
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4c30b8
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c3071
sub edx, esi
pop esi
push ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4c3097
push 0x535d6c
push 0x569e38
call fcn.00401500
add esp, 0xc
jmp 0x4c30a4
push 0x569e38
call fcn.004f5eb0
add esp, 8
push 0x569e38
push 0x56a1b8
call fcn.004f5d20
add esp, 8
jmp 0x4c311b
push 0x30c
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0043960d
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
push 0x535d88
push 0x56a1b8
call fcn.004041f0
push 1
push 0x56a1b8
push 0x569e38
call fcn.004f5990
add esp, 0x30
xor eax, eax
mov byte [0x569ac0], 0
push 0x56a1b8
mov word [0x569198], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x569e38
push 0x56ab30
call fcn.004f5eb0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret