joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c496
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4b6c04]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x238], edx
push eax
push 0x20019
xor edi, edi
xor ebx, ebx
push edi
push 0x430970
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x228], edi
inc ebx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48c660
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
push eax
mov edx, esi
call fcn.0048c0d6
test eax, eax
js 0x48c660
test dword [ebp - 0x230], 0x400
jne 0x48c51b
mov ebx, edi
jmp 0x48c660
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x48c660
mov ebx, edi
push 0x1d
pop ecx
mov esi, 0x430970
lea edi, [ebp - 0x214]
rep movsd dword es:[edi], dword [esi]
push 0x192
lea eax, [ebp - 0x19e]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x234], 0x4e
mov esi, 0x104
lea ecx, [ebp - 0x214]
mov edx, esi
push 0x4199ec
call fcn.0043c842
test eax, eax
js 0x48c65d
push dword [ebp - 0x228]
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0043c842
test eax, eax
js 0x48c65d
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x214]
push 0
push 0x20000002
push 0x43094c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x48c65d
mov esi, 0x414cbc
lea edi, [ebp - 0x224]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x48c65d
mov edi, dword [ebp - 0x238]
mov edx, edi
push ecx
lea ecx, [ebp - 0x224]
call fcn.0048c17f
test eax, eax
jne 0x48c65d
lea ecx, [ebp - 0x224]
call fcn.0048c3bd
test eax, eax
jne 0x48c653
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x224]
call fcn.0048c0d6
test eax, eax
js 0x48c647
test dword [ebp - 0x230], 0x400
je 0x48c653
inc ebx
cmp ebx, 0xa
jl 0x48c533
jmp 0x48c65d
lea esi, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x22c], 0
je 0x48c675
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], 0
je 0x48c68a
push dword [ebp - 0x228]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4e80
mov esp, ebp
pop ebp
ret 4
Function at 0x48e3af
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x4aaa46
call fcn.004a5429
mov edi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ecx
xor eax, eax
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x4153dc
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov ebx, 0x80004005
test edi, edi
je 0x48e4a1
sub esp, 0x10
lea ecx, [ebp - 0x14]
mov edi, esp
mov esi, 0x430b14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0048e716
test eax, eax
js 0x48e49e
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
xor eax, eax
push eax
mov esi, dword [edi]
push eax
push eax
push edi
mov ecx, dword [esi + 0x14]
call dword [0x4ba1e0]
call dword [esi + 0x14]
push 0xd
pop eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ba1e0]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x30]
push ecx
sub esp, 0x10
mov edi, esp
mov eax, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [eax + 0xe8]
mov ecx, edi
mov esi, dword [ebp - 0x14]
push esi
call dword [0x4ba1e0]
call edi
test eax, eax
jne 0x48e494
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
push ecx
push esi
mov edi, dword [eax + 0x88]
mov ecx, edi
call dword [0x4ba1e0]
call edi
lea ecx, [ebp - 0x30]
call fcn.0048f15b
jmp 0x48e4a1
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x430ab8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48e51b
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
mov edi, dword [ebp - 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x48e4d4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x18]
push 1
push ebx
push 0x430ac8
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x48e508
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
neg eax
sbb eax, eax
not eax
and eax, edi
je 0x48e51b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 3
test esi, esi
je 0x48e53f
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4ba1e0]
call esi
mov eax, ebx
call fcn.004a53d8
ret
Function at 0x48f0cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 0x430ac8
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48f13b
cmp dword [ebp - 4], 1
je 0x48f113
cmp dword [ebp - 4], 2
je 0x48f113
push 0xd
pop eax
jmp 0x48f13b
mov ecx, dword [ebp - 8]
test esi, esi
je 0x48f135
test ecx, ecx
je 0x48f130
test cl, 1
jne 0x48f10e
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x48f135
jmp 0x48f10e
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x495194
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x46c
mov eax, 0x4ab48f
call fcn.004a5429
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x208
xor esi, esi
mov dword [ebp - 0x470], ebx
push esi
push eax
call sub.msvcrt.dll_memset
push 0x60
mov dword [ebp - 0x468], 0x104
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x450], esi
call dword [sym.imp.MFC42u.dll_operatornew]
add esp, 0x10
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x49521d
lea ecx, [edi + 0x1c]
push ecx
mov ecx, eax
call fcn.00494fdf
mov edi, eax
jmp 0x49521f
mov edi, esi
lea eax, [ebp - 0x478]
or dword [ebp - 4], 0xffffffff
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4953f2
cmp dword [ebp - 0x43c], eax
je 0x4953ef
call fcn.00447277
mov dword [ebp - 0x444], eax
mov byte [eax + 0x2d], 1
mov eax, dword [ebp - 0x444]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x444]
mov dword [eax], eax
mov eax, dword [ebp - 0x444]
mov dword [eax + 8], eax
mov dword [ebp - 0x440], esi
mov eax, esi
mov dword [ebp - 4], 1
mov ebx, esi
mov dword [ebp - 0x44c], esi
cmp dword [ebp - 0x43c], eax
jbe 0x495390
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x46c], 0xff
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x495377
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x434]
call fcn.00444d2a
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00495712
push esi
push 1
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.0043e8d8
mov ecx, edi
call fcn.00495c1f
test eax, eax
je 0x495350
mov ecx, edi
call fcn.00495092
test eax, eax
je 0x495377
lea eax, [ebp - 0x210]
mov dword [ebp - 0x438], ebx
push eax
lea eax, [ebp - 0x438]
inc ebx
push eax
lea ecx, [ebp - 0x448]
call fcn.0049605e
mov ecx, eax
call fcn.0043e521
mov eax, dword [ebp - 0x44c]
inc eax
mov dword [ebp - 0x44c], eax
cmp eax, dword [ebp - 0x43c]
jb 0x4952d1
test ebx, ebx
je 0x4953c0
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], esi
push eax
lea ecx, [ebp - 0x448]
call fcn.0049605e
push eax
mov ecx, edi
call fcn.00495712
mov ecx, edi
call fcn.00495efd
inc esi
cmp esi, ebx
jb 0x495394
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x448]
mov eax, dword [ebp - 0x444]
push eax
push dword [eax]
lea eax, [ebp - 0x438]
push eax
call fcn.004967bd
push dword [ebp - 0x444]
call dword [sym.imp.MFC42u.dll_operatordelete]
pop ecx
xor esi, esi
inc esi
test edi, edi
je 0x4953fe
push ecx
mov ecx, edi
call fcn.004927cb
mov eax, esi
call fcn.004a53d8
ret 4
Function at 0x495a41
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x438
mov eax, 0x4ab590
call fcn.004a5429
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
push 0x208
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
push 0x4153dc
call fcn.00445f14
push edi
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push edi
mov dword [ebp - 0x440], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x495b94
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0043e521
push 0x430cd8
mov ecx, esi
call fcn.00496274
push 0xffffffffffffffff
push edi
add ebx, 0x1c
mov ecx, esi
push ebx
call fcn.00494959
push 0x4199ec
mov ecx, esi
call fcn.00496274
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x495aee
mov eax, dword [edi]
jmp 0x495af0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x495b56
cmp dword [esi + 0x18], 8
jb 0x495b06
mov eax, dword [edi]
jmp 0x495b08
mov eax, edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x495b56
xor ebx, ebx
mov dword [ebp - 0x424], 7
xor eax, eax
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
push 0xffffffffffffffff
xor edi, edi
lea eax, [ebp - 0x43c]
push ebx
inc edi
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call fcn.0043e997
push ebx
push edi
lea ecx, [ebp - 0x43c]
call fcn.0043e8d8
jmp 0x495b94
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x495b61
mov eax, dword [eax]
cmp dword [esi + 0x18], 8
jb 0x495b69
mov edi, dword [edi]
lea ecx, [ebp - 0x420]
push ecx
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x4153dc
mov ecx, esi
call fcn.0043e521
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00496274
mov eax, esi
call fcn.004a53d8
ret 4
Function at 0x495efd
Capabilities:
Delete file
Delete registry key

Disassembly:
push 0x5c
mov eax, 0x4ab698
call fcn.004a5429
mov edi, ecx
lea eax, [edi + 0x1c]
mov edx, 0x430c70
push eax
lea ecx, [ebp - 0x64]
call fcn.00494cd6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov edx, eax
call fcn.00496e61
pop ecx
push 0
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0043e8d8
push 0x4153dc
mov ecx, edi
call fcn.0043e4f4
test eax, eax
jne 0x495f52
xor esi, esi
jmp 0x495ff1
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00494959
push 0x430b98
lea ecx, [ebp - 0x48]
call fcn.00444d2a
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [edi + 0x48]
call fcn.004961a3
push 0
push 1
lea ecx, [ebp - 0x48]
mov esi, dword [eax]
mov byte [ebp - 4], 2
call fcn.0043e8d8
cmp esi, dword [edi + 0x4c]
je 0x495fd2
push 0x430b98
lea ecx, [ebp - 0x48]
call fcn.00444d2a
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x48]
call fcn.004961e1
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x495fbf
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0043e8d8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x495fde
lea eax, [ebp - 0x28]
push eax
push SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x495ff1
inc esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0043e8d8
mov eax, esi
call fcn.004a53d8
ret

Function at 0x497440
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4b6c04]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
mov dword [esp + 0x14], eax
xor ebx, ebx
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call fcn.00497327
test eax, eax
je 0x497564
push 0x74
lea eax, [esp + 0x1c]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [esp + 0x1c], 0
lea eax, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x18], 0x74
push eax
push 0
push 0x43a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x92]
lea ecx, [esp + 0x32]
or dword [esp + 0x1c], 0xa2000000
shl eax, 0xa
or eax, dword [esp + 0x90]
movzx edi, ax
mov eax, edi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x98]
push eax
push 0x20
pop edx
call fcn.0043c80d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
test ebx, ebx
jne 0x497543
cmp ax, di
je 0x49751e
xor ecx, ecx
cmp cx, word [esp + 0x92]
jne 0x497543
xor eax, edi
test eax, 0x3ff
jne 0x497543
jmp 0x497521
xor ebx, ebx
inc ebx
lea eax, [esp + 0x18]
push eax
call fcn.0049757b
and dword [esp + 0x10], 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esp + 0x10], 0
lea eax, [esp + 0x18]
push eax
push 0x10
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
jmp 0x49746a
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4e80
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4976cd
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b6c04]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x210], edi
cmp dword [0x4b8708], edi
jne 0x4976fd
mov eax, 0x80004005
jmp 0x49782d
push ebx
push esi
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49771a
cmp eax, ebx
jbe 0x497737
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x497731
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x497822
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.00499cf8
mov esi, eax
test esi, esi
js 0x49781c
mov edi, dword [ebp - 0x210]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49778b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49778b
test eax, eax
jg 0x49777a
mov esi, eax
jmp 0x497783
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x497822
push dword [0x4b8700]
call sub.msvcrt.dll_free
pop ecx
mov dword [0x4b8700], edi
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
mov dword [ebp - 0x210], edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x4977e9
push 0x430d64
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0043c842
test eax, eax
js 0x4977e9
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.00499cf8
mov esi, eax
test esi, esi
js 0x49781c
mov edi, dword [ebp - 0x210]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x497806
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x497806
xor esi, esi
inc esi
push dword [0x4b8700]
call sub.msvcrt.dll_free
mov dword [0x4b8700], edi
xor edi, edi
pop ecx
jmp 0x497822
mov edi, dword [ebp - 0x210]
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a4e80
mov esp, ebp
pop ebp
ret
Function at 0x49a130
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b6c04]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0xc], ebx
lea esi, [ebx - 0xc]
neg esi
lea eax, [ebx + 4]
sbb esi, esi
and esi, eax
je 0x49a165
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x8c], 0
je 0x49a2ee
and dword [ebx + 0x8c], 0
push edi
push dword [ebx + 0x5c]
call sub.msvcrt.dll_free
pop ecx
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x49a19e
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebx + 0x6c], 0
mov ecx, dword [ebx + 0x70]
test ecx, ecx
je 0x49a1b9
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebx + 0x70], 0
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x49a20c
mov edi, dword [eax]
lea ecx, [ebp - 8]
push ecx
push 0x430d8c
push eax
mov ecx, dword [edi]
call dword [0x4ba1e0]
call dword [edi]
test eax, eax
js 0x49a20c
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x4ba1e0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49a209
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebp - 8], 0
mov ebx, dword [ebp - 0xc]
and dword [ebx + 0x74], 0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x49a263
mov edi, dword [eax]
lea ecx, [ebp - 8]
push ecx
push 0x430d8c
push eax
mov ecx, dword [edi]
call dword [0x4ba1e0]
call dword [edi]
test eax, eax
js 0x49a263
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x4ba1e0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49a260
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebp - 8], 0
mov ebx, dword [ebp - 0xc]
and dword [ebx + 0x7c], 0
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x49a2ba
mov edi, dword [eax]
lea ecx, [ebp - 8]
push ecx
push 0x430d8c
push eax
mov ecx, dword [edi]
call dword [0x4ba1e0]
call dword [edi]
test eax, eax
js 0x49a2ba
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x4ba1e0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49a2b7
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebp - 8], 0
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x49a2d5
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebx + 0x78], 0
cmp dword [ebx + 0x64], 0
pop edi
je 0x49a2ee
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx + 0x64]
call sub.msvcrt.dll_free
pop ecx
test esi, esi
je 0x49a2fc
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4e80
mov esp, ebp
pop ebp
ret
Function at 0x49cc10
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4b6c04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
lea esi, [ebx - 4]
neg esi
lea eax, [ebx + 4]
sbb esi, esi
and esi, eax
je 0x49cc3c
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x94], 0
je 0x49ccff
and dword [ebx + 0x94], 0
cmp dword [ebx + 0x9c], 0
je 0x49cc63
push 0
lea ecx, [ebx - 4]
call fcn.0049d75f
mov ecx, dword [ebx + 0x8c]
push edi
test ecx, ecx
je 0x49cc85
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebx + 0x8c], 0
cmp dword [ebx + 0x98], 0
je 0x49cc9a
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx + 0x90]
call sub.msvcrt.dll_free
push dword [ebx + 0x6c]
call sub.msvcrt.dll_free
push dword [ebx + 0x74]
call sub.msvcrt.dll_free
mov ecx, dword [ebx + 0x84]
add esp, 0xc
test ecx, ecx
je 0x49ccd9
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebx + 0x84], 0
mov ecx, dword [ebx + 0x88]
test ecx, ecx
je 0x49ccfa
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4ba1e0]
call edi
and dword [ebx + 0x88], 0
and dword [ebx + 0x20], 0
pop edi
test esi, esi
je 0x49cd0d
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4e80
mov esp, ebp
pop ebp
ret