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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471ad2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48f840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x47ed1c
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00408880
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00405ca0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x49665c]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push 2
push str.._PrintScreenList.txt
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00405740
test eax, eax
jne 0x404d68
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x404d56
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x404d68
push 0
call fcn.004087f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471b58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48f840]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x48f840]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x405aa4
cmp byte [ebx + 0x45], 0
je 0x405aa4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4059b0
xor al, al
jmp 0x405aa6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4059f0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405a31
dec eax
je 0x405a35
sub eax, 2
je 0x405a8b
xor bl, bl
jmp 0x405a8d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x405a6c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043eb58
add esp, 0x10
cmp esi, eax
jne 0x405a2d
cmp byte [ebx + 0x45], 0
je 0x405a8b
test esi, esi
jne 0x4059f0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00405690
jmp 0x4059f0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x405aa0
push dword [esp + 0x18]
call fcn.0043d771
add esp, 4
mov al, bl
jmp 0x405aa6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043d762
mov esp, ebp
pop ebp
ret
Function at 0x407ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471dfa
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x48f840]
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, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00425d27
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x407d86
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0043e64a
push 0x48c5b8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00444b1b
push edi
push esi
call fcn.00425bfa
add esp, 8
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.0043d762
mov esp, ebp
pop ebp
ret 4

Function at 0x4083f0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471e88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x48f840]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00403200
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.004082f0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x408461
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0043e64a
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40848a
push dword [esp + 0xc]
call fcn.0043d771
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x48f840]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x47eddc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push str.._Image_Autopatch_StartBtn.bmp
push eax
call fcn.0043f872
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x408b11
push ebx
push esi
push edi
push 2
push 0
push eax
call fcn.0043f946
push dword [ebp - 8]
call fcn.0043fd59
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.004258e2
push esi
mov ebx, eax
push 0
push ebx
call fcn.00446bf0
push dword [ebp - 8]
call fcn.0043fdc5
push dword [ebp - 8]
push 1
push edi
push ebx
call fcn.00440049
push dword [ebp - 8]
call fcn.0043f3c9
add esp, 0x34
mov edx, ebx
call fcn.00408980
push ebx
call fcn.0043d952
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d762
mov esp, ebp
pop ebp
ret

Function at 0x409730
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472007
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x48f840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x47ee10
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00408880
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00405ca0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x49665c]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
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 0x409970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471dfa
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x48f840]
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, ecx
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], esi
call fcn.00425d27
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x409a16
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0043e64a
push 0x48c5b8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00444b1b
push edi
push 0x3f
push esi
call fcn.00427d8e
add esp, 0xc
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.0043d762
mov esp, ebp
pop ebp
ret 8

Function at 0x40a6f0
Capabilities:
Copy file

Disassembly:
call fcn.0040a680
push 0
push str.SS3DGFunc.dll
test eax, eax
je 0x40a707
push str.SS3DGFuncSSE.dll
jmp 0x40a70c
push str.SS3DGFuncN.dll
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.SS3DExecutiveForMuk.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x496450], eax
test eax, eax
jne 0x40a729
xor eax, eax
ret
push str.DllCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a726
push 0x496454
call eax
test eax, eax
jne 0x40a726
mov eax, dword [0x496454]
push 0
push 0
push 0
mov ecx, dword [eax]
push 2
push 0x80
push 0x1000
push 0x2ee0
push str.SS3DFileStorage.dll
push eax
call dword [ecx + 0x28]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x40dc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471b58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48f840]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x48f840]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40dd56
cmp byte [ebx + 0x46], 0
je 0x40dd56
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x40dc6b
xor al, al
jmp 0x40dd58
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40dce3
dec eax
je 0x40dce7
sub eax, 2
je 0x40dd3d
xor bl, bl
jmp 0x40dd3f
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40dd1e
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043eb58
add esp, 0x10
cmp esi, eax
jne 0x40dcdf
cmp byte [ebx + 0x46], 0
je 0x40dd3d
test esi, esi
jne 0x40dca2
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00405690
jmp 0x40dca2
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40dd52
push dword [esp + 0x18]
call fcn.0043d771
add esp, 4
mov al, bl
jmp 0x40dd58
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043d762
mov esp, ebp
pop ebp
ret
Function at 0x412750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472bbf
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x48f840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ecx], vtable.CZipFileHeader.0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], vtable.CZipAutoBuffer.0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x84], vtable.CZipAutoBuffer.0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x90], 0
xor eax, eax
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], eax
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], eax
mov byte [ecx + 8], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x68], eax
mov word [ecx + 0x20], ax
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0xc], 0x80000
mov dword [ecx + 0x64], 0xff0000
mov dword [ecx + 0x70], eax
mov byte [ecx + 0x94], al
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4135e0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472c88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48f840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x30]
call fcn.0041b460
mov al, byte [esi + 0xc]
shr al, 3
test al, 1
je 0x41363d
movzx eax, byte [esi + 0x66]
mov dword [esi + 0x24], 0
cmp eax, 1
je 0x41363d
cmp eax, 2
je 0x41363d
cmp eax, 3
je 0x41363d
mov dword [esi + 0x28], 0
movzx eax, word [esi + 0xe]
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00412410
cmp dword [esi + 0x8c], 0xffff
jg 0x4137ec
cmp dword [esi + 0x7c], 0xffff
jg 0x4137ec
lea ecx, [esi + 0x30]
call fcn.0041b390
cmp eax, 0xffff
setle al
test al, al
je 0x4137ec
mov eax, dword [esi + 0x7c]
lea ecx, [esi + 0x30]
mov word [esi + 0x64], ax
call fcn.0041b390
movzx ebx, word [esi + 0x64]
mov edx, eax
add ebx, 0x1e
mov dword [ebp - 0x10], edx
add ebx, edx
mov dword [ebp - 0x20], vtable.CZipAutoBuffer.0
xor edi, edi
mov dword [esi + 0x68], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edi
test ebx, ebx
je 0x4136cb
push ebx
call fcn.0043d776
mov edx, dword [ebp - 0x10]
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov eax, dword [0x490680]
mov dword [edi], eax
movzx eax, word [esi + 0xa]
mov word [edi + 4], ax
movzx eax, word [esi + 0xc]
mov word [edi + 6], ax
mov eax, dword [ebp - 0x14]
mov word [edi + 8], ax
movzx eax, word [esi + 0x10]
mov word [edi + 0xa], ax
movzx eax, word [esi + 0x12]
mov word [edi + 0xc], ax
cmp byte [esi + 0x67], 0
je 0x41370a
xor eax, eax
jmp 0x41370d
mov eax, dword [esi + 0x14]
mov dword [edi + 0xe], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x12], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x16], eax
mov ax, word [esi + 0x64]
mov word [edi + 0x1a], ax
mov word [edi + 0x1c], dx
movzx eax, word [esi + 0x64]
push eax
push dword [esi + 0x78]
lea eax, [edi + 0x1e]
push eax
call fcn.00444440
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x413754
movzx eax, word [esi + 0x64]
lea ecx, [esi + 0x30]
add eax, 0x1e
add eax, edi
push eax
call fcn.0041b310
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 1
push dword [esi + 0x68]
push edi
call fcn.0041a4f0
mov eax, dword [ebx + 0x3c]
and eax, 0x70
cmp al, 0x70
jne 0x413772
xor eax, eax
jmp 0x413776
movzx eax, word [ebx + 0x24]
mov ecx, ebx
mov word [esi + 0x20], ax
call fcn.00411e90
sub eax, dword [esi + 0x68]
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], eax
call fcn.0041b460
mov ebx, dword [esi + 0x80]
test ebx, ebx
je 0x4137cf
cmp dword [ebx + 0x14], 8
jb 0x4137a9
push dword [ebx]
call fcn.0043d771
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push ebx
mov word [ebx], ax
call fcn.0043d771
add esp, 4
mov dword [esi + 0x80], 0
push edi
call fcn.0043d771
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x6c]
push 0xd3
call fcn.0041c200
int3
Function at 0x415940
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473149
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x48f840]
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 eax, ecx
mov dword [ebp - 0x58], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov esi, dword [eax + 0xa4]
mov ecx, esi
mov dword [ebp - 0x4c], esi
call fcn.00412d80
push dword [edi + 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x50], eax
call fcn.00442965
add esp, 4
cmp eax, 0xffffffff
jne 0x4159bd
mov ecx, edi
call fcn.0041dc60
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x6c]
mov ecx, eax
call fcn.00417eb0
add esp, 8
test al, al
je 0x415a48
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp - 4], 0
mov ebx, 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x50], ebx
jb 0x4159fa
mov esi, dword [esi]
mov ecx, dword [ebp - 0x4c]
call fcn.004139d0
push 1
mov edx, esi
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x44]
call fcn.0041e4a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x415a1c
mov eax, dword [eax]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
cmp dword [ebp - 0x30], 8
mov byte [ebp - 0x45], al
jb 0x415a42
push dword [ebp - 0x44]
call fcn.0043d771
mov al, byte [ebp - 0x45]
add esp, 4
mov esi, ebx
test al, al
jne 0x415a4d
mov esi, 0xfffffffe
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x415a7e
cmp dword [ebp - 0x18], 8
jb 0x415a6a
push dword [ebp - 0x2c]
call fcn.0043d771
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.00415ac0
cmp eax, 1
cmove 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.0043d762
mov esp, ebp
pop ebp
ret 4
Function at 0x417d70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473393
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x48f840]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0xa8]
movlpd qword [ebp - 0xb8], xmm0
movlpd qword [ebp - 0xc0], xmm0
movlpd qword [ebp - 0xb0], xmm0
call fcn.00414820
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa8]
call fcn.00417d00
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
push eax
call esi
test eax, eax
jne 0x417e53
lea ecx, [ebp - 0x28]
call fcn.00411ba0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xb8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call esi
test eax, eax
jne 0x417e53
xorps xmm0, xmm0
movlpd qword [ebp - 0xc8], xmm0
mov esi, dword [ebp - 0xc4]
mov edi, dword [ebp - 0xc8]
jmp 0x417e5f
mov edi, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xac]
cmp dword [ebp - 0x14], 8
jb 0x417e70
push dword [ebp - 0x28]
call fcn.0043d771
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0041e2c0
mov eax, edi
mov edx, 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.0043d762
mov esp, ebp
pop ebp
ret

Function at 0x417fe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48f840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, ecx
lea ecx, [ebp - 0x1c]
push 1
call fcn.0041e4a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x418008
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 8], 8
mov ebx, eax
jb 0x418022
push dword [ebp - 0x1c]
call fcn.0043d771
add esp, 4
cmp ebx, 0xffffffff
jne 0x418038
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d762
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test bl, 0x10
mov eax, 0
sete al
xor ecx, ebp
pop ebx
lea eax, [eax*2 - 1]
call fcn.0043d762
mov esp, ebp
pop ebp
ret