joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4534d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 4
mov dword [ebp - 0x208], edi
movzx ebx, byte [edx + edi + 0x306a0]
mov ecx, ebx
mov esi, ebx
and esi, 1
shr ecx, 1
dec ecx
or esi, 2
shl esi, cl
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 1
sub edi, esi
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x453583
jmp 0x453536
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
sub ecx, ebx
add ecx, esi
movzx ecx, word [edx + ecx*2 + 0x32b0e]
mov eax, edi
and eax, 1
mov ebx, eax
neg ebx
shr ecx, 4
sar ebx, 4
and ebx, 0x7f
xor ecx, ebx
mov ecx, dword [edx + ecx*4 + 0x30ea0]
add dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x210]
add ecx, ecx
or ecx, eax
shr edi, 1
dec dword [ebp - 0x214]
mov dword [ebp - 0x210], ecx
jne 0x453530
mov edi, dword [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
mov dword [ebp + edi*4 - 0x204], eax
inc edi
mov dword [ebp - 0x208], edi
cmp edi, 0x80
jb 0x4534f1
lea esi, [ebp - 0x204]
sub esi, edx
lea ecx, [edx + 0x32910]
lea ebx, [edx + 0x31d58]
sub esi, 0x31d50
lea edi, [edx + 0x31950]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], 4
jmp 0x4535f0
xor ecx, ecx
mov dword [ebp - 0x214], ecx
cmp dword [edx + 0x32594], ecx
jbe 0x453660
mov eax, ecx
or eax, 0x40
xor esi, esi
cmp eax, 1
je 0x453648
lea esp, [esp]
mov ebx, dword [ebp - 0x208]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebx, 4
xor ebx, eax
add esi, dword [edx + ebx*4 + 0x30ea0]
mov eax, ecx
cmp eax, 1
jne 0x453610
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x214]
mov dword [edi + ecx*4], esi
inc ecx
mov dword [ebp - 0x214], ecx
cmp ecx, dword [edx + 0x32594]
jb 0x453600
mov esi, dword [ebp - 0x210]
mov eax, 0xe
cmp dword [edx + 0x32594], eax
jbe 0x453686
lea ecx, [ecx]
mov ecx, eax
shr ecx, 1
sub ecx, 5
shl ecx, 4
add dword [edi + eax*4], ecx
inc eax
cmp eax, dword [edx + 0x32594]
jb 0x453670
mov eax, dword [edi]
mov dword [ebx - 8], eax
mov ecx, dword [edi + 4]
mov dword [ebx - 4], ecx
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 4], ecx
mov eax, 4
lea ecx, [ebx + 8]
jmp 0x4536b0
movzx ebx, byte [edx + eax + 0x306a0]
mov ebx, dword [edi + ebx*4]
add ebx, dword [esi + ecx]
inc eax
mov dword [ecx], ebx
add ecx, 4
cmp eax, 0x80
jb 0x4536b0
mov ebx, dword [ebp - 0x20c]
sub dword [ebp - 0x208], 0xffffff80
add ebx, 0x200
sub esi, 0x200
add edi, 0x100
dec dword [ebp - 0x218]
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
jne 0x4535f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [edx + 0x3bcf8], 0
pop ebx
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x455040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 8]
push edi
xor edi, edi
push eax
lea edx, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov dword [esi + 0x38], edi
call fcn.00454a30
add esp, 4
cmp ebx, edi
jbe 0x45508b
add esi, 0x270
call fcn.00454b30
test eax, eax
jne 0x45524a
inc edi
add esi, 0x44
cmp edi, ebx
jb 0x455073
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
test ebx, ebx
je 0x455145
add esi, 0x29c
cmp dword [esi - 0x14], 0
lea edi, [esi - 0x14]
jne 0x455133
push 0
push 0
push 0
lea ecx, [esi - 0x2c]
push 0
mov dword [esi - 4], 0x454de0
mov dword [esi], ecx
mov dword [esi - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi - 0x10], eax
test eax, eax
jne 0x4550ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4551ed
mov eax, 1
jmp 0x45512b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi - 0xc], eax
test eax, eax
je 0x4550d5
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push 0x4549c0
push 0
push 0
call fcn.004e5b19
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x455133
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4551ed
test eax, eax
jne 0x4551ed
mov eax, dword [ebp - 0xc]
inc eax
add esi, 0x44
mov dword [ebp - 0xc], eax
cmp eax, ebx
jb 0x4550a0
xor edi, edi
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x455176
mov esi, dword [ebp + 8]
add esi, 0x28c
lea ebx, [ebx]
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x4551f6
inc edi
add esi, 0x44
cmp edi, dword [ebp - 4]
jb 0x455160
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2b0]
push ecx
call ebx
test eax, eax
jne 0x45518c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x2ac]
push edx
call ebx
test eax, eax
jne 0x45519f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4551bf
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x290
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebx
add esi, 0x44
dec edi
jne 0x4551b2
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x45523d
mov esi, dword [ebp + 8]
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x2b0
mov eax, dword [esi - 4]
test eax, eax
je 0x455215
push eax
call ebx
test eax, eax
jne 0x455215
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45521c
mov dword [ebp - 8], 0xc
jmp 0x4551c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0xc
mov dword [esi + 0x2a4], 1
jmp 0x455179
mov dword [esi - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x455231
push eax
call ebx
test eax, eax
jne 0x455231
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x455237
mov dword [esi], 0
add esi, 0x44
dec edi
jne 0x4551d7
mov eax, dword [ebp - 8]
test eax, eax
jne 0x45524a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.004e5b19
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x455ac7
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x455ad6
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x455c40
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax], ecx
dec ecx
je 0x455c98
sub ecx, 3
je 0x455c8e
sub ecx, 6
jne 0x455c9f
mov dword [eax + 0x10], 0x6a09e667
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0x510e527f
mov dword [eax + 0x24], 0x9b05688c
mov dword [eax + 0x28], 0x1f83d9ab
mov dword [eax + 0x2c], 0x5be0cd19
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
ret
or ecx, 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
ret
mov dword [eax + 4], 0xffffffff
ret

Function at 0x455ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x455ed7
movzx ecx, byte [edi]
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
xor eax, dword [ecx*8 + 0x55c300]
shr edx, 8
xor edx, dword [ecx*8 + 0x55c304]
inc edi
dec esi
jne 0x455eb3
pop edi
pop esi
pop ebp
ret 8
Function at 0x458720
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505e20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x51d6f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [0x55ad70], eax
cmp eax, esi
je 0x458788
push 0x51d724
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x458788
push 5
push esi
push esi
push str.http:__www.baofeng.com_permit.html
push 0x51d0ac
push esi
call eax
cmp eax, 0x20
jge 0x4588ba
cmp byte [ebp + 8], 0
je 0x4588e6
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push 0x51d0ec
push 0x17
push esi
push 0x51d098
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x4588d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
cmp eax, esi
jl 0x4588d0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4587f2
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push str.http:__www.baofeng.com_permit.html
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x458810
push 0x8007000e
call fcn.0045a440
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp - 0x5c], cx
call fcn.0045a2e0
lea ecx, [ebp - 0x4c]
xor eax, eax
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x4c], ax
call fcn.0045a2e0
lea eax, [ebp - 0x3c]
xor edx, edx
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x3c], dx
call fcn.0045a2e0
mov ecx, 3
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x24], 0xe
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 5
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push edi
push esi
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x5c]
push eax
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x4588ce
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4588ba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4588e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004e9520
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x458969
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x458ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
lea ecx, [ebp - 0x14]
push ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x14]
xor edx, edx
push ecx
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 8
push 0x61c46800
push edx
push eax
call fcn.004ea4f0
mov esi, eax
mov eax, 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x51cf6c
push str.SoftwareBaofengStormPlayerConfigInstall
push SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x18]
cmp esi, ecx
jb 0x458c47
sub esi, ecx
add esi, 0x17
mov eax, 0xaaaaaaab
mul esi
shr edx, 4
push edx
jmp 0x458c5d
sub ecx, esi
add ecx, 0x17
mov eax, 0x19
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1f
push ecx
push 0x51cfe0
call fcn.004597f0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
pop esi
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x458c80
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.004e9520
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.InstallPath
push str.SoftwareBaofengPhoneAssistant
push SysReAllocString
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x228], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x458dde
push str..BFAssistantSvc.exe
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458dde
cmp byte [ebp + 8], 0
mov esi, str.__install
jne 0x458d2f
mov esi, str.__uninstall
push 0x40
lea ecx, [ebp - 0x270]
push 0
push ecx
call fcn.004e9520
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x274]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
mov word [ebp - 0x244], dx
push esi
lea edx, [ebp - 0x214]
push edx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x274], 0x44
mov dword [ebp - 0x248], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x458dde
mov eax, dword [ebp - 0x224]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x220]
push edx
call esi
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor al, al
pop esi
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x459290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4592a8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4592da
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4592d6
cmp esi, eax
jae 0x4592da
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4592c8
cmp esi, eax
jb 0x4592e0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x45bc50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5522c0]
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 ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x45bccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x45bd02
push esi
call fcn.0045bec0
add esp, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x45bd04
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x45bd02
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
mov dword [ebp - 4], 0
call fcn.0045b4d0
mov eax, edi
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.004e4840
mov esp, ebp
pop ebp
ret

