joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd9b0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.004bdd50
test eax, eax
je 0x4bda19
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [0x560f4c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
test edi, edi
push 0
cmovne eax, dword [0x560e38]
push eax
push 0x30
push dword [0x560f4c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x562aa0]
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 [0x560f48], edi
pop edi
ret

Function at 0x4be640
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
lea eax, [ebp - 0x61c]
mov esi, ecx
push eax
call fcn.004f34d0
lea eax, [ebp - 0x61c]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be670
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4be69a
cmp word [ebp + eax*2 - 0x61e], 0x5c
je 0x4be69a
mov dword [ebp + eax*2 - 0x61c], 0x5c
lea ecx, [ebp - 0x61c]
call fcn.004c1280
test eax, eax
je 0x4be6eb
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 0x4be6eb
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.004259b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004259b7
mov esp, ebp
pop ebp
ret

Function at 0x4be700
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.004013a0
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 0x4bea90
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x54a2f8]
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.004f3660
lea eax, [ebp - 0x310]
push eax
call fcn.004f36c0
mov cl, byte [ebp - 0x310]
add esp, 0xc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4bec8f
cmp byte [ebp - 0x30f], 0x3a
jne 0x4bec8f
movsx eax, cl
push eax
lea eax, [ebp - 0x310]
push str._c:_
push eax
call fcn.004013a0
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 0x4bec7d
lea eax, [ebp - 0x928]
push esi
push eax
call fcn.004f34d0
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 0x4bec69
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4beb87
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, dword [ebp - 0x930]
cmp esi, edi
jae 0x4beb97
add esi, esi
cmp esi, edi
jb 0x4beb91
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4bec46
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 0x4bec1b
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.004310c0
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.004259b7
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.004259b7
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.004259b7
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004259b7
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004259b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
xor ecx, ebp
pop esi
call fcn.004259b7
mov esp, ebp
pop ebp
ret
Function at 0x4bf300
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cb57
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x54a2f8]
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.004ef0f0
test eax, eax
je 0x4bf348
call fcn.004ef140
mov edi, eax
push 0xc
call fcn.004259cd
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.004cd460
test eax, eax
je 0x4bf421
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc40]
push eax
call fcn.004f34d0
add esp, 8
lea eax, [ebp - 0x628]
push eax
push 0
push 0x52ece4
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bf421
lea ecx, [ebp - 0xc50]
call fcn.0047c2f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push 0
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047bf40
test eax, eax
je 0x4bf402
lea ecx, [ebp - 0xc50]
call fcn.0047c230
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047bf90
test eax, eax
je 0x4bf402
lea ecx, [ebp - 0xc50]
call fcn.0047c230
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.0047c150
mov ecx, ebx
call fcn.004cde50
mov ecx, ebx
call fcn.004ccd20
test edi, edi
je 0x4bf440
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.004259b7
mov esp, ebp
pop ebp
ret

