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.0040ffe0
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.00401337
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.004016e8
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401451
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.00402f7a
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401aa5
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.00403029
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401451
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.0040315f
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401451
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401451
lea eax, [ebp - 0x298]
call fcn.0040301a
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401451
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.00401337
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.004013a5
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c0dc
call fcn.00401aa5
mov eax, esi
jmp 0x40c178
lea esi, [ebp - 0x20]
call fcn.00401aa5
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.00401337
push dword [ebp - 0x24]
call fcn.00432128
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401aa5
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043223b
leave
ret
Function at 0x40d194
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.00401aa5
mov eax, esi
push 0x24
push eax
call fcn.0040d8eb
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d1c9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d1f3
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
xor bl, bl
jmp 0x40d1d7

Function at 0x40d1f7
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.00401aa5
mov eax, esi
push 0x24
push eax
call fcn.0040d8eb
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d22c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d25a
test al, 0x10
jne 0x40d25a
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
xor bl, bl
jmp 0x40d23e

Function at 0x40d25e
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.00401aa5
mov eax, esi
push 0x24
push eax
call fcn.0040d8eb
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d293
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2c1
test al, 0x10
je 0x40d2c1
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret
xor bl, bl
jmp 0x40d2a5

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

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d2d3
mov eax, dword [esi]
jmp 0x40d2d5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2f0
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db73
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d2f8
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 0x40d307
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.00401aa5
mov eax, esi
push 0x10
push eax
call fcn.0040d8eb
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d05c
lea esi, [esp + 0x1c]
call fcn.0040d7c6
lea eax, [esp + 0x3c]
push 0x442df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fb3
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d7f6
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401451
cmp byte [esp + 0x1b], bl
je 0x40d485
lea esi, [esp + 0x58]
call fcn.0040d149
test al, al
jne 0x40d46f
mov eax, esi
call fcn.0040d136
test al, al
mov eax, esi
je 0x40d3d2
call fcn.0040d132
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
push eax
call fcn.0040d307
add esp, 0xc
jmp 0x40d3f5
call fcn.0040d132
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2c5
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d463
lea esi, [esp + 0x58]
call fcn.0040d149
test al, al
jne 0x40d46f
mov eax, esi
call fcn.0040d136
test al, al
mov eax, esi
je 0x40d438
call fcn.0040d132
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
push eax
call fcn.0040d307
add esp, 0xc
jmp 0x40d45b
call fcn.0040d132
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2c5
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401451
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d863
test al, al
jne 0x40d3ff
lea eax, [esp + 0x1c]
call fcn.0040d8b4
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d8eb
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d4ab
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4c7
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db73
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d4d6
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d4ea
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d7de
lea eax, [esp + 0x58]
call fcn.0040d08a
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401451
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 0x40db7e
Capabilities:
Move file

Disassembly:
jmp 0x40f481
cmp dword [eax + 0x18], 8
jb 0x40f48c
mov eax, dword [eax + 4]
jmp 0x40f48f
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40f49a
mov ecx, dword [ecx + 4]
jmp 0x40f49d
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40db83
Capabilities:
Create directory

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

Function at 0x40db9c
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.0040de6d
cmp eax, 0xffffffff
jne 0x40dbe9
cmp dword [esi + 0x18], 8
jb 0x40dbd3
mov esi, dword [esi + 4]
jmp 0x40dbd6
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40dc06
lea eax, [ebp - 0x50]
call fcn.0040d05c
push eax
push esi
call fcn.0040d8be
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 0x40e6a5
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 0x40e6ba
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 0x40e788
cmp eax, ebx
je 0x40e788
jmp 0x40e6f5
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e788
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.0040fa32
test al, al
jne 0x40e723
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.0040e557
sub esp, 0x1c
mov esi, esp
call fcn.00401aa5
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e788
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 0x40e6f3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40f38b
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 0x40f3ed
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401337
mov al, 1
jmp 0x40f3ef
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043223b
leave
ret

Function at 0x40f450
Capabilities:
Set file attributes

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

Function at 0x40f4cd
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 0x40f4e5
mov eax, dword [edi]
jmp 0x40f4e7
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f4f9
mov al, 1
jmp 0x40f595
cmp dword [esi + 0x18], 8
jb 0x40f503
mov eax, dword [edi]
jmp 0x40f505
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f593
cmp dword [esi + 0x18], 8
jb 0x40f51e
mov eax, dword [edi]
jmp 0x40f520
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040118b
push 0
lea eax, [ebp - 0x20]
call fcn.0040f450
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401451
test bl, bl
pop ebx
jne 0x40f593
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f55a
mov eax, dword [edi]
jmp 0x40f55c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f4f2
cmp dword [esi + 0x18], 8
jb 0x40f571
mov eax, dword [edi]
jmp 0x40f573
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040118b
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f450
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40f5b3
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 0x40f5e8
push 0xffffffffffffffff
push esi
mov eax, 0x44f938
call fcn.004016e8
mov al, 1
jmp 0x40f684
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 0x40f682
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 0x40f672
cmp eax, ebx
je 0x40f672
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f678
lea eax, [ebp - 0x210]
call fcn.00401337
jmp 0x40f5e1
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret

Function at 0x40f692
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 0x40f6e0
mov edi, dword [edi + 4]
jmp 0x40f6e3
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f6ee
mov ebx, dword [ebx + 4]
jmp 0x40f6f1
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 0x40f718
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401337
mov al, 1
jmp 0x40f71a
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 0x40f808
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f813
mov eax, dword [eax + 4]
jmp 0x40f816
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 0x40fa32
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 0x40fa5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fa5f
xor al, al
jmp 0x40fa7a
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 0x40fbbd
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 0x40fbc5
mov dword [ecx*4 + 0x456400], eax
inc ecx
cmp ecx, 0x100
jb 0x40fbc0
mov edx, 0x800
jmp 0x40fc12
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 0x40fbf1
mov dword [0x452bf4], 0x440770
call fcn.0040fdc6
test eax, eax
pop esi
jne 0x40fc34
mov dword [0x452bf4], 0x440690
ret
Function at 0x41d1a6
Capabilities:
Hash data using crc32b

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