joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ce00
Capabilities:
Check os version
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x57ed78]
push esi
cmp eax, 0xffffffff
jne 0x49d055
push 0x110
lea eax, [ebp - 0x114]
mov dword [0x57ed78], 0xfffffc18
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004a64e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49d050
cmp dword [ebp - 0x108], 2
jne 0x49d050
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x49cf95
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x49cef7
mov dword [0x57ed78], 1
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push 0x18
push esi
push str.SEContainer
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49cee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 0x18
push esi
push str.SEContainer
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49cee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
pop esi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x49cf78
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.004b67c1
add esp, 0xc
test eax, eax
jne 0x49cf25
mov dword [0x57ed78], 3
jmp 0x49ce91
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.004b67c1
add esp, 0xc
test eax, eax
jne 0x49cf4e
mov dword [0x57ed78], 4
jmp 0x49ce91
push 0x7f
lea eax, [ebp - 0x104]
push eax
push 0x561524
call fcn.004b67c1
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x57ed78], eax
jmp 0x49ce91
cmp eax, 2
jne 0x49d050
mov dword [0x57ed78], 6
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x49ce96
cmp eax, 6
jne 0x49d03c
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x49cfdf
sub eax, 1
je 0x49cfcb
sub eax, 1
jne 0x49d050
mov dword [0x57ed78], 0xb
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x49ce96
mov dword [0x57ed78], 0xa
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x49ce96
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.004b67c1
add esp, 0xc
test eax, eax
jne 0x49d00d
mov dword [0x57ed78], 8
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x49ce96
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.004b67c1
add esp, 0xc
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x57ed78], eax
jmp 0x49ce96
mov dword [0x57ed78], 0x3e8
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x49ce96
mov eax, dword [0x57ed78]
cmp eax, 6
jl 0x49ce91
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jmp 0x49ce96
Function at 0x49d130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
jne 0x49d13e
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
cmp esi, 8
jb 0x49d1fb
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
sub edi, 1
jne 0x49d154
pop edi
test esi, esi
je 0x49d21a
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x550fb0]
sub esi, 1
jne 0x49d200
not eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a8e32
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x508118
push 0x508110
push str.FlsAlloc
push 0
call fcn.004a8db2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a8e64
push dword [ebp + 8]
mov ecx, esi
call fcn.004a3eed
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4a8ea6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x508128
push 0x508120
push str.FlsGetValue
push 2
call fcn.004a8db2
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4a8ed7
mov ecx, esi
call fcn.004a3eed
call esi
jmp 0x4a8edd
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4a8ee0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x508130
push 0x508128
push str.FlsSetValue
push 3
call fcn.004a8db2
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4a8f14
mov ecx, esi
call fcn.004a3eed
call esi
jmp 0x4a8f1a
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4be9e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004be85f

Function at 0x4c5719
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c53d9

