joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cae9e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x64a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0x10]
mov eax, dword [edi]
push esi
call dword [eax + 0x28]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x30]
call eax
mov bl, al
mov dword [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
push 1
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4ecac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be946
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0058f17b
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4ecb0f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4ecb20
push 0x44
push esi
call fcn.0057697a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4ed4b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be946
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0058f17b
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0058f17b
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4ed511
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4ed522
push 0x60
push esi
call fcn.0057697a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ee7e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, esi
mov dword [esp + 0x18], edx
shr edi, 2
mov ebx, ecx
test edi, edi
je 0x4ee894
cmp edi, 8
jb 0x4ee873
lea eax, [edx - 4]
lea eax, [eax + edi*4]
lea ecx, [ebx - 4]
lea ecx, [ecx + edi*4]
cmp ebx, eax
ja 0x4ee819
cmp ecx, edx
jae 0x4ee873
mov eax, edi
mov ecx, edi
and eax, 7
mov esi, edx
sub ecx, eax
sub esi, ebx
mov dword [esp + 0x10], esi
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, edx
mov edx, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [ecx]
add ebp, 8
lea ecx, [ecx + 0x20]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebp, dword [esp + 0x14]
jb 0x4ee840
mov edx, dword [esp + 0x18]
cmp ebp, edi
jae 0x4ee894
mov esi, edx
lea ecx, [ebx + ebp*4]
sub edi, ebp
sub esi, ebx
add ebp, edi
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4ee882
mov esi, dword [esp + 0x20]
shl ebp, 2
sub esi, ebp
je 0x4ee914
add ebx, ebp
add edx, ebp
xor ecx, ecx
test esi, esi
je 0x4ee914
cmp esi, 0x20
jb 0x4ee8fb
lea eax, [edx - 1]
lea edi, [ebx - 1]
add eax, esi
add edi, esi
cmp ebx, eax
ja 0x4ee8bc
cmp edi, edx
jae 0x4ee8fb
mov eax, esi
mov edi, esi
and eax, 0x1f
mov ebp, edx
sub edi, eax
mov eax, ebx
sub ebp, ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edi
jb 0x4ee8d0
cmp ecx, esi
jae 0x4ee914
sub edx, ebx
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x4ee906
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4eeb50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, edx
push edi
mov edi, esi
mov dword [esp + 0x10], eax
shr edi, 2
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x1c], edi
mov ebp, ecx
test edi, edi
je 0x4eec29
cmp edi, 8
jb 0x4eec06
mov ebx, dword [esp + 0x10]
mov eax, edi
and eax, 7
mov ecx, edi
sub ecx, eax
mov esi, ebp
sub esi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x24]
xorps xmm3, xmm3
mov ebx, dword [esp + 0x14]
movaps xmm2, xmm3
mov edi, dword [esp + 0x18]
mov ecx, ebp
movups xmm0, xmmword [ecx]
add edx, 8
lea ecx, [ecx + 0x20]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [edi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ebx
jb 0x4eebb1
mov edi, dword [esp + 0x1c]
por xmm2, xmm3
mov eax, dword [esp + 0x10]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edx, edi
jae 0x4eec29
mov esi, ebp
lea ecx, [eax + edx*4]
sub edi, edx
sub esi, eax
add edx, edi
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub edi, 1
jne 0x4eec15
mov esi, dword [esp + 0x24]
shl edx, 2
sub esi, edx
jne 0x4eec3f
pop edi
xor eax, eax
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
add ebp, edx
add ecx, edx
mov eax, ebx
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
xor edi, edi
or dl, al
mov dword [esp + 0x10], ecx
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
mov dword [esp + 0x1c], edx
test esi, esi
je 0x4eed25
cmp esi, 0x20
jb 0x4eed09
mov eax, esi
mov ebx, esi
and eax, 0x1f
mov edx, ebp
sub ebx, eax
xorps xmm3, xmm3
sub edx, ecx
mov eax, ecx
mov dword [esp + 0x18], edx
movaps xmm2, xmm3
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + ebp + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ebx
jb 0x4eeca0
por xmm2, xmm3
mov ecx, dword [esp + 0x10]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp edi, esi
jae 0x4eed25
sub ebp, dword [esp + 0x10]
add ecx, edi
sub esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x4eed15
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
sete al
pop ebx
add esp, 0x10
ret
Function at 0x4f6600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x4f661e
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.005a5ddd
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4f6677
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.005a8440
push dword [ebp - 8]
call fcn.005a5ebc
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x4f665f
cmp al, 0xfe
je 0x4f6668
cmp al, 0xff
jne 0x4f6671
cmp cl, 0xfe
jne 0x4f6671
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4f6680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x4f66ba
call fcn.004f6600
test al, al
jne 0x4f66ba
mov eax, dword [ebx]
test eax, eax
je 0x4f66b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.004f75c0
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x4f66c7
mov eax, dword [esi]
jmp 0x4f66c9
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4f6761
cmp dword [esi + 0x14], 8
jb 0x4f66f1
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4f671c
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 8]
push 0
push ecx
jne 0x4f674a
push 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp - 4]
mov word [ebp - 4], 0xbbef
push ecx
push eax
mov byte [ebp - 2], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6770
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb736
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x64a070]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f6834
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00408810
xor bl, bl
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push 0
cmovae eax, dword [ebp - 0x260]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4f6809
cmp eax, 0xb7
je 0x4f6809
cmp eax, 0x50
jne 0x4f680b
mov bl, 1
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4f6829
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00409510
test bl, bl
jne 0x4f6834
xor al, al
jmp 0x4f6952
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4f685e
xor ecx, ecx
jmp 0x4f6876
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6867
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408a10
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [esi], ax
jne 0x4f68b6
xor ecx, ecx
jmp 0x4f68cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f68c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00408a10
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00506e90
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4f6915
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00409510
test bl, bl
je 0x4f6932
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4f6930
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4f6950
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00409510
mov al, bl
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.0057608a
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f6b80
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x614ce8
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f6be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4f6bf0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x614d08
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f75c0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x64a070]
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 edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
lea esi, [edi + 0x4c]
mov dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.00408f10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00506f40
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00506ce0
lea eax, [ebp - 0x58]
mov edx, 0x5f8524
push eax
lea ecx, [ebp - 0x70]
call fcn.004220d0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040aa30
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4f7679
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.005071d0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00506fd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4f7705
cmp dword [esi + 0x10], 0
je 0x4f7705
cmp dword [ebp - 0x18], 0
je 0x4f7705
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x4f76dc
mov esi, dword [esi]
push eax
push esi
call fcn.005a8669
add esp, 8
test eax, eax
jne 0x4f7705
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4f7701
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
mov bl, 1
jmp 0x4f7707
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4f771c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4f7745
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x4f776e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409510
mov al, bl
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.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x4f8120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cba60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x64a070]
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 esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x64], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00506e00
test al, al
je 0x4f831e
xor ecx, ecx
mov dword [ebp - 0x48], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x34]
mov word [ebp - 0x5c], cx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
call fcn.00408f10
push str..trace
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00507080
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x4f81d8
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00409510
test bl, bl
je 0x4f82f5
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00506e90
test al, al
je 0x4f82f5
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4f8216
mov dword [esi + 0x64], 0xa
jmp 0x4f82f5
push str..debug
lea ecx, [ebp - 0x44]
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00507080
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov bl, al
call fcn.004087d0
test bl, bl
je 0x4f8254
lea ecx, [ebp - 0x2c]
call fcn.00506de0
test al, al
jne 0x4f82e9
lea ecx, [ebp - 0x2c]
call fcn.00507130
test al, al
je 0x4f82f5
push str.asu.trace
lea ecx, [ebp - 0x44]
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00506e90
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov bl, al
call fcn.004087d0
test bl, bl
je 0x4f82f5
lea ecx, [ebp - 0x2c]
call fcn.00506de0
test al, al
je 0x4f82a7
mov dword [esi + 0x64], 0xa
jmp 0x4f82f5
lea ecx, [ebp - 0x2c]
call fcn.00507130
test al, al
je 0x4f82f5
push str.asu.debug
lea ecx, [ebp - 0x44]
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00506e90
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.004087d0
test bl, bl
je 0x4f82f5
lea ecx, [ebp - 0x2c]
call fcn.00506de0
test al, al
je 0x4f82f5
cmp edi, 0x14
jle 0x4f82f5
mov dword [esi + 0x64], 0x14
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x4f830a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4f8333
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00409510
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.0057608a
mov esp, ebp
pop ebp
ret 4
Function at 0x4fc750
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4fc75d
mov eax, dword [esi]
jmp 0x4fc75f
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4fc7a6
cmp eax, 0xb7
je 0x4fc7a6
cmp eax, 0x50
je 0x4fc7a6
cmp dword [esi + 0x14], 8
jb 0x4fc782
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_create_directoryPath_...Error_Code_is:__d_._At_desired_location:_s
push str.Utilities
call fcn.00502600
push eax
call fcn.005033a0
add esp, 0x14
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x4fc7b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov bh, dl
cmp dword [esi + 0x14], 8
jb 0x4fc7c1
mov eax, dword [esi]
jmp 0x4fc7c3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fc7f9
cmp dword [esi + 0x14], 8
jb 0x4fc7d6
mov esi, dword [esi]
push esi
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.005031f0
add esp, 0x10
mov al, 1
pop esi
pop ebx
pop ecx
ret
cmp dword [esi + 0x14], 8
jb 0x4fc803
mov eax, dword [esi]
jmp 0x4fc805
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4fc8cc
test bh, bh
je 0x4fc8a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4fc8a4
cmp dword [esi + 0x14], 8
jb 0x4fc837
mov eax, dword [esi]
jmp 0x4fc839
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x4fc87e
cmp dword [esi + 0x14], 8
jb 0x4fc851
mov eax, dword [esi]
jmp 0x4fc853
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4fc869
mov eax, dword [esi]
jmp 0x4fc86b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4fc8cc
jmp 0x4fc8a4
cmp dword [esi + 0x14], 8
jb 0x4fc888
mov eax, dword [esi]
jmp 0x4fc88a
mov eax, esi
push ecx
push eax
push str.File__s_is_not_read_only._Its_attribute_is:__d
push str.Utilities
call fcn.00502600
push eax
call fcn.00503310
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4fc8ac
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_delete_file:__s_LastError:_d
push str.Utilities
call fcn.00502600
push eax
call fcn.00503430
add esp, 0x14
pop esi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4fca60
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4fca6d
mov eax, dword [esi]
jmp 0x4fca6f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fcaa3
cmp dword [esi + 0x14], 8
jb 0x4fca82
mov esi, dword [esi]
push esi
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.005031f0
add esp, 0x10
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4fcab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x5f85a0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4fcb20
mov edx, dword [ebp - 4]
cmp word [edx], 0
jne 0x4fcaf4
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fcb00
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_retreive_Local_App_Data_Path_from_Win_library__error_occured__:__d
push str.Utilities
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.00503430
add esp, 0x10
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4fcb50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x5f8590
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4fcbc0
mov edx, dword [ebp - 4]
cmp word [edx], 0
jne 0x4fcb94
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fcba0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_retreive_Local_App_Data_Path_from_Win_library__error_occured__:__d
push str.Utilities
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.00503430
add esp, 0x10
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret