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

Disassembly:
push edi
mov edi, ecx
call fcn.004bc720
test eax, eax
je 0x4bc3e9
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [0x55df4c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
test edi, edi
push 0
cmovne eax, dword [0x55de38]
push eax
push 0x30
push dword [0x55df4c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x55faa0]
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 [0x55df48], edi
pop edi
ret

Function at 0x4bd010
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
lea eax, [ebp - 0x61c]
mov esi, ecx
push eax
call fcn.004f1eb0
lea eax, [ebp - 0x61c]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bd040
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4bd06a
cmp word [ebp + eax*2 - 0x61e], 0x5c
je 0x4bd06a
mov dword [ebp + eax*2 - 0x61c], 0x5c
lea ecx, [ebp - 0x61c]
call fcn.004bfc50
test eax, eax
je 0x4bd0bb
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 0x4bd0bb
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.00424b17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00424b17
mov esp, ebp
pop ebp
ret

Function at 0x4bd0d0
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.00401420
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 0x4bd460
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x5472f8]
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.004f2040
lea eax, [ebp - 0x310]
push eax
call fcn.004f20a0
mov cl, byte [ebp - 0x310]
add esp, 0xc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4bd65f
cmp byte [ebp - 0x30f], 0x3a
jne 0x4bd65f
movsx eax, cl
push eax
lea eax, [ebp - 0x310]
push str._c:_
push eax
call fcn.00401420
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 0x4bd64d
lea eax, [ebp - 0x928]
push esi
push eax
call fcn.004f1eb0
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 0x4bd639
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4bd557
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, dword [ebp - 0x930]
cmp esi, edi
jae 0x4bd567
add esi, esi
cmp esi, edi
jb 0x4bd561
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4bd616
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 0x4bd5eb
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.0042fea0
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.00424b17
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.00424b17
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.00424b17
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
xor ecx, ebp
pop esi
call fcn.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4bdcd0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a797
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x5472f8]
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.004edad0
test eax, eax
je 0x4bdd18
call fcn.004edb20
mov edi, eax
push 0xc
call fcn.00424b2d
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.004cbe30
test eax, eax
je 0x4bddf1
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc40]
push eax
call fcn.004f1eb0
add esp, 8
lea eax, [ebp - 0x628]
push eax
push 0
push 0x52cce4
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bddf1
lea ecx, [ebp - 0xc50]
call fcn.0047acf0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push 0
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047a940
test eax, eax
je 0x4bddd2
lea ecx, [ebp - 0xc50]
call fcn.0047ac30
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047a990
test eax, eax
je 0x4bddd2
lea ecx, [ebp - 0xc50]
call fcn.0047ac30
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.0047ab50
mov ecx, ebx
call fcn.004cc820
mov ecx, ebx
call fcn.004cb6f0
test edi, edi
je 0x4bde10
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.00424b17
mov esp, ebp
pop ebp
ret

Function at 0x4bde30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5472f8]
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 0x4bdecb
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 0x4bdebf
cmp dword [ebp - 0x628], 1
jne 0x4bdebf
push 1
lea eax, [ebp - 0x61c]
push eax
push edi
call fcn.004f1b20
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.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4bdee0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb94
mov eax, dword [0x5472f8]
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.004f1eb0
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 0x4be084
mov esi, dword [ebp + 0xc]
nop
test byte [esp + 0x20], 0x10
je 0x4be02a
mov ecx, 0x52ccdc
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bdf8a
test dx, dx
je 0x4bdf86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bdf8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bdf64
xor eax, eax
jmp 0x4bdf8f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4be026
mov eax, 0x52ccd4
lea ecx, [esp + 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4bdfc6
test dx, dx
je 0x4bdfc2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4bdfc6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4bdfa0
xor eax, eax
jmp 0x4bdfcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4be026
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004f1b20
lea ecx, [esp + 0x27c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bdff0
sub ecx, edx
lea esi, [ecx + 1]
test ebx, ebx
je 0x4be01e
cmp esi, dword [esp + 0x10]
ja 0x4be04b
push esi
lea eax, [esp + 0x274]
push eax
push ebx
call fcn.0042fea0
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 0x4be032
cmp edi, esi
jae 0x4be053
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4be053
mov eax, dword [esp + 0xc]
jmp 0x4bdf50
mov dword [esp + 0x18], 1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x4be07c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb90]
xor ecx, esp
call fcn.00424b17
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.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4be490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x5472f8]
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 0x4be665
mov ecx, 1
call fcn.004b7e40
mov ecx, 1
call fcn.004f6810
push 0x30c
push 0
push ebx
call fcn.0042fd40
add esp, 0xc
mov byte [esp + 0x78], 0
lea ebx, [esp + 0x78]
test edi, edi
je 0x4be56e
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.00401420
mov ecx, dword [esi]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be530
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 0x4be541
mov eax, dword [edi + esi]
sub edx, ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4be550
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 0x4be515
push 0x58
lea eax, [esp + 0x24]
mov byte [ebx], 0
push 0
push eax
call fcn.0042fd40
mov eax, dword [0x55faa0]
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], 0x52a5dc
or ecx, eax
mov dword [esp + 0x54], ecx
sub edx, 0
je 0x4be62e
sub edx, 1
je 0x4be621
mov esi, 4
call fcn.004f6860
xor ecx, ecx
call fcn.004b7e40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4be639
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.004f6860
xor ecx, ecx
call fcn.004b7e40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00424b17
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.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4be720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5472f8]
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 0x4be7d1
mov ecx, 0x55ef38
call fcn.004bfc50
test eax, eax
je 0x4be790
push dword [ebp - 0x620]
mov edx, 0x55ef38
lea ecx, [ebp - 0x61c]
call fcn.004f12e0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4be790
mov esi, eax
shr esi, 4
not esi
and esi, 1
jne 0x4be743
mov ecx, dword [0x55faa0]
mov edx, ebx
push 0x41
push edi
call fcn.004b5ab0
add esp, 8
cmp eax, 2
jne 0x4be743
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f5790
mov ecx, dword [0x55faa0]
mov edx, eax
push 0x124
push edi
call fcn.004b5ab0
add esp, 8
cmp eax, 6
jne 0x4be743
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424b17
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov edx, 0x55ef38
lea ecx, [ebp - 0x61c]
call fcn.004f12e0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4be856
push 1
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.004f1b20
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
mov ecx, 0x55e290
call fcn.004bfc50
test eax, eax
je 0x4be88a
push edi
mov edx, 0x55e290
lea ecx, [ebp - 0x61c]
call fcn.004f12e0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4be82f
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4be910
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.00425790
mov eax, dword [0x5472f8]
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.004bfc50
test eax, eax
je 0x4bea20
lea eax, [ebp - 0xc3c]
push esi
push eax
call fcn.004f1eb0
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x624]
push 0x52cb78
push eax
call fcn.00404110
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 [0x547f5c], edi
cmovne edi, dword [0x55ebb8]
test edi, edi
je 0x4be9ed
test esi, esi
jne 0x4be9f1
push dword [edi]
mov edx, ebx
lea ecx, [ebp - 0x1254]
call fcn.004f12e0
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.00404110
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 0x4be997
test esi, esi
je 0x4bea0d
mov eax, dword [ebp - 0x1258]
test eax, eax
je 0x4bea0d
push 1
lea ecx, [ebp - 0x624]
push ecx
push eax
call fcn.004f1b20
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00424b17
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.00424b17
mov esp, ebp
pop ebp
ret

Function at 0x4bea50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x61c]
push eax
call fcn.004f1eb0
add esp, 8
lea ecx, [ebp - 0x61c]
call fcn.004bfc50
test eax, eax
je 0x4beaa5
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.00424b17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00424b17
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.004c4820
movzx ecx, word [edi + 0xe]
call fcn.004eddc0
xor esi, esi
xor bh, bh
xor bl, bl
cmp dword [0x55fdb4], esi
jle 0x4bedde
add bh, byte [esi + edi + 0x40]
xor bl, byte [esi + edi + 0x40]
call fcn.004eddd0
movzx eax, ax
sub byte [esi + edi + 0x40], al
inc esi
cmp esi, dword [0x55fdb4]
jl 0x4bedc1
call fcn.004c4810
cmp byte [edi + 0x38], bh
jne 0x4bedf6
cmp byte [edi + 0x39], bl
jne 0x4bedf6
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4bef00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004c4820
movzx ecx, word [esi + 0xe]
call fcn.004eddc0
mov ebx, dword [0x55fdb4]
xor edi, edi
mov word [esi + 0x38], 0
test ebx, ebx
jle 0x4bef46
call fcn.004eddd0
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 0x4bef25
call fcn.004eddd0
mov byte [esi + 0x3a], al
call fcn.004eddd0
pop edi
mov byte [esi + 0x3b], al
mov byte [esi + 0x3c], 1
pop esi
pop ebx
jmp fcn.004c4810

Function at 0x4bf7a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.00425790
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4bf808
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf7c1
sub edx, esi
pop esi
push ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4bf7e7
push 0x52cc10
push 0x55df78
call fcn.00401420
add esp, 0xc
jmp 0x4bf7f4
push 0x55df78
call fcn.004f2040
add esp, 8
push 0x55df78
push 0x55ef38
call fcn.004f1eb0
add esp, 8
jmp 0x4bf86b
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.004367bd
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
push 0x52cb78
push 0x55ef38
call fcn.00404110
push 1
push 0x55ef38
push 0x55df78
call fcn.004f1b20
add esp, 0x30
xor eax, eax
mov byte [0x55ebc0], 0
push 0x55ef38
mov word [0x55e290], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x55df78
push 0x55faa8
call fcn.004f2040
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4bf900
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x5472f8]
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.004bfb40
lea eax, [ebp - 0x310]
push eax
push 0
call fcn.004f1eb0
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 0x4bfad8
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.00424b6b
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 0x4bf9f0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4bf9d3
cmp eax, 2
jne 0x4bf9e0
mov dword [ebp + ebx*4 - 0x9a8], esi
inc ebx
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4bf9e0
cmp word [esi], ax
jne 0x4bf9c2
xor esi, esi
test ebx, ebx
jle 0x4bfa43
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x9a8]
mov ecx, edi
call fcn.004bfc50
test eax, eax
je 0x4bfa3e
push dword [ebp - 0x9c0]
mov edx, edi
lea ecx, [ebp - 0x928]
call fcn.004f12e0
add esp, 4
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bfb01
inc esi
cmp esi, ebx
jl 0x4bfa00
mov esi, dword [ebp - 0x9b0]
mov ebx, dword [ebp - 0x9ac]
push dword [ebp - 0x9b4]
call fcn.00424b28
add esp, 4
test ebx, ebx
jne 0x4bfa72
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f8910
test eax, eax
js 0x4bfae5
mov eax, dword [ebp - 0x9b8]
inc eax
mov dword [ebp - 0x9b8], eax
cmp eax, 0xa
jl 0x4bf980
test ebx, ebx
jne 0x4bfad8
cmp dword [ebp + 0x10], ebx
je 0x4bfae5
mov edi, dword [ebp - 0x9c4]
mov edx, dword [ebp - 0x9c8]
mov ecx, dword [0x55faa0]
push 0x41
push edi
call fcn.004b5ab0
add esp, 8
cmp eax, 1
je 0x4bfad8
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f5790
mov ecx, dword [0x55faa0]
mov edx, eax
push 0x124
push edi
call fcn.004b5ab0
add esp, 8
cmp eax, 6
je 0x4bfae5
cmp dword [ebp - 0x9bc], 0
jne 0x4bf970
push esi
call fcn.00424b28
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00424b17
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9b0]
push esi
push edi
push 0x52cb78
push 0x55e290
call fcn.00404110
mov ebx, 1
mov dword [ebp - 0x9bc], 0
add esp, 0x10
mov dword [ebp - 0x9ac], ebx
jmp 0x4bfa4f