joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x42b458]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [0x42d740]
call fcn.00402650
mov eax, dword [0x42d740]
push 0
push dword [eax + 0x5b8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x42d740]
push dword [eax + 0x5b4]
mov dword [eax + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp]
mov dword [esp], 0x10
push eax
mov eax, dword [0x42d740]
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push dword [eax + 0x5ac]
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x405bf2
call fcn.00405b50
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret

Function at 0x405c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x405c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x42d740]
mov dword [ecx + 0x5b8], eax
test eax, eax
jne 0x405c55
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x5bc], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x407970
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x42b458]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [esp + 0x168], ax
lea eax, [esp + 0x16a]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [esp + 0x160]
call fcn.00401710
lea eax, [ebx + 0xce]
push eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [esp + 0x160], 0
jne 0x4079df
xor ecx, ecx
jmp 0x4079ff
lea ecx, [esp + 0x160]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4079f0
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [esp + 0x164]
push ecx
lea ecx, [ebx + 0x184]
call fcn.00401e00
lea esi, [ebx + 0x18]
mov ecx, 0x53
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x12]
and eax, 1
or eax, 0
je 0x407a3c
xor eax, eax
cmp word [esp + 0x3e], ax
setne al
inc eax
jmp 0x407a3e
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x168], eax
call fcn.00409df0
mov ecx, ebx
call fcn.00409eb0
test eax, eax
je 0x407b14
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx + 0x3a4]
mov eax, dword [ebx + 0x14]
lea ecx, [edi - 0x100000]
cmp dword [eax + 0xc0], ecx
jbe 0x407b2b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x407aa4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0xc], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x407ab5
push eax
call esi
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x407af0
push eax
call esi
lea esi, [ebx + 0x19c]
mov dword [ebx + 4], 0xffffffff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407aea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407aea
mov ecx, esi
call fcn.004018d0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
imul ecx, edi, 0x19
mov eax, 0x51eb851f
mul ecx
mov ecx, ebx
shr edx, 5
add edx, edi
mov dword [ebx + 0x3a4], edx
call fcn.00409eb0
test eax, eax
jne 0x407a60
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [ecx + 0xc0]
shr eax, 0x14
add eax, 2
cmp dword [ebx + 0x168], 1
jne 0x407b54
cmp word [ecx + 0xba], ax
je 0x407b94
mov word [ecx + 0xba], ax
jmp 0x407b64
cmp word [ecx + 0xc6], ax
je 0x407b94
mov word [ecx + 0xc6], ax
cmp dword [ebx + 0x198], 8
lea eax, [ebx + 0x184]
jb 0x407b75
mov eax, dword [eax]
mov esi, dword [ebx + 0x14]
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.0040df50
add esp, 0x564
mov ecx, dword [esp + 0x36c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x407bb0
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x407bdd
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407bf4
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407c29
push eax
call edi
lea edi, [esi + 0x19c]
mov dword [esi + 4], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407c29
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407c29
mov ecx, edi
call fcn.004018d0
pop edi
mov dword [esi + 0x3a4], 0
pop esi
ret
Function at 0x409eb0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x19c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_imc.map
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409f02
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409f02
mov ecx, edi
call fcn.004018d0
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x409f5f
push str.Iime_Trie_Codetable
push dword [esi + 0x3a4]
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x409f5f
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x409f71
mov ecx, esi
call fcn.00407bb0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x409f89
jmp 0x409f80
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x409f80
cmp dword [esi + 0x198], 8
lea eax, [esi + 0x184]
jb 0x409f9a
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
call fcn.0040a020
test eax, eax
je 0x409f58
mov eax, dword [esi + 0x168]
test eax, eax
je 0x409fb7
cmp eax, 2
jne 0x40a00a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.00401710
push str.Iime.pyc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0040a020
test eax, eax
je 0x409f58
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x40d800
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fdc3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp word [edx], ax
jne 0x40d85f
xor ecx, ecx
jmp 0x40d873
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d864
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00401e00
mov edx, dword [ebp + 0xc]
cmp word [edx], 0
jne 0x40d889
xor ecx, ecx
jmp 0x40d89f
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d890
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x18]
call fcn.00401e00
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], 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 0x10

Function at 0x40dbe0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x40dc15
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x40dc01
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dc01
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
lea eax, [ebp + 0xc]
push eax
push 0x800
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x40dc78
call ebx
cmp eax, 0xea
je 0x40dc53
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
cmovne eax, dword [ebp + 0xc]
xor ecx, ebp
pop edi
pop ebx
call fcn.00412426
mov esp, ebp
pop ebp
ret 8
Function at 0x40deb0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dee1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40df15
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x564
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412426
mov esp, ebp
pop ebp
ret

Function at 0x40df50
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [ebp + 8]
mov ecx, 0x159
lea edi, [ebp - 0x574]
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40df96
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40df83
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x564
lea eax, [ebp - 0x574]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x40e000
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x10
call fcn.004017e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e090
mov ecx, esi
call fcn.0040e230
sub esp, 0x150
mov ecx, 0x53
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040e120
add esp, 0x150
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e0cb
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x14e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esi + 0x34], 0xa
mov ebx, eax
jne 0x40e0fa
xor eax, eax
mov word [esi + 0x34], ax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412426
mov esp, ebp
pop ebp
ret

Function at 0x40e120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x53
lea esi, [ebp + 8]
lea edi, [ebp - 0x368]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
movsw word es:[edi], word [esi]
call fcn.00413440
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x10
call fcn.004017e0
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e21a
mov eax, 0x14e
mov dword [ebp - 0x218], 0
push 0
mov word [ebp - 0x368], ax
lea eax, [ebp - 0x218]
push eax
push 0x14e
lea eax, [ebp - 0x368]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0xffffffff
call fcn.0040da90
push ecx
lea ecx, [ebp - 0x214]
call fcn.0040dca0
mov eax, dword [ebp - 0x214]
cmp eax, 0xffffffff
je 0x40e205
push eax
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x40e230
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x42b458]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
mov ebx, ecx
mov eax, 0x14e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov word [ebx], ax
xor eax, eax
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], ax
mov dword [ebx + 0xa], eax
mov eax, 2
mov word [ebx + 0x12], ax
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x14a], eax
lea eax, [ebx + 0x36]
push 0x427308
push eax
mov dword [ebx + 2], 0x3a7b60dd
mov dword [ebx + 6], 0x1a50
mov dword [ebx + 0x24], 0x3d002d
mov dword [ebx + 0x28], 0x5c006a
mov dword [ebx + 0x2c], 0x3b
mov dword [ebx + 0x14], 0xd0002
mov dword [ebx + 0xe], 0xc0005
mov dword [ebx + 0x18], 0x10000
mov dword [ebx + 0x142], 0
mov dword [ebx + 0x13e], 0
mov dword [ebx + 0x1c], 0x10000
mov dword [ebx + 0x146], 6
call esi
push 0x427308
lea eax, [ebx + 0x76]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [esp + 0x260]
mov edx, 7
call fcn.004017e0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40e349
push str.Iime.imc
lea eax, [ebx + 0xb6]
push eax
call esi
jmp 0x40e3b8
lea ecx, [esp + 0x260]
call fcn.00401710
push str..imc
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e3b2
test byte [esp + 0x10], 0x10
je 0x40e397
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x40e382
jmp 0x40e3aa
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + 0xb6]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0xb
lea ecx, [esp + 0x260]
call fcn.004017e0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e3fe
push str.Iime.ims
lea eax, [ebx + 0xf6]
push eax
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x260]
call fcn.00401710
push str..ims
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e466
test byte [esp + 0x10], 0x10
je 0x40e44c
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x40e437
jmp 0x40e45f
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + 0xb6]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x40ec30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x77c
mov eax, dword [0x42b458]
xor eax, esp
mov dword [esp + 0x778], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [esp + 0x580], ax
lea eax, [esp + 0x582]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [esp + 0x578]
mov edx, 0xa
call fcn.004017e0
cmp word [esp + 0x578], 0
jne 0x40ec8f
xor ecx, ecx
jmp 0x40ecaf
lea ecx, [esp + 0x578]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eca0
sub ecx, edx
sar ecx, 1
push ecx
lea edi, [esi + 0x18]
lea eax, [esp + 0x57c]
mov dword [esp + 0x10], edi
push eax
mov ecx, edi
call fcn.00401e00
xor eax, eax
xorps xmm0, xmm0
push 0x53a
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x42]
push eax
movdqu xmmword [esp + 0x1e], xmm0
movdqu xmmword [esp + 0x2e], xmm0
movq qword [esp + 0x3e], xmm0
call fcn.00413440
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40ecfd
mov edi, dword [edi]
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.0040deb0
movzx eax, word [esp + 0xca]
shl eax, 0x14
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40ed21
mov dword [esi + 0x14], 0x4b00000
mov ecx, esi
call fcn.0040efe0
test eax, eax
je 0x40ede1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ed40
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp dword [eax + 0xc0], ebx
jbe 0x40edf8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ed74
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40ed85
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40edbd
push eax
call edi
lea edi, [esi + 0x30]
mov dword [esi + 4], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40edb7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40edb7
mov ecx, edi
call fcn.004018d0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + ebx*4]
mov eax, 0x51eb851f
shl ecx, 2
mul ecx
mov ecx, esi
shr edx, 5
add edx, ebx
mov dword [esi + 0x14], edx
call fcn.0040efe0
test eax, eax
jne 0x40ed40
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x778]
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [ecx + 0xc0]
shr eax, 0x14
inc eax
cmp word [ecx + 0xba], ax
je 0x40ee45
mov word [ecx + 0xba], ax
cmp dword [esi + 0x2c], 8
jb 0x40ee21
mov edi, dword [esi + 0x18]
mov dword [esp + 0xc], edi
mov esi, dword [esi + 0x10]
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x570]
call fcn.0040df50
add esp, 0x564
mov ecx, dword [esp + 0x784]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Check if file exists
Create directory
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ee85
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40ee9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40eed1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
add esi, 0x30
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eed1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40eed1
mov ecx, esi
pop esi
jmp fcn.004018d0
pop esi
ret
Function at 0x40f7e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x77c
mov eax, dword [0x42b458]
xor eax, esp
mov dword [esp + 0x778], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [esp + 0x580], ax
lea eax, [esp + 0x582]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [esp + 0x578]
mov edx, 8
call fcn.004017e0
cmp word [esp + 0x578], 0
jne 0x40f83f
xor ecx, ecx
jmp 0x40f85f
lea ecx, [esp + 0x578]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f850
sub ecx, edx
sar ecx, 1
push ecx
lea edi, [esi + 0x164]
lea eax, [esp + 0x57c]
mov dword [esp + 0x10], edi
push eax
mov ecx, edi
call fcn.00401e00
xor eax, eax
xorps xmm0, xmm0
push 0x53a
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x42]
push eax
movdqu xmmword [esp + 0x1e], xmm0
movdqu xmmword [esp + 0x2e], xmm0
movq qword [esp + 0x3e], xmm0
call fcn.00413440
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40f8b0
mov edi, dword [edi]
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.0040deb0
movzx eax, word [esp + 0xca]
shl eax, 0x14
mov dword [esi + 0x384], eax
test eax, eax
jne 0x40f8da
mov dword [esi + 0x384], 0xa00000
mov ecx, esi
call fcn.0040fdb0
test eax, eax
je 0x40f99a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x384]
cmp dword [eax + 0xc0], ebx
jbe 0x40f9b1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40f927
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40f938
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40f973
push eax
call edi
lea edi, [esi + 0x17c]
mov dword [esi + 4], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f96d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f96d
mov ecx, edi
call fcn.004018d0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + ebx*4]
mov eax, 0x51eb851f
shl ecx, 2
mul ecx
mov ecx, esi
shr edx, 5
add edx, ebx
mov dword [esi + 0x384], edx
call fcn.0040fdb0
test eax, eax
jne 0x40f8f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x778]
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [ecx + 0xc0]
shr eax, 0x14
inc eax
cmp word [ecx + 0xba], ax
je 0x40fa04
mov word [ecx + 0xba], ax
cmp dword [esi + 0x178], 8
jb 0x40f9e0
mov edi, dword [esi + 0x164]
mov dword [esp + 0xc], edi
mov esi, dword [esi + 0x10]
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x570]
call fcn.0040df50
add esp, 0x564
mov ecx, dword [esp + 0x784]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412426
mov esp, ebp
pop ebp
ret