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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5462f8]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x55c9ec], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x4ba357
call edi
cmp dword [0x55cac8], eax
ja 0x4ba357
cmp dword [0x55cac4], 0
je 0x4ba2f4
lea eax, [esp + 0x14]
push eax
push dword [0x55eaa0]
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.004b6220
push eax
call fcn.004c4260
mov edx, dword [eax]
call fcn.004c4270
mov ecx, dword [eax]
call fcn.004ba5e0
add esp, 0xc
call fcn.004b7590
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div ecx
mov esi, eax
call edi
mov dword [0x55cac4], 0
jmp 0x4ba33b
call fcn.004b6220
cmp eax, 1
jne 0x4ba343
call fcn.004b7220
test eax, eax
je 0x4ba343
push 0
push 0
call fcn.004b6220
push eax
call fcn.004c4260
mov edx, dword [eax]
call fcn.004c4270
mov ecx, dword [eax]
call fcn.004ba5e0
add esp, 0xc
call fcn.004b7590
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div ecx
mov esi, eax
call edi
inc eax
add eax, esi
mov dword [0x55cab8], eax
mov dword [0x55c9ec], 0
mov dword [0x55cac8], 0
cmp dword [0x55cadc], 0
je 0x4ba3cd
cmp dword [0x55edcc], 0
je 0x4ba3c3
call fcn.004ea5f0
test eax, eax
jne 0x4ba3c3
call fcn.004ea600
test eax, eax
jne 0x4ba3c3
call fcn.004bc220
test eax, eax
jne 0x4ba3c3
call fcn.004b6220
neg eax
sbb esi, esi
inc esi
call fcn.004c4260
mov edx, dword [eax]
call fcn.004c4270
push 0
push 0
push esi
mov ecx, dword [eax]
call fcn.004ba5e0
add esp, 0xc
test eax, eax
je 0x4ba3c3
push 0
call fcn.004b6220
mov edx, eax
mov ecx, 1
call fcn.004f23d0
add esp, 4
mov dword [0x55cadc], 0
cmp dword [0x55cab8], 0
je 0x4ba3ef
call edi
cmp dword [0x55cab8], eax
ja 0x4ba3ef
call fcn.004baa00
mov dword [0x55cab8], 0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00424a87
mov esp, ebp
pop ebp
ret

Function at 0x4bbdc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.004bc220
test eax, eax
je 0x4bbe1e
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push dword [0x55cf4c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
lea eax, [ebp - 0x804]
push 0xffffffffffffffff
push eax
push edi
call fcn.004f0df0
add esp, 0xc
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop edi
call fcn.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4bbe80
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.004bc220
test eax, eax
je 0x4bbee9
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [0x55cf4c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
test edi, edi
push 0
cmovne eax, dword [0x55ce38]
push eax
push 0x30
push dword [0x55cf4c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x55eaa0]
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 [0x55cf48], edi
pop edi
ret

Function at 0x4bca30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
lea eax, [ebp - 0x61c]
mov esi, ecx
push eax
call fcn.004f1180
lea eax, [ebp - 0x61c]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bca60
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4bca8a
cmp word [ebp + eax*2 - 0x61e], 0x5c
je 0x4bca8a
mov dword [ebp + eax*2 - 0x61c], 0x5c
lea ecx, [ebp - 0x61c]
call fcn.004bf670
test eax, eax
je 0x4bcadb
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 0x4bcadb
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.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00424a87
mov esp, ebp
pop ebp
ret

Function at 0x4bcaf0
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 0x4bce80
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x5462f8]
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.004f1310
lea eax, [ebp - 0x310]
push eax
call fcn.004f1370
mov cl, byte [ebp - 0x310]
add esp, 0xc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4bd07f
cmp byte [ebp - 0x30f], 0x3a
jne 0x4bd07f
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 0x4bd06d
lea eax, [ebp - 0x928]
push esi
push eax
call fcn.004f1180
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 0x4bd059
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4bcf77
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, dword [ebp - 0x930]
cmp esi, edi
jae 0x4bcf87
add esi, esi
cmp esi, edi
jb 0x4bcf81
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4bd036
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 0x4bd00b
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.0042fe00
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.00424a87
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.00424a87
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.00424a87
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
xor ecx, ebp
pop esi
call fcn.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4bd6f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509977
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x5462f8]
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.004ecfd0
test eax, eax
je 0x4bd738
call fcn.004ed020
mov edi, eax
push 0xc
call fcn.00424a9d
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.004cb880
test eax, eax
je 0x4bd811
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc40]
push eax
call fcn.004f1180
add esp, 8
lea eax, [ebp - 0x628]
push eax
push 0
push 0x52bca4
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bd811
lea ecx, [ebp - 0xc50]
call fcn.0047ac00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push 0
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047a850
test eax, eax
je 0x4bd7f2
lea ecx, [ebp - 0xc50]
call fcn.0047ab40
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc50]
call fcn.0047a8a0
test eax, eax
je 0x4bd7f2
lea ecx, [ebp - 0xc50]
call fcn.0047ab40
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.0047aa60
mov ecx, ebx
call fcn.004cc270
mov ecx, ebx
call fcn.004cb140
test edi, edi
je 0x4bd830
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.00424a87
mov esp, ebp
pop ebp
ret

Function at 0x4bd850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5462f8]
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 0x4bd8eb
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 0x4bd8df
cmp dword [ebp - 0x628], 1
jne 0x4bd8df
push 1
lea eax, [ebp - 0x61c]
push eax
push edi
call fcn.004f0df0
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.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4bd900
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb94
mov eax, dword [0x5462f8]
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.004f1180
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 0x4bdaa4
mov esi, dword [ebp + 0xc]
nop
test byte [esp + 0x20], 0x10
je 0x4bda4a
mov ecx, 0x52bc9c
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bd9aa
test dx, dx
je 0x4bd9a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bd9aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bd984
xor eax, eax
jmp 0x4bd9af
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bda46
mov eax, 0x52bc94
lea ecx, [esp + 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4bd9e6
test dx, dx
je 0x4bd9e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4bd9e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4bd9c0
xor eax, eax
jmp 0x4bd9eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bda46
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004f0df0
lea ecx, [esp + 0x27c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bda10
sub ecx, edx
lea esi, [ecx + 1]
test ebx, ebx
je 0x4bda3e
cmp esi, dword [esp + 0x10]
ja 0x4bda6b
push esi
lea eax, [esp + 0x274]
push eax
push ebx
call fcn.0042fe00
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 0x4bda52
cmp edi, esi
jae 0x4bda73
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4bda73
mov eax, dword [esp + 0xc]
jmp 0x4bd970
mov dword [esp + 0x18], 1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x4bda9c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb90]
xor ecx, esp
call fcn.00424a87
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.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4bdeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x5462f8]
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 0x4be085
mov ecx, 1
call fcn.004b7950
mov ecx, 1
call fcn.004f5a00
push 0x30c
push 0
push ebx
call fcn.0042fca0
add esp, 0xc
mov byte [esp + 0x78], 0
lea ebx, [esp + 0x78]
test edi, edi
je 0x4bdf8e
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 0x4bdf50
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 0x4bdf61
mov eax, dword [edi + esi]
sub edx, ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bdf70
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 0x4bdf35
push 0x58
lea eax, [esp + 0x24]
mov byte [ebx], 0
push 0
push eax
call fcn.0042fca0
mov eax, dword [0x55eaa0]
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], 0x5295bc
or ecx, eax
mov dword [esp + 0x54], ecx
sub edx, 0
je 0x4be04e
sub edx, 1
je 0x4be041
mov esi, 4
call fcn.004f5a50
xor ecx, ecx
call fcn.004b7950
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4be059
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.004f5a50
xor ecx, ecx
call fcn.004b7950
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00424a87
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.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4be140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5462f8]
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 0x4be1f1
mov ecx, 0x55df38
call fcn.004bf670
test eax, eax
je 0x4be1b0
push dword [ebp - 0x620]
mov edx, 0x55df38
lea ecx, [ebp - 0x61c]
call fcn.004f05b0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4be1b0
mov esi, eax
shr esi, 4
not esi
and esi, 1
jne 0x4be163
mov ecx, dword [0x55eaa0]
mov edx, ebx
push 0x41
push edi
call fcn.004b55d0
add esp, 8
cmp eax, 2
jne 0x4be163
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f4980
mov ecx, dword [0x55eaa0]
mov edx, eax
push 0x124
push edi
call fcn.004b55d0
add esp, 8
cmp eax, 6
jne 0x4be163
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a87
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov edx, 0x55df38
lea ecx, [ebp - 0x61c]
call fcn.004f05b0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4be276
push 1
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.004f0df0
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, 0x55d290
call fcn.004bf670
test eax, eax
je 0x4be2aa
push edi
mov edx, 0x55d290
lea ecx, [ebp - 0x61c]
call fcn.004f05b0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4be24f
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4be330
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.004256f0
mov eax, dword [0x5462f8]
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.004bf670
test eax, eax
je 0x4be440
lea eax, [ebp - 0xc3c]
push esi
push eax
call fcn.004f1180
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x624]
push 0x52bb38
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 [0x546f5c], edi
cmovne edi, dword [0x55dbb8]
test edi, edi
je 0x4be40d
test esi, esi
jne 0x4be411
push dword [edi]
mov edx, ebx
lea ecx, [ebp - 0x1254]
call fcn.004f05b0
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 0x4be3b7
test esi, esi
je 0x4be42d
mov eax, dword [ebp - 0x1258]
test eax, eax
je 0x4be42d
push 1
lea ecx, [ebp - 0x624]
push ecx
push eax
call fcn.004f0df0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00424a87
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.00424a87
mov esp, ebp
pop ebp
ret