Function at 0x4caa70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4caa7c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004caa90
Function at 0x4cef90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
jb 0x4cefa8
mov ecx, dword [ecx]
push ecx
call fcn.004b3faa
add esp, 4
cmp eax, 0xffffffff
jne 0x4cefe6
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004a93fd
push dword [eax]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004b4020
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4cf560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x4cf6ce
test edi, edi
jle 0x4cf6ce
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x4cf5d6
mov dword [esi], 0x556b90
call fcn.004df100
push 0xae
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.004df180
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4cf5c3
mov esi, dword [esi]
push esi
push str.m_hFile__INVALID_HANDLE_VALUE__filename:_s_r_n
call fcn.004df180
add esp, 8
jmp 0x4cf758
push 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4cf631
mov dword [esi], 0x556c90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004df100
push 0xb7
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.004df180
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4cf625
mov esi, dword [esi]
push esi
push edi
push str.read_file_err__errcode:_d__filename:_s_r_n
jmp 0x4cf750
mov eax, dword [ebp - 0x2c]
cmp edi, eax
je 0x4cf674
call fcn.004df100
push 0xbc
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.004df180
lea eax, [esi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4cf65f
mov eax, dword [eax]
push eax
push dword [ebp - 0x2c]
push edi
push str.read_file__p_nSize___dwRead__size:_d__read:_d__filename:_s_r_n
call fcn.004df180
mov eax, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
jne 0x4cf6b1
mov dword [esi], 0x556d74
call fcn.004df100
push 0xc3
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.004df180
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4cf6a5
mov esi, dword [esi]
push esi
push edi
push str.p_nSize___0__dwRead__0__size:_d__filename:_s_r_n
jmp 0x4cf750
mov dword [ebx], eax
mov al, 1
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x34]
mov dword [esi], 0x556ba8
push eax
call fcn.004b35c1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b4336
push dword [ebp - 0x28]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [ebp - 0x24]
cmovae ecx, dword [0x57e624]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0xa7
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.004df180
add esi, 4
add esp, 0x3c
cmp dword [esi + 0x14], 8
jb 0x4cf749
mov esi, dword [esi]
push esi
push edi
push str._p_szBuf__p_nSize___0__size:_d__filename:_s_r_n
call fcn.004df180
add esp, 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d02d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x4d02f0
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d02fa
mov eax, dword [esi]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4d03cf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov ebx, eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004a93fd
push dword [eax]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004b4020
lea eax, [ebp - 0x50]
push eax
call fcn.004b35c1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004b4336
push dword [ebp - 0x48]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [ebp - 0x44]
cmovae ecx, dword [0x57e624]
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x3c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x20d
push str.t_fileUtil::MoveFileW
push str.__S_L:_d__
call fcn.004df180
add esp, 0x48
cmp dword [edi + 0x14], 8
jb 0x4d03a4
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4d03ac
mov esi, dword [esi]
push ebx
push edi
push esi
push str.MoveFile_to_TemFile_false__fromPath:_s__toPath:_s__err:_d_r_n
call fcn.004df180
add esp, 0x10
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4d0500
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x4d0520
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d052a
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4d05ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov ebx, eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004a93fd
push dword [eax]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004b4020
lea eax, [ebp - 0x50]
push eax
call fcn.004b35c1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004b4336
push dword [ebp - 0x48]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [ebp - 0x44]
cmovae ecx, dword [0x57e624]
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x3c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x1fe
push str.t_fileUtil::CopyFileW
push str.__S_L:_d__
call fcn.004df180
add esp, 0x48
cmp dword [edi + 0x14], 8
jb 0x4d05d4
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4d05dc
mov esi, dword [esi]
push ebx
push edi
push esi
push str.CopyFile_to_TemFile_false__fromPath:_s__toPath:_s__err:_d_r_n
call fcn.004df180
add esp, 0x10
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4d0620
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd25d
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x57b070]
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 esi, ecx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4d065c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d080d
shr eax, 4
and al, 1
je 0x4d080d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d0681
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x810]
push str._s.
push eax
call fcn.004472f0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x58f248
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4d07f8
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
mov ecx, 0x5570a0
mov eax, 0x58f274
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d06f6
test dx, dx
je 0x4d06f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d06f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d06d0
xor eax, eax
jmp 0x4d06fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d07e1
mov eax, 0x556974
mov ecx, 0x58f274
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4d0736
test dx, dx
je 0x4d0732
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4d0736
add ecx, 4
add eax, 4
test dx, dx
jne 0x4d0710
xor eax, eax
jmp 0x4d073b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d07e1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d074d
mov eax, dword [esi]
push 0x58f274
push eax
lea eax, [ebp - 0x810]
push 0x5570a4
push eax
call fcn.004472f0
add esp, 0x10
mov dword [ebp - 0x818], 0
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x810]
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d0790
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00418a60
lea ecx, [ebp - 0x828]
call fcn.004d4830
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 1
call fcn.004d0620
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
call fcn.00418a00
push 0x58f248
push edi
call ebx
test eax, eax
jne 0x4d06c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x4d0800
mov esi, dword [esi]
push esi
call fcn.004b3fd4
add esp, 4
mov al, 1
jmp 0x4d0816
mov ecx, esi
call fcn.004d0840
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.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4d0840
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4d084d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d085d
xor al, al
pop esi
ret
test al, 0x10
jne 0x4d0859
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d086b
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4d087f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4d08b8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d08c7
xor al, al
ret
shr eax, 4
not al
and al, 1
ret
Function at 0x4d92d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdc78
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57b070]
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, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], ecx
push 1
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.004cf8a0
test al, al
je 0x4d9346
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x4d937f
mov dword [ebp - 0x34], 0x556b90
xor bl, bl
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 5
call fcn.004cf770
lea ecx, [ebp - 0x30]
call fcn.00418a00
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.004a35cb
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d93ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
and eax, 0x55707c
mov dword [ebp - 0x34], eax
jmp 0x4d9346
test esi, esi
jle 0x4d9346
push esi
call fcn.004a3bb6
mov edi, eax
add esp, 4
test edi, edi
je 0x4d9346
push esi
push 0
push edi
call fcn.004a64e0
add esp, 0xc
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
push eax
push esi
push edi
call fcn.004cf560
test al, al
jne 0x4d93f2
push edi
call fcn.004a3611
add esp, 4
jmp 0x4d9346
lea ecx, [ebp - 0x34]
call fcn.004cf770
push esi
push edi
mov ecx, ebx
call fcn.004dc1f0
push edi
mov bl, al
call fcn.004a3611
add esp, 4
jmp 0x4d9348
Function at 0x4da220
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fde88
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57b070]
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, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4da281
mov eax, dword [edi]
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.004cf8a0
test al, al
je 0x4da2d7
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x4da2a3
mov dword [ebp - 0x34], 0x556b90
xor esi, esi
jmp 0x4da2d7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4da2d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4da2cd
mov dword [ebp - 0x34], eax
xor esi, esi
jmp 0x4da2d7
mov dword [ebp - 0x34], 0x55707c
or esi, 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004cf770
test esi, esi
jg 0x4da2f0
cmp dword [ebx + 0x24], 1
je 0x4da2f0
mov ecx, edi
call fcn.004d0840
push dword [ebp - 0x3c]
mov edx, edi
mov ecx, ebx
call fcn.004da340
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.004cf770
lea ecx, [ebp - 0x30]
call fcn.00418a00
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.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4dc680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe11c
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x57b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0x60], 1
test eax, eax
je 0x4dc6d5
push 0
push eax
call ecx
push dword [edi + 0x58]
call ebx
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x68]
mov byte [edi + 0x70], 1
test eax, eax
je 0x4dc6f8
push 0
push eax
call ecx
push dword [edi + 0x68]
call ebx
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
lea eax, [edi + 0xc]
cmp dword [edi + 0x20], 8
jb 0x4dc70b
mov eax, dword [edi + 0xc]
push eax
call fcn.00443360
mov ecx, eax
call fcn.004d8910
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4dc769
nop
mov ebx, dword [esi]
test ebx, ebx
je 0x4dc75b
lea ecx, [ebx + 0x44]
mov dword [ebx + 0xd0], vtable.t_fileStream.0
mov dword [ecx], vtable.t_managedShareMemory.0
call fcn.00444f60
lea ecx, [ebx + 0x28]
call fcn.00418a00
mov ecx, ebx
call fcn.00418a00
push 0xe4
push ebx
call fcn.004a3815
add esp, 8
add esi, 4
cmp esi, dword [edi + 4]
jne 0x4dc720
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4dc77f
push eax
call ebx
mov dword [edi + 0x28], 0
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4dc79b
push eax
call ebx
mov dword [edi + 0x3c], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 0x68]
mov dword [edi + 0x64], vtable.t_thread.0
mov byte [edi + 0x70], 1
test eax, eax
je 0x4dc7cf
push 0
push eax
call esi
push dword [edi + 0x68]
call ebx
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov eax, dword [edi + 0x58]
mov dword [edi + 0x54], vtable.t_thread.0
mov byte [edi + 0x60], 1
test eax, eax
je 0x4dc7f9
push 0
push eax
call esi
push dword [edi + 0x58]
call ebx
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4dc811
push eax
call ebx
mov dword [edi + 0x3c], 0
mov byte [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4dc82d
push eax
call ebx
mov dword [edi + 0x28], 0
lea ecx, [edi + 0xc]
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00418a00
mov ecx, edi
call fcn.004469e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret