joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407621
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407642
mov eax, dword [eax + 4]
jmp 0x407645
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40766c
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223b
leave
ret 4

Function at 0x409c11
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x27f4
mov dword [ebp - 0x25c], edi
call fcn.004050f5
lea ecx, [ebp - 0x250]
call fcn.0040fff3
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409c59
lea eax, [ebp - 0x24c]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00432460
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x258], eax
je 0x409cd4
push eax
call ebx
test eax, eax
je 0x409cd4
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409cd4
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401357
jmp 0x409cfd
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409cfd
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409cf1
mov eax, dword [eax + 4]
jmp 0x409cf4
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c09d
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.00401708
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401471
push 0x443184
push edi
call fcn.0040c86e
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409e2c
cmp dword [ebx + 0x88], 0
je 0x409e2c
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c6cf
test al, al
jne 0x409e2c
lea esi, [ebp - 0x298]
call fcn.00402f9a
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401ac5
call fcn.0040c911
push 0x25
push 0x3a
call fcn.0040c7f3
push 0x25
push 0x5c
call fcn.0040c7f3
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403049
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401471
cmp byte [ebp - 0x251], 0
je 0x409e12
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.0040317f
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401471
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401471
lea eax, [ebp - 0x298]
call fcn.0040303a
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
Function at 0x40bf93
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00432460
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40bfe6
xor al, al
jmp 0x40c01f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c007
cmp dword [ebp - 0x80], edi
je 0x40bfe2
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40bfe2
lea eax, [ebp - 0x7c]
call fcn.00401357
cmp dword [ebp - 0x80], edi
je 0x40c01d
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.0043223b
add ebp, 0x398
leave
ret

Function at 0x40c036
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00432460
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit.exe
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x40c099
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40c09d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x25
call fcn.004013c5
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c0dc
call fcn.00401ac5
mov eax, esi
jmp 0x40c178
lea esi, [ebp - 0x20]
call fcn.00401ac5
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c0f2
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40c10a
mov eax, edi
jmp 0x40c160
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431f1d
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c130
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c154
cmp eax, esi
ja 0x40c154
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401357
push dword [ebp - 0x24]
call fcn.00432128
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401ac5
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043223b
leave
ret
Function at 0x40d19b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401ac5
mov eax, esi
push 0x24
push eax
call fcn.0040d8da
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d1d0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d1fa
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
xor bl, bl
jmp 0x40d1de

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401ac5
mov eax, esi
push 0x24
push eax
call fcn.0040d8da
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d233
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d261
test al, 0x10
jne 0x40d261
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
xor bl, bl
jmp 0x40d245

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401ac5
mov eax, esi
push 0x24
push eax
call fcn.0040d8da
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d29a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2c8
test al, 0x10
je 0x40d2c8
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
xor bl, bl
jmp 0x40d2ac

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

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d2da
mov eax, dword [esi]
jmp 0x40d2dc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2f7
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db62
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d2ff
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x40d30e
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x44e4f8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401ac5
mov eax, esi
push 0x10
push eax
call fcn.0040d8da
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d05c
lea esi, [esp + 0x1c]
call fcn.0040ebe4
lea eax, [esp + 0x3c]
push 0x442df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fd3
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d7e5
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401471
cmp byte [esp + 0x1b], bl
je 0x40d48c
lea esi, [esp + 0x58]
call fcn.0040d150
test al, al
jne 0x40d476
mov eax, esi
call fcn.0040d13d
test al, al
mov eax, esi
je 0x40d3d9
call fcn.0040d139
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
push eax
call fcn.0040d30e
add esp, 0xc
jmp 0x40d3fc
call fcn.0040d139
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2cc
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d46a
lea esi, [esp + 0x58]
call fcn.0040d150
test al, al
jne 0x40d476
mov eax, esi
call fcn.0040d13d
test al, al
mov eax, esi
je 0x40d43f
call fcn.0040d139
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
push eax
call fcn.0040d30e
add esp, 0xc
jmp 0x40d462
call fcn.0040d139
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2cc
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401471
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d852
test al, al
jne 0x40d406
lea eax, [esp + 0x1c]
call fcn.0040d8a3
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d8da
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d4b2
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4ce
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db62
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d4dd
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d4f1
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d7cd
lea eax, [esp + 0x58]
call fcn.0040d08a
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401471
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223b
mov esp, ebp
pop ebp
ret
Function at 0x40db6d
Capabilities:
Move file