Function at 0x4be470
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x61c]
push eax
call fcn.004f1180
add esp, 8
lea ecx, [ebp - 0x61c]
call fcn.004bf670
test eax, eax
je 0x4be4c5
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.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.004c4240
movzx ecx, word [edi + 0xe]
call fcn.004ed2c0
xor esi, esi
xor bh, bh
xor bl, bl
cmp dword [0x55edb4], esi
jle 0x4be7fe
add bh, byte [esi + edi + 0x40]
xor bl, byte [esi + edi + 0x40]
call fcn.004ed2d0
movzx eax, ax
sub byte [esi + edi + 0x40], al
inc esi
cmp esi, dword [0x55edb4]
jl 0x4be7e1
call fcn.004c4230
cmp byte [edi + 0x38], bh
jne 0x4be816
cmp byte [edi + 0x39], bl
jne 0x4be816
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4be920
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004c4240
movzx ecx, word [esi + 0xe]
call fcn.004ed2c0
mov ebx, dword [0x55edb4]
xor edi, edi
mov word [esi + 0x38], 0
test ebx, ebx
jle 0x4be966
call fcn.004ed2d0
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 0x4be945
call fcn.004ed2d0
mov byte [esi + 0x3a], al
call fcn.004ed2d0
pop edi
mov byte [esi + 0x3b], al
mov byte [esi + 0x3c], 1
pop esi
pop ebx
jmp fcn.004c4230

Function at 0x4bf1c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.004256f0
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4bf228
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf1e1
sub edx, esi
pop esi
push ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4bf207
push 0x52bbd0
push 0x55cf78
call fcn.00401420
add esp, 0xc
jmp 0x4bf214
push 0x55cf78
call fcn.004f1310
add esp, 8
push 0x55cf78
push 0x55df38
call fcn.004f1180
add esp, 8
jmp 0x4bf28b
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.0043672d
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
push 0x52bb38
push 0x55df38
call fcn.00404110
push 1
push 0x55df38
push 0x55cf78
call fcn.004f0df0
add esp, 0x30
xor eax, eax
mov byte [0x55dbc0], 0
push 0x55df38
mov word [0x55d290], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x55cf78
push 0x55eaa8
call fcn.004f1310
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret