joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4769a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax + 0x10], edi
jne 0x4769b3
xor eax, eax
pop edi
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x4769bb
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4769e7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x476c30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00494360
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1018], ebx
push edi
push dword [ebx]
mov dword [ebp - 0x1010], 0
xor esi, esi
mov dword [ebp - 0x100c], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push edi
push edi
push dword [ebx]
mov dword [ebp - 0x1014], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1020], eax
cmp eax, 0xffffffff
je 0x476dab
mov ebx, dword [ebp + 0xc]
nop dword [eax + eax]
push 0x1001
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004ad050
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
cmp ecx, 0x1000
mov eax, ecx
mov edx, 0x1000
cmovae eax, edx
sub ecx, eax
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp - 0x1018]
push 0
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x1014], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x476d4f
push 0
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x101c]
lea eax, [ebp - 0x1008]
push eax
mov eax, dword [ebp - 0x1018]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x476d6a
cmp dword [ebp - 0x1010], 0
jbe 0x476d55
nop dword [eax]
lea eax, [ebp - 0x1008]
push 0xa
push eax
call fcn.004ad2e0
mov edi, eax
add esp, 8
test edi, edi
je 0x476d4f
inc esi
mov byte [edi], 0
cmp esi, dword [ebx]
jb 0x476d30
mov eax, dword [ebp - 0x100c]
test eax, eax
je 0x476d6a
cmp dword [ebp - 0x1010], 0
jbe 0x476d6a
cmp esi, dword [ebx]
jb 0x476ca0
cmp esi, dword [ebx]
jne 0x476d7e
lea eax, [ebp - 0x1008]
sub edi, eax
add edi, dword [ebp - 0x1014]
jmp 0x476d80
xor edi, edi
mov eax, dword [ebp - 0x1018]
push 0
push 0
push dword [ebp - 0x1020]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049425b
mov esp, ebp
pop ebp
ret
Function at 0x476e20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e356b
mov eax, dword fs:[0]
push eax
mov eax, 0x40c0
call fcn.00494360
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4010]
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.004ad050
add esp, 0xc
mov dword [ebp - 0x4030], 0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x476e81
mov eax, dword [esi]
lea ecx, [ebp - 0x4030]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x476fa8
cmp dword [esi + 0x14], 8
jb 0x476e9e
mov esi, dword [esi]
lea ecx, [ebp - 0x4010]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x476fa8
lea eax, [ebp - 0x4034]
mov dword [ebp - 0x402c], 0
push eax
lea eax, [ebp - 0x402c]
mov dword [ebp - 0x4034], 0
push eax
push 0x4edc70
lea eax, [ebp - 0x4010]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x476fa8
push 1
push 2
lea ecx, [ebp - 0x40cc]
call fcn.0040e880
mov ecx, dword [ebp - 0x402c]
mov dword [ebp - 4], 0
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push str..:_
push eax
movzx eax, word [ecx + 8]
push str..:_
push eax
movzx eax, word [ecx + 0xa]
lea ecx, [ebp - 0x40cc]
push str..:_
push eax
call fcn.00434c30
push eax
call fcn.00418120
add esp, 8
mov ecx, eax
call fcn.00434c30
push eax
call fcn.00418120
add esp, 8
mov ecx, eax
call fcn.00434c30
push eax
call fcn.00418120
add esp, 8
mov ecx, eax
call fcn.00434c30
lea eax, [ebp - 0x4028]
push eax
lea ecx, [ebp - 0x40c8]
call fcn.00413dd0
lea eax, [ebp - 0x4028]
mov ecx, edi
push eax
call fcn.00414b50
lea ecx, [ebp - 0x4028]
call fcn.0040ce40
lea ecx, [ebp - 0x40cc]
call fcn.0040e130
mov eax, 1
jmp 0x476faa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
Function at 0x476fd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.00494360
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 8]
push 0x4000
push 0
push eax
call fcn.004ad050
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x4010], 0
jb 0x47701e
mov eax, dword [edi]
lea ecx, [ebp - 0x4010]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x47717e
cmp dword [edi + 0x14], 8
jb 0x47703b
mov edi, dword [edi]
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47717e
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x400c], 0
push eax
lea eax, [ebp - 0x400c]
mov dword [ebp - 0x4014], 0
push eax
push 0x4edc70
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47717e
mov eax, dword [ebp - 0x400c]
movzx ecx, word [eax + 0xa]
mov eax, ecx
mov dword [ebp - 0x4008], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x4770b1
mov word [eax], cx
add dword [esi + 4], 2
jmp 0x4770c0
lea ecx, [ebp - 0x4008]
push ecx
push eax
mov ecx, esi
call fcn.00471d90
mov eax, dword [ebp - 0x400c]
mov ecx, dword [esi + 4]
movzx edx, word [eax + 8]
mov eax, edx
mov dword [ebp - 0x4008], eax
cmp dword [esi + 8], ecx
je 0x4770e3
mov word [ecx], dx
add dword [esi + 4], 2
jmp 0x4770f2
lea eax, [ebp - 0x4008]
push eax
push ecx
mov ecx, esi
call fcn.00471d90
mov eax, dword [ebp - 0x400c]
mov ecx, dword [esi + 4]
movzx edx, word [eax + 0xe]
mov eax, edx
mov dword [ebp - 0x4008], eax
cmp dword [esi + 8], ecx
je 0x477115
mov word [ecx], dx
add dword [esi + 4], 2
jmp 0x477124
lea eax, [ebp - 0x4008]
push eax
push ecx
mov ecx, esi
call fcn.00471d90
mov eax, dword [ebp - 0x400c]
mov ecx, dword [esi + 4]
movzx edx, word [eax + 0xc]
mov eax, edx
mov dword [ebp - 0x4008], eax
cmp dword [esi + 8], ecx
je 0x47715a
mov word [ecx], dx
mov eax, 1
add dword [esi + 4], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4008]
push eax
push ecx
mov ecx, esi
call fcn.00471d90
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049425b
mov esp, ebp
pop ebp
ret
Function at 0x478530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e37a2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.004ad050
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x4785e1
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4785c3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00463450
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
Function at 0x478bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3868
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 4], eax
mov eax, esi
jb 0x478c3d
mov eax, dword [esi]
push eax
call sym.HdlVideoFilterPlayer.exe_bool___cdecl_StringHelper::IsUTF8StringExt_char_const__
add esp, 4
test al, al
lea eax, [ebp - 0x40]
push esi
push eax
je 0x478c56
call sym.HdlVideoFilterPlayer.exe_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_StringHelper::UTF8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
jmp 0x478c5b
call sym.HdlVideoFilterPlayer.exe_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_StringHelper::AsciiToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x478c92
mov ecx, eax
call fcn.00463070
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x40]
call fcn.0040ce40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 0x41], al
cmp edx, 8
jb 0x478ced
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478ce0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478d07
push edx
push ecx
call fcn.00493fa5
mov al, byte [ebp - 0x41]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
call fcn.004af5bc
int3

Function at 0x478d10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp dword [eax], 0
je 0x478d2e
push esi
call sym.HdlVideoFilterPlayer.exe_int___cdecl_FileHelper::RemoveDirAllFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
push esi
call sym.HdlVideoFilterPlayer.exe_int___cdecl_FileHelper::RemoveDirAllSubDir_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x478d36
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop ebp
ret
Function at 0x478d40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e38a8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x527d34]
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, dword [ebp + 8]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 3
xor eax, eax
mov dword [ebp - 4], 0
push 0x4edca0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00463450
push 1
xor eax, eax
mov byte [ebp - 4], 1
push 0x4edc94
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00463450
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
call sym.HdlVideoFilterPlayer.exe__GetAllFile_FileHelper__YAHABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__AAV__ve
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov edi, eax
cmp edx, 8
jb 0x478e29
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478e1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478ead
push edx
push ecx
call fcn.00493fa5
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x478e5f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478e55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478eb2
push edx
push ecx
call fcn.00493fa5
add esp, 8
mov esi, dword [ebp - 0x4c]
cmp esi, dword [ebp - 0x48]
je 0x478e87
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x478e7a
mov eax, dword [esi]
push eax
call ebx
add esi, 0x18
mov edi, eax
cmp esi, dword [ebp - 0x48]
jne 0x478e70
lea ecx, [ebp - 0x4c]
call fcn.00412b00
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.0049425b
mov esp, ebp
pop ebp
ret
call fcn.004af5bc
call fcn.004af5bc
int3
Function at 0x478ec0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e38e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x527d34]
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, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 1
xor eax, eax
mov dword [ebp - 4], 0
push 0x4edc94
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00463450
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call sym.HdlVideoFilterPlayer.exe__GetAllSubDir_FileHelper__YAHABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__AAV__
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov edi, eax
cmp edx, 8
jb 0x478f7a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478f70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fea
push edx
push ecx
call fcn.00493fa5
add esp, 8
mov esi, dword [ebp - 0x30]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x34]
mov ecx, esi
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x478fbf
cmp esi, ebx
je 0x478fc4
add esi, 0xffffffe8
nop
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x478faa
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esi, 0x18
mov edi, eax
lea eax, [esi + 0x18]
cmp eax, ebx
jne 0x478fa0
jmp 0x478fc4
mov edi, 1
lea ecx, [ebp - 0x34]
call fcn.00412b00
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.0049425b
mov esp, ebp
pop ebp
ret
call fcn.004af5bc
int3
Function at 0x479000
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00494360
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1001
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004ad050
add esp, 0xc
mov byte [ebp - 0x1009], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x101c], 0
jb 0x479061
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1010], esi
cmp esi, 0xffffffff
je 0x4791ba
push ebx
push 0
mov ebx, 1
push esi
mov dword [ebp - 0x1018], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x1020]
mov dword [ebp - 0x1024], eax
lea eax, [ebp - 0x1010]
push eax
call sym.HdlVideoFilterPlayer.exe_unsigned_long_int___cdecl_FileHelper::GetFileTailPos_void__const_const___unsigned_int_const__
mov esi, dword [ebp - 0x1010]
add esp, 8
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4791b9
cmp dword [edi + 0x14], 8
jb 0x4790de
mov edi, dword [edi]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1010], eax
push 0x1001
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004ad050
add esp, 0xc
push 1
push 0
push 0
push esi
call edi
mov ecx, eax
cmp ecx, 0xffffffff
je 0x479182
mov eax, dword [ebp - 0x1024]
sub eax, ecx
mov ecx, 0x1000
cmp eax, 0x1000
push 0
cmovae eax, ecx
lea ecx, [ebp - 0x1014]
push ecx
push eax
lea eax, [ebp - 0x1008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov ebx, eax
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1014]
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1018], eax
jmp 0x479188
mov eax, dword [ebp - 0x1018]
test ebx, ebx
je 0x4791a6
cmp dword [ebp - 0x1014], 0
jbe 0x4791a6
test eax, eax
je 0x4791a6
cmp dword [ebp - 0x101c], 0
ja 0x479103
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1009], 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1009]
xor ecx, ebp
pop edi
pop esi
call fcn.0049425b
mov esp, ebp
pop ebp
ret
Function at 0x47d040
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3c77
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x527d34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x47d09c
mov dword [esi], 0x4edb54
mov dword [esi + 0x10], 0x4edb5c
mov dword [esi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea edi, [esi + 0x18]
mov ecx, esi
push edi
call fcn.0046cf50
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], edi
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00493f75
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47d0f4
push 1
mov byte [ebp - 4], 2
call fcn.00480a65
add esp, 4
mov dword [ebx + 4], eax
jmp 0x47d0f6
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47eef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x47efee
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x47ef7f
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x47ef4b
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x47ef63
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x47efee
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x47effe
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x47efa1
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x47efb9
mov eax, 0xd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x47efd1
mov eax, 0xe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x47efe9
mov eax, 0xf
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 4
jae 0x47f003
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
cmp eax, 7
jb 0x47efee
mov ecx, dword [ebp - 4]
mov eax, 0x12
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret
Function at 0x47f8e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x527d34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x22c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x254]
push eax
call fcn.004ad050
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x47f98e
xor eax, eax
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f970
sub ecx, edx
sar ecx, 1
push ecx
push 0
mov ecx, esi
call fcn.00463450
jmp 0x47fa39
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47f9ff
nop dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24c]
je 0x47f9d0
lea eax, [ebp - 0x254]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47f9b0
jmp 0x47f9ff
lea ecx, [ebp - 0x230]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f9e0
sub ecx, edx
lea eax, [ebp - 0x230]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00463450
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
call fcn.0040ce40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049425b
mov esp, ebp
pop ebp
ret