Function at 0x4bf460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x54a2f8]
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 0x4bf4fb
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 0x4bf4ef
cmp dword [ebp - 0x628], 1
jne 0x4bf4ef
push 1
lea eax, [ebp - 0x61c]
push eax
push edi
call fcn.004f3140
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.004259b7
mov esp, ebp
pop ebp
ret
Function at 0x4bf510
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb94
mov eax, dword [0x54a2f8]
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.004f34d0
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 0x4bf6b4
mov esi, dword [ebp + 0xc]
nop
test byte [esp + 0x20], 0x10
je 0x4bf65a
mov ecx, 0x52ecdc
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bf5ba
test dx, dx
je 0x4bf5b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bf5ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bf594
xor eax, eax
jmp 0x4bf5bf
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bf656
mov eax, 0x52ecd4
lea ecx, [esp + 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4bf5f6
test dx, dx
je 0x4bf5f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4bf5f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4bf5d0
xor eax, eax
jmp 0x4bf5fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bf656
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004f3140
lea ecx, [esp + 0x27c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf620
sub ecx, edx
lea esi, [ecx + 1]
test ebx, ebx
je 0x4bf64e
cmp esi, dword [esp + 0x10]
ja 0x4bf67b
push esi
lea eax, [esp + 0x274]
push eax
push ebx
call fcn.004310c0
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 0x4bf662
cmp edi, esi
jae 0x4bf683
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4bf683
mov eax, dword [esp + 0xc]
jmp 0x4bf580
mov dword [esp + 0x18], 1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x4bf6ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb90]
xor ecx, esp
call fcn.004259b7
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.004259b7
mov esp, ebp
pop ebp
ret
Function at 0x4bfac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x54a2f8]
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 0x4bfc95
mov ecx, 1
call fcn.004b9460
mov ecx, 1
call fcn.004f7e30
push 0x30c
push 0
push ebx
call fcn.00430f60
add esp, 0xc
mov byte [esp + 0x78], 0
lea ebx, [esp + 0x78]
test edi, edi
je 0x4bfb9e
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.004013a0
mov ecx, dword [esi]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bfb60
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 0x4bfb71
mov eax, dword [edi + esi]
sub edx, ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bfb80
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 0x4bfb45
push 0x58
lea eax, [esp + 0x24]
mov byte [ebx], 0
push 0
push eax
call fcn.00430f60
mov eax, dword [0x562aa0]
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], 0x52c5dc
or ecx, eax
mov dword [esp + 0x54], ecx
sub edx, 0
je 0x4bfc5e
sub edx, 1
je 0x4bfc51
mov esi, 4
call fcn.004f7e80
xor ecx, ecx
call fcn.004b9460
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004259b7
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4bfc69
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.004f7e80
xor ecx, ecx
call fcn.004b9460
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004259b7
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.004259b7
mov esp, ebp
pop ebp
ret
Function at 0x4bfd50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x54a2f8]
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 0x4bfe01
mov ecx, 0x561f38
call fcn.004c1280
test eax, eax
je 0x4bfdc0
push dword [ebp - 0x620]
mov edx, 0x561f38
lea ecx, [ebp - 0x61c]
call fcn.004f2900
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bfdc0
mov esi, eax
shr esi, 4
not esi
and esi, 1
jne 0x4bfd73
mov ecx, dword [0x562aa0]
mov edx, ebx
push 0x41
push edi
call fcn.004b70d0
add esp, 8
cmp eax, 2
jne 0x4bfd73
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f6db0
mov ecx, dword [0x562aa0]
mov edx, eax
push 0x124
push edi
call fcn.004b70d0
add esp, 8
cmp eax, 6
jne 0x4bfd73
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004259b7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov edx, 0x561f38
lea ecx, [ebp - 0x61c]
call fcn.004f2900
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bfe86
push 1
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.004f3140
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004259b7
mov esp, ebp
pop ebp
ret
mov ecx, 0x561290
call fcn.004c1280
test eax, eax
je 0x4bfeba
push edi
mov edx, 0x561290
lea ecx, [ebp - 0x61c]
call fcn.004f2900
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bfe5f
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004259b7
mov esp, ebp
pop ebp
ret
Function at 0x4bff40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.00426620
mov eax, dword [0x54a2f8]
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.004c1280
test eax, eax
je 0x4c0050
lea eax, [ebp - 0xc3c]
push esi
push eax
call fcn.004f34d0
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x624]
push 0x52eb78
push eax
call fcn.00404640
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 [0x54af5c], edi
cmovne edi, dword [0x561bb8]
test edi, edi
je 0x4c001d
test esi, esi
jne 0x4c0021
push dword [edi]
mov edx, ebx
lea ecx, [ebp - 0x1254]
call fcn.004f2900
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.00404640
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 0x4bffc7
test esi, esi
je 0x4c003d
mov eax, dword [ebp - 0x1258]
test eax, eax
je 0x4c003d
push 1
lea ecx, [ebp - 0x624]
push ecx
push eax
call fcn.004f3140
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004259b7
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.004259b7
mov esp, ebp
pop ebp
ret

Function at 0x4c0080
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x61c]
push eax
call fcn.004f34d0
add esp, 8
lea ecx, [ebp - 0x61c]
call fcn.004c1280
test eax, eax
je 0x4c00d5
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.004259b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004259b7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.004c5e50
movzx ecx, word [edi + 0xe]
call fcn.004ef3e0
xor esi, esi
xor bh, bh
xor bl, bl
cmp dword [0x562db4], esi
jle 0x4c040e
add bh, byte [esi + edi + 0x40]
xor bl, byte [esi + edi + 0x40]
call fcn.004ef3f0
movzx eax, ax
sub byte [esi + edi + 0x40], al
inc esi
cmp esi, dword [0x562db4]
jl 0x4c03f1
call fcn.004c5e40
cmp byte [edi + 0x38], bh
jne 0x4c0426
cmp byte [edi + 0x39], bl
jne 0x4c0426
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4c0530
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004c5e50
movzx ecx, word [esi + 0xe]
call fcn.004ef3e0
mov ebx, dword [0x562db4]
xor edi, edi
mov word [esi + 0x38], 0
test ebx, ebx
jle 0x4c0576
call fcn.004ef3f0
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 0x4c0555
call fcn.004ef3f0
mov byte [esi + 0x3a], al
call fcn.004ef3f0
pop edi
mov byte [esi + 0x3b], al
mov byte [esi + 0x3c], 1
pop esi
pop ebx
jmp fcn.004c5e40

Function at 0x4c0dd0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.00426620
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4c0e38
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c0df1
sub edx, esi
pop esi
push ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4c0e17
push 0x52ec10
push 0x560f78
call fcn.004013a0
add esp, 0xc
jmp 0x4c0e24
push 0x560f78
call fcn.004f3660
add esp, 8
push 0x560f78
push 0x561f38
call fcn.004f34d0
add esp, 8
jmp 0x4c0e9b
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.00437b2d
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
push 0x52eb78
push 0x561f38
call fcn.00404640
push 1
push 0x561f38
push 0x560f78
call fcn.004f3140
add esp, 0x30
xor eax, eax
mov byte [0x561bc0], 0
push 0x561f38
mov word [0x561290], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x560f78
push 0x562aa8
call fcn.004f3660
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004259b7
mov esp, ebp
pop ebp
ret
Function at 0x4c0f30
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, edx
push ebx
mov dword [ebp - 0x9c4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x9c8], ecx
lea ecx, [ebp - 0x310]
push edi
mov dword [ebp - 0x9c0], eax
call fcn.004c1170
lea eax, [ebp - 0x310]
push eax
push 0
call fcn.004f34d0
add esp, 8
mov dword [ebp - 0x9bc], 1
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x9b0], esi
mov dword [ebp - 0x9ac], ebx
nop word [eax + eax]
mov dword [ebp - 0x9b8], 0
nop word [eax + eax]
test ebx, ebx
jne 0x4c1108
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425a0b
add esp, 4
mov dword [ebp - 0x9b4], eax
mov esi, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, esi
cmp word [eax], bx
je 0x4c1020
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4c1003
cmp eax, 2
jne 0x4c1010
mov dword [ebp + ebx*4 - 0x9a8], esi
inc ebx
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4c1010
cmp word [esi], ax
jne 0x4c0ff2
xor esi, esi
test ebx, ebx
jle 0x4c1073
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x9a8]
mov ecx, edi
call fcn.004c1280
test eax, eax
je 0x4c106e
push dword [ebp - 0x9c0]
mov edx, edi
lea ecx, [ebp - 0x928]
call fcn.004f2900
add esp, 4
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c1131
inc esi
cmp esi, ebx
jl 0x4c1030
mov esi, dword [ebp - 0x9b0]
mov ebx, dword [ebp - 0x9ac]
push dword [ebp - 0x9b4]
call fcn.004259c8
add esp, 4
test ebx, ebx
jne 0x4c10a2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f9f30
test eax, eax
js 0x4c1115
mov eax, dword [ebp - 0x9b8]
inc eax
mov dword [ebp - 0x9b8], eax
cmp eax, 0xa
jl 0x4c0fb0
test ebx, ebx
jne 0x4c1108
cmp dword [ebp + 0x10], ebx
je 0x4c1115
mov edi, dword [ebp - 0x9c4]
mov edx, dword [ebp - 0x9c8]
mov ecx, dword [0x562aa0]
push 0x41
push edi
call fcn.004b70d0
add esp, 8
cmp eax, 1
je 0x4c1108
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f6db0
mov ecx, dword [0x562aa0]
mov edx, eax
push 0x124
push edi
call fcn.004b70d0
add esp, 8
cmp eax, 6
je 0x4c1115
cmp dword [ebp - 0x9bc], 0
jne 0x4c0fa0
push esi
call fcn.004259c8
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004259b7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9b0]
push esi
push edi
push 0x52eb78
push 0x561290
call fcn.00404640
mov ebx, 1
mov dword [ebp - 0x9bc], 0
add esp, 0x10
mov dword [ebp - 0x9ac], ebx
jmp 0x4c107f