joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a513
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4193b0
push 0x4193a8
push str.FlsAlloc
push 0x1f
call fcn.0040a3d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a547
push dword [ebp + 8]
mov ecx, esi
call dword [0x417144]
call esi
jmp 0x40a54d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a591
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4193c0
push 0x4193b8
push str.FlsGetValue
push 0x21
call fcn.0040a3d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a5c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x417144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a5d0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4193c8
push 0x4193c0
push str.FlsSetValue
push 0x22
call fcn.0040a3d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a60a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b41f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41ffe8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b45f
cmp byte [ebx], 0xa
jne 0x40b45f
or byte [edi + eax + 0x28], 4
jmp 0x40b464
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40b563
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40b546
inc eax
cmp dl, 0xd
je 0x40b490
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40b4b6
cmp eax, ecx
jae 0x40b4c4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40b478
jmp 0x40b563
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b541
cmp dword [ebp - 0x10], 0
je 0x40b541
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41ffe8]
test byte [eax + edi + 0x28], 0x48
je 0x40b51b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40b506
mov byte [esi], dl
jmp 0x40b517
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41ffe8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40b563
cmp byte [ebp - 1], 0xa
jne 0x40b52a
cmp esi, ebx
jne 0x40b52a
mov byte [esi], 0xa
jmp 0x40b562
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c341
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40b563
mov byte [esi], 0xd
jmp 0x40b562
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41ffe8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40b560
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40b563
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b56c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41ffe8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b5b2
cmp word [ebx], dx
jne 0x40b5b2
or byte [eax + edi + 0x28], 4
jmp 0x40b5b7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40b71a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40b6fa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40b5f8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40b62e
cmp eax, edx
jae 0x40b63c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40b5d3
jmp 0x40b71a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b6f5
cmp dword [ebp - 0x18], 0
je 0x40b6f5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41ffe8]
test byte [eax + edi + 0x28], 0x48
je 0x40b6cb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40b68f
mov word [esi], cx
jmp 0x40b6c6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41ffe8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41ffe8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41ffe8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40b71a
pop eax
cmp word [ebp - 4], ax
jne 0x40b6db
cmp esi, ebx
jne 0x40b6db
mov word [esi], ax
jmp 0x40b717
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040c341
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40b71a
push 0xd
pop eax
jmp 0x40b6d6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41ffe8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40b714
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40b71a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40eb13
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ebb0
push ebx
push esi
call fcn.0040eadc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ea70
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40eb5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ebaf
push edi
push eax
call fcn.0040896c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40eb7d
call fcn.00408932
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ebae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ea70
add esp, 0x20
test eax, eax
jne 0x40eb9c
push edi
call fcn.00408932
jmp 0x40eba4
push ebx
call fcn.00408932
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x413f35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00413eb1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4140a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4140a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x414059
jg 0x413f91
test eax, eax
je 0x41404f
push 1
push 0x1000
call fcn.0040a242
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x413fb4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x414046
push 0x8000
push ebx
call fcn.00408082
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x413fdd
jg 0x413fd8
cmp ecx, 0x1000
jb 0x413fdd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004096e4
add esp, 0x10
cmp eax, 0xffffffff
je 0x414022
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x413fd8
jl 0x414009
test ecx, ecx
jne 0x413fca
push dword [ebp - 0xc]
push ebx
call fcn.00408082
push esi
call fcn.00408932
add esp, 0xc
xor ebx, ebx
jmp 0x4140b2
cmp byte [edi + 0x24], 0
je 0x414039
cmp dword [edi + 0x20], 5
jne 0x414039
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x414044
mov ebx, dword [edi + 0x18]
jmp 0x414046
xor ebx, ebx
push esi
call fcn.00408932
pop ecx
jmp 0x4140b2
test ecx, ecx
jg 0x41401b
jl 0x414059
test eax, eax
jae 0x41401b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040c341
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x414079
cmp byte [edi + 0x1c], 0
je 0x41401b
jmp 0x4140aa
push ebx
call fcn.00408d90
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41401b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4140b2
cmp byte [edi + 0x1c], 0
je 0x4140af
mov ebx, dword [edi + 0x18]
jmp 0x4140b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040c341
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41658d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41658d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401950
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x401a44
cmp dword [ebx + 0x2000], 0
jle 0x401a44
push esi
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045d480
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x401a1f
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401a18
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x401a18
nop dword [eax]
xor edi, edi
cmp dword [ebx + 0x2000], edi
jle 0x401a05
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x4019f6
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401a2a
inc edi
sub esi, 0xffffff80
cmp edi, dword [ebx + 0x2000]
jl 0x4019e0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4019d0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4957f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.00410c90
add esp, 4
mov eax, dword [esi + 0x14]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp eax, 8
jb 0x406150
mov ecx, dword [esi]
test ecx, ecx
je 0x40617b
mov ecx, esi
cmp eax, 8
jb 0x40615d
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x40617b
mov ecx, esi
cmp eax, 8
jb 0x40616c
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406292
lea eax, [ebp - 0x28]
push eax
call fcn.00410d00
add esp, 4
mov ecx, esi
push eax
call fcn.00403f90
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4061c9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4061bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062a3
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 8
jb 0x4061d5
mov ecx, dword [esi]
test ecx, ecx
je 0x406200
mov ecx, esi
cmp eax, 8
jb 0x4061e2
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x406200
mov ecx, esi
cmp eax, 8
jb 0x4061f1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406292
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push SysReAllocString
push eax
call fcn.00406470
add esp, 0xc
mov dword [ebp - 0x10], 3
cmp dword [ebp - 0x18], 0
jne 0x406251
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice
lea eax, [ebp - 0x40]
push SysReAllocString
push eax
call fcn.00406470
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00403f90
lea ecx, [ebp - 0x40]
call fcn.004011d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00403f90
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406292
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406288
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062a8
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0045febf
call fcn.0045febf
int3
Function at 0x406890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49588d
push eax
mov dword fs:[0], esp
sub esp, 0x18
call fcn.0043e960
test eax, eax
je 0x406978
cmp byte [ebp + 8], 0
je 0x406935
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043e330
add esp, 8
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x406945
cmp edx, 8
jb 0x406935
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40692b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406988
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp edx, 8
jb 0x406978
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40696e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406988
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0045febf
int3

Function at 0x406c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.00406890
add esp, 4
test al, al
jne 0x406c87
pop ebp
jmp fcn.00406c90
xor eax, eax
pop ebp
ret
Function at 0x406c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4958c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00406100
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x406cd2
test ecx, ecx
je 0x406da3
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
cmp word [eax], 0
je 0x406da3
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406d9d
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov byte [ebp - 4], 1
cmp byte [ebp + 8], al
je 0x406d2d
lea eax, [ebp - 0x24]
push eax
call fcn.00405b50
add esp, 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406df0
mov edx, dword [ebp - 0x10]
add esp, 0x18
mov esi, eax
cmp edx, 8
jb 0x406d81
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406d77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406de6
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
jmp 0x406da5
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
xor esi, esi
cmp edx, 8
jb 0x406dd5
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406dcb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406de6
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0045febf
int3
Function at 0x406df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4958fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x10], 0
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x406e22
mov ecx, dword [esi]
test ecx, ecx
je 0x406fe5
mov ecx, esi
cmp eax, 8
jb 0x406e33
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x406fe5
mov ecx, esi
cmp eax, 8
jb 0x406e46
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406fe5
xor eax, eax
mov dword [ebp - 0x28], 0
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], eax
je 0x406f48
push esi
lea eax, [ebp - 0x70]
push 0x49b8a8
push eax
call fcn.004035c0
push 0x49b8a0
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.00403550
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004034f0
mov edi, eax
add esp, 0x24
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x406f29
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406ef7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406eed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ff7
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.004011d0
lea ecx, [ebp - 0x58]
call fcn.004011d0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.004011d0
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x406f6c
push dword [ebp + 0x1c]
push 0x1e
push 0x32
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.004147d0
add esp, 0x20
mov dword [ebp - 0x10], eax
jmp 0x406fae
push 0
call fcn.0040c710
add esp, 4
test al, al
lea eax, [ebp - 0x28]
je 0x406f8e
push 5
push eax
push esi
call fcn.00414a60
add esp, 0xc
mov dword [ebp - 0x10], eax
jmp 0x406fae
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x406f9e
mov esi, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 5
push eax
push esi
call fcn.00425410
add esp, 0x10
mov edx, dword [ebp - 0x14]
pop edi
cmp edx, 8
jb 0x406fe5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ffc
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0045febf
call fcn.0045febf
int3
Function at 0x407010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49592d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
xor eax, eax
mov dword [ebp - 0x24], 0
push ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00427830
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.00426480
mov edx, dword [ebp - 0x10]
add esp, 8
test eax, eax
mov dword [ebp - 4], 0xffffffff
setne bl
cmp edx, 8
jb 0x4070ad
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4070a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407244
push edx
push ecx
call fcn.0041c07e
add esp, 8
test bl, bl
pop ebx
je 0x407234
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00410c90
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x4070dd
test ecx, ecx
je 0x4071f1
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
cmp word [eax], 0
je 0x4071f1
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4071eb
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov byte [ebp - 4], 2
cmp byte [ebp + 8], al
je 0x407138
lea eax, [ebp - 0x24]
push eax
call fcn.00405b50
add esp, 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406df0
mov edx, dword [ebp - 0x10]
add esp, 0x18
mov esi, eax
cmp edx, 8
jb 0x407190
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407186
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407249
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x407223
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407249
push edx
push ecx
call fcn.0041c07e
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x407221
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407217
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407249
push edx
push ecx
call fcn.0041c07e
add esp, 8
xor esi, esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0045febf
call fcn.0045febf
int3