joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ddd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a04ad
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.0047dc60
add esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.0041478d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x47de72
push 1
lea ecx, [ebp - 0x50]
push ecx
call fcn.0047dc60
add esp, 8
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x50]
call fcn.0041478d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.00402f4a
cmp dword [ebp - 0x10], 0xffffffff
je 0x47dea6
push 0
lea edx, [ebp - 0x54]
push edx
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47de9c
cmp dword [ebp - 0x54], 0x10
jne 0x47de9c
mov byte [ebp - 0x31], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x55], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402f4a
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047676d
mov esp, ebp
pop ebp
ret 4
Function at 0x47dee0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a04da
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.0047dc60
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x30]
call fcn.0041478d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x47dfe0
push 1
lea ecx, [ebp - 0x50]
push ecx
call fcn.0047dc60
add esp, 8
lea edx, [ebp - 0x30]
push edx
call fcn.0047d620
add esp, 4
movzx eax, al
test eax, eax
jne 0x47dfb7
lea ecx, [ebp - 0x50]
push ecx
call fcn.0047d620
add esp, 4
movzx edx, al
test edx, edx
je 0x47dfb7
push 0
lea ecx, [ebp - 0x30]
call fcn.0041478d
push eax
lea ecx, [ebp - 0x50]
call fcn.0041478d
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x47dfb7
lea ecx, [ebp - 0x50]
call fcn.0041478d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x50]
call fcn.0041478d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.00402f4a
cmp dword [ebp - 0x10], 0xffffffff
je 0x47e02d
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x10
jb 0x47e023
push 0
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e023
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x54]
jne 0x47e023
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0x31]
mov byte [ebp - 0x59], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402f4a
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047676d
mov esp, ebp
pop ebp
ret 4
Function at 0x47e750
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
call fcn.00406b11
push eax
call fcn.0047e3f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47e7fa
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x47e7fa
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x480], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x10]
call fcn.00443130
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x30
call fcn.00446860
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [ebp + 8]
call fcn.00406b11
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.004457b0
add esp, 8
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.00406b11
lea ecx, [ebp - 0x30]
call fcn.00406b99
jmp 0x47e857
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x480]
add ecx, 1
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x480], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00443130
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x30
call fcn.00446860
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [ebp + 8]
call fcn.00406b11
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x482150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x482231
mov word [ebp - 0xe8], 0
push 0xc6
push 0
lea ecx, [ebp - 0xe6]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x4ae21c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x482227
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x104]
call fcn.00406f58
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x108]
call fcn.00482090
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x104]
call fcn.00402f4a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047676d
mov esp, ebp
pop ebp
ret
Function at 0x48307d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.00401e7a
push str.Client
call fcn.0048b28a
pop ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
jmp 0x4830aa
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.004212a7
cmp dword [ebp - 8], eax
jae 0x483151
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00441708
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x48314c
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0x5c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 1
sete al
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.00413706
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x18]
mov ecx, dword [ebp + 8]
add ecx, 0x24
call fcn.0044088e
movzx eax, byte [0x4d376e]
test eax, eax
je 0x48314c
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
push 0x4af3e4
push 0x4af404
push str.__s____s_fix__s
push 0
push 0
call fcn.00489ffc
add esp, 0x18
jmp 0x4830a3
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.0040e8e0
movzx eax, al
test eax, eax
jne 0x4831f2
push 0
push 0xf003f
push 0x4af434
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call fcn.0048ca65
add esp, 0x14
mov dword [ebp - 0x14], eax
movzx eax, byte [0x4d376e]
test eax, eax
je 0x4831b6
push dword [ebp - 0x14]
push 0x4af4bc
push 0x4af4e8
push 0x4af508
push str.__s____s_RegDeleteValue__s___d
push 0
push 0
call fcn.00489ffc
add esp, 0x1c
push 0x4af558
call fcn.0048b1d2
pop ecx
mov dword [ebp - 0x10], eax
movzx eax, byte [0x4d376e]
test eax, eax
je 0x4831f2
push dword [ebp - 0x10]
push str.Quasar_Client_Startup
push str.CScanItem::Fix
push 0x4af5d0
push str.__s____s_DeleteTaskSchedule__s__0x_08x
push 0
push 0
call fcn.00489ffc
add esp, 0x1c
cmp dword [ebp - 4], 0
je 0x483206
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
leave
ret 0xc

Function at 0x483c5a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00420cd9
movzx eax, al
test eax, eax
jne 0x483c87
mov ecx, dword [ebp - 4]
call fcn.00413706
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
call fcn.00401849
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00420cd9
movzx eax, al
test eax, eax
jne 0x483cb6
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00413706
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00401849
leave
ret
Function at 0x485750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx eax, ax
and eax, 0xff
movzx eax, al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jbe 0x485781
xor eax, eax
inc eax
jmp 0x485783
xor eax, eax
leave
ret

Function at 0x48590b
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
and dword [eax], 0
lea eax, [ebp - 8]
push eax
push 0x4bdc78
push 1
push 0
push 0x4bdc68
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x485948
jmp 0x485978
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x485964
jmp 0x485978
push dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x485989
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 8]
cmp dword [ebp - 8], 0
je 0x48599a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x48599f
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
and dword [eax], 0
lea eax, [ebp - 8]
push eax
push 0x4bdc78
push 1
push 0
push 0x4bdc68
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4859dc
jmp 0x485a09
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4859f8
jmp 0x485a09
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x485a1a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 8]
cmp dword [ebp - 8], 0
je 0x485a2b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x485ddd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
and word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f58
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047676d
leave
ret
Function at 0x485e54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0133
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x70], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x6c], 0
push 0x40
push 0
lea eax, [ebp - 0x68]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 0x181
push 0x4b3020
lea ecx, [ebp - 0x8c]
call fcn.00406f58
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.004284bf
push 0x4b3024
lea ecx, [ebp - 0x8c]
call fcn.004284bf
push dword [ebp + 0xc]
lea ecx, [ebp - 0x8c]
call fcn.004284bf
cmp dword [ebp + 0x14], 0
je 0x485efc
mov word [ebp - 0x3c], 0xa
jmp 0x485f01
and word [ebp - 0x3c], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x8c]
call fcn.0041478d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x485f50
and dword [ebp - 0x90], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00402f4a
mov eax, dword [ebp - 0x90]
jmp 0x485f93
cmp dword [ebp + 0x10], 0
je 0x485f74
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x18], 0
je 0x485f74
push dword [ebp + 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x94], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00402f4a
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.0047676d
leave
ret
Function at 0x4890bb
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4d2a20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4d7190], 0
jne 0x4890ef
jmp 0x4892bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4d72f0]
cmp eax, 0x927c0
jae 0x489107
jmp 0x4892bb
cmp dword [0x4d71a0], 0x400000
jle 0x48911d
jmp 0x4892bb
push 0x800000
push 0x4d71a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x400000
je 0x489143
cmp dword [ebp - 0x10], 0
jne 0x489281
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d72f0], eax
cmp dword [0x4d3780], 0xffffffff
je 0x48926b
push 0x4d6f88
call fcn.00489036
pop ecx
mov ecx, dword [0x4d3780]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x28]
jb 0x48926b
ja 0x489194
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jb 0x48926b
push 0x4d6f88
lea ecx, [ebp - 0x14]
call fcn.004018ae
and dword [ebp - 4], 0
push 0x4b3dbc
lea ecx, [ebp - 0x14]
call fcn.00420d08
lea ecx, [ebp - 0x14]
call fcn.00413706
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x4d7190]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4d7190], 0
lea ecx, [ebp - 0x14]
call fcn.00413706
push eax
push 0x4d6f88
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x18]
call fcn.0042e2c0
mov byte [ebp - 4], 1
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push 0x4d6f88
lea ecx, [ebp - 0x18]
call fcn.0043576c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x489253
push 2
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0043592d
lea ecx, [ebp - 0x18]
call fcn.00420e85
mov dword [0x4d7190], eax
movzx eax, byte [0x4d6f80]
test eax, eax
je 0x489253
push str.NewFile
push 0
push 0
call fcn.00489ffc
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004357b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406df8
mov eax, 0xff800000
sub eax, dword [ebp - 0x10]
push eax
push 0x4d71a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x4892bb
cmp dword [ebp - 0x10], 0x400000
jle 0x48929c
push 0xff800000
push 0x4d71a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x4892bb
cmp dword [ebp - 0x10], 0
jle 0x4892bb
cmp dword [ebp - 0x10], 0x400000
jge 0x4892bb
push 0xffc00000
push 0x4d71a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x489600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f4c1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d2a20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.00401d20
and dword [ebp - 4], 0
push 0x104
push 0x105
lea ecx, [ebp - 0x18]
call fcn.004283fa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d47b
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040d3c7
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d40b
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00401000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00406df8
push str.TAVConfig.ini
lea ecx, [ebp - 0x18]
call fcn.00420d08
lea ecx, [ebp - 0x18]
call fcn.00413706
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4896c7
mov byte [ebp - 0x1d], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406df8
mov al, byte [ebp - 0x1d]
jmp 0x489702
or dword [ebp - 0x10], 0xffffffff
push 0xffffffffffffffff
push 0x4b3ba4
push 0x4b3bb8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0048906f
add esp, 0x10
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebp - 0x14], 0xffffffff
setne al
mov byte [ebp - 0x1e], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406df8
mov al, byte [ebp - 0x1e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x48982c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fa62
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push ebx
mov eax, dword [0x4d2a20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00401d20
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.:__Tid_d_
lea eax, [ebp - 0x10]
push eax
call fcn.00425a9f
add esp, 0xc
mov ecx, dword [ebp + 0x10]
call fcn.00401c57
test eax, eax
jle 0x4898a9
mov ecx, dword [ebp + 0x10]
call fcn.00401c57
dec eax
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00428316
movsx eax, al
cmp eax, 0xa
je 0x4898a9
push 0xa
mov ecx, dword [ebp + 0x10]
call fcn.004357c5
lea eax, [ebp - 0x18]
push eax
call fcn.00489367
pop ecx
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x12c]
lea eax, [ebp - 0x1c]
push eax
call fcn.004357de
add esp, 0xc
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push dword [ebp - 0x134]
lea eax, [ebp - 0x20]
push eax
call fcn.004357de
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x13c]
mov ecx, dword [ebp + 0x10]
call fcn.0040d384
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00406df8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00406df8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00406df8
movzx eax, byte [0x4d72ef]
test eax, eax
je 0x489999
push 0xfde9
mov ecx, dword [ebp + 0x10]
call fcn.00413706
push eax
lea ecx, [ebp - 0x124]
call fcn.0040343c
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
call fcn.00413706
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x124]
call fcn.00421592
call fcn.004890bb
cmp dword [0x4d71a0], 0x400000
jge 0x4899f8
push 0x4d71a0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 0x400000
jge 0x4899ed
cmp dword [0x4d7190], 0
je 0x4899ed
and dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00401c57
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00413706
push eax
push dword [0x4d7190]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4d71a0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [ebp + 8], 0
je 0x489a21
movzx eax, byte [0x4d72ee]
test eax, eax
je 0x489a21
mov eax, dword [ebp + 0x10]
push dword [eax]
push 0x4b3e90
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.004627ab
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406df8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
leave
ret