Function at 0x45bd20
Capabilities:
Check os version
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff78b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
je 0x45bdc8
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x168], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x164], 6
jb 0x45bdc8
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x4e]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x50], cx
call fcn.004e9520
add esp, 0xc
push 0x20
push 0x51d5f4
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea ecx, [ebp - 0x50]
push ecx
push esi
call fcn.0045b530
add esp, 0xc
mov eax, 1
jmp 0x45bdca
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x45bf40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x537308
push 0x4ead10
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x5522c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x45bfd8
mov bl, 1
mov dword [ebp - 0x88c], 0xffffffff
push 0x51d674
push esi
push 0x51d648
push 0x104
lea eax, [ebp - 0x634]
push eax
call fcn.004e76a1
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x884]
push ecx
lea edx, [ebp - 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x88c], eax
cmp eax, 0xffffffff
jne 0x45bfdf
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x45c128
mov edi, dword [ebp + 0xc]
cmp word [ebp - 0x858], 0x2e
je 0x45c09a
test byte [ebp - 0x884], 0x10
je 0x45c034
lea eax, [ebp - 0x858]
push eax
push esi
push str._s_s_
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004e76a1
xor edx, edx
mov word [ebp - 0x226], dx
push edi
lea eax, [ebp - 0x42c]
push eax
call fcn.0045bf40
add esp, 0x1c
mov bl, al
jmp 0x45c094
lea ecx, [ebp - 0x858]
push ecx
push esi
push 0x51d648
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.004e76a1
add esp, 0x14
xor eax, eax
mov word [ebp - 0x1e], ax
test edi, edi
je 0x45c064
cmp edi, 1
jne 0x45c09a
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
lea ecx, [ebp - 0x884]
push ecx
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45bfe2
mov eax, dword [ebp - 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x88c], 0xffffffff
test edi, edi
je 0x45c0d6
cmp edi, 2
jne 0x45c11f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
jmp 0x45c11f
mov dword [ebp - 4], 0xfffffffe
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
Function at 0x45c380
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5029a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c3fd
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 8]
and eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45c3fd
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.0045cfd0
add eax, 0x10
mov dword [esi], eax
call fcn.0045c150
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c770
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b320
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45c7af
xor eax, eax
jmp 0x45c8a5
push 0x51d674
push edi
push 0x51d648
lea eax, [ebp - 0x62c]
push 0x104
push eax
mov esi, 1
call fcn.004e76a1
add esp, 0x14
lea ecx, [ebp - 0x87c]
push ecx
lea edx, [ebp - 0x62c]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x880], eax
cmp eax, 0xffffffff
je 0x45c7a8
mov ebx, dword [ebp + 0xc]
cmp word [ebp - 0x850], 0x2e
je 0x45c84c
test byte [ebp - 0x87c], 0x10
je 0x45c8c1
lea eax, [ebp - 0x850]
push eax
push edi
push str._s_s_
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.004e76a1
lea eax, [ebp - 0x424]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21e], dx
call fcn.0045c770
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp - 0x880]
lea edx, [ebp - 0x87c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45c7fc
mov ecx, dword [ebp - 0x880]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x45c87a
cmp ebx, 2
jne 0x45c8a3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x45c8a3
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 - 0x14]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x850]
push ecx
push edi
push 0x51d648
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.004e76a1
xor eax, eax
add esp, 0x14
mov word [ebp - 0x16], ax
test ebx, ebx
je 0x45c8f5
cmp ebx, 1
jne 0x45c84c
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x45c84c
push ecx
mov ecx, esp
mov dword [ebp - 0x884], esp
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004595b0
call fcn.0045c150
add esp, 4
jmp 0x45c84c