Disassembly:
jmp 0x40f494
cmp dword [eax + 0x18], 8
jb 0x40f49f
mov eax, dword [eax + 4]
jmp 0x40f4a2
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40f4ad
mov ecx, dword [ecx + 4]
jmp 0x40f4b0
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40db72
Capabilities:
Create directory

Disassembly:
jmp 0x40f4be
cmp dword [eax + 0x18], 8
jb 0x40f4c9
mov eax, dword [eax + 4]
jmp 0x40f4cc
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4436fc
mov esi, ecx
call fcn.0043210d
pop ecx
push eax
mov eax, esi
call fcn.0040de5c
cmp eax, 0xffffffff
jne 0x40dbd8
cmp dword [esi + 0x18], 8
jb 0x40dbc2
mov esi, dword [esi + 4]
jmp 0x40dbc5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40dbf5
lea eax, [ebp - 0x50]
call fcn.0040d05c
push eax
push esi
call fcn.0040d8ad
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x50]
call fcn.0040d08a
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret

Function at 0x40e69c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40e6b1
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40e77f
cmp eax, ebx
je 0x40e77f
jmp 0x40e6ec
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e77f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040fa45
test al, al
jne 0x40e71a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x20]
mov ebx, dword [eax]
push 0
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
add ebx, 0x18
push dword [ebp - 0x18]
call fcn.0040e4a1
sub esp, 0x1c
mov esi, esp
call fcn.00401ac5
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e77f
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
add dword [ebp - 4], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
jne 0x40e6ea
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40f39e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.00432460
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40f400
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401357
mov al, 1
jmp 0x40f402
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043223b
leave
ret

Function at 0x40f463
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40f46d
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40f480
mov eax, dword [eax + 4]
jmp 0x40f483
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40f4f8
mov eax, dword [edi]
jmp 0x40f4fa
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f50c
mov al, 1
jmp 0x40f5a8
cmp dword [esi + 0x18], 8
jb 0x40f516
mov eax, dword [edi]
jmp 0x40f518
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f5a6
cmp dword [esi + 0x18], 8
jb 0x40f531
mov eax, dword [edi]
jmp 0x40f533
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040118b
push 0
lea eax, [ebp - 0x20]
call fcn.0040f463
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401471
test bl, bl
pop ebx
jne 0x40f5a6
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f56d
mov eax, dword [edi]
jmp 0x40f56f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f505
cmp dword [esi + 0x18], 8
jb 0x40f584
mov eax, dword [edi]
jmp 0x40f586
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040118b
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f463
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40f5c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x44f94c], ebx
push esi
mov esi, ecx
je 0x40f5fb
push 0xffffffffffffffff
push esi
mov eax, 0x44f938
call fcn.00401708
mov al, 1
jmp 0x40f697
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00432460
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40f695
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.00432460
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40f685
cmp eax, ebx
je 0x40f685
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f68b
lea eax, [ebp - 0x210]
call fcn.00401357
jmp 0x40f5f4
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret

Function at 0x40f6a5
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.00432460
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40f6f3
mov edi, dword [edi + 4]
jmp 0x40f6f6
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f701
mov ebx, dword [ebx + 4]
jmp 0x40f704
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40f72b
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401357
mov al, 1
jmp 0x40f72d
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f826
mov eax, dword [eax + 4]
jmp 0x40f829
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x40fa45
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fa72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fa72
xor al, al
jmp 0x40fa8d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043cc80
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40fbd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40fbd8
mov dword [ecx*4 + 0x456400], eax
inc ecx
cmp ecx, 0x100
jb 0x40fbd3
mov edx, 0x800
jmp 0x40fc25
mov eax, dword [ecx*4 + 0x456000]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x456400]
inc ecx
mov dword [ecx*4 + 0x4563fc], eax
cmp ecx, edx
jb 0x40fc04
mov dword [0x452bf4], 0x440770
call fcn.0040fdd9
test eax, eax
pop esi
jne 0x40fc47
mov dword [0x452bf4], 0x440690
ret
Function at 0x41d1ab
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d1c2
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d1c4
add eax, eax
dec edx
test edx, edx
jg 0x41d1b5
mov dword [ecx*4 + 0x452bf8], eax
inc ecx
cmp ecx, 0x100
jb 0x41d1ad
ret