joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63bb70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f75b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.00482910
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x63bbea
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x63bbea
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x270f
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x1c]
call fcn.0063cf80
or dword [ebx], eax
add esp, 0x1c
test al, 2
jne 0x63bc36
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x45
jge 0x63bc28
lea eax, [ecx + 0x64]
mov dword [esi + 0x14], eax
jmp 0x63bc36
cmp ecx, 0x64
jl 0x63bc33
add ecx, 0xfffff894
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x63e330
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x63e341
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x63e385
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x63e369
mov byte [esi + 0x20], 1
mov al, 1
pop esi
pop ebx
ret
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x63ff30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov edx, dword [esi + 4]
cmp edx, 0x206
je case.0x63ffbb.66
cmp edx, 0x204
je case.0x63ffbb.66
cmp edx, 0x205
je case.0x63ffbb.66
cmp edx, 0x20a
jne 0x63ff6c
cmp word [esi + 8], 8
jne 0x63ff7c
pop edi
mov al, 1
pop esi
pop ebp
ret 4
cmp edx, 0x100
jb 0x63ff7c
cmp edx, 0x109
jbe 0x63ff87
lea eax, [edx - 0x200]
cmp eax, 0xe
ja 0x63fff7
cmp edx, 0x100
jne 0x63ffc8
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x63ffbb.65
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne case.0x63ffbb.65
mov eax, dword [esi + 8]
add eax, 0xffffffbf
cmp eax, 0x37
ja case.0x63ffbb.66
movzx eax, byte [eax + 0x640008]
jmp dword [eax*4 + 0x640000]
cmp dword [esi + 8], 0x74
je case.0x63ffbb.66
push dword [edi + 0x234]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x63fff7
push esi
push 0
push 0x37f
push dword [edi + 0x234]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
pop edi
setne al
pop esi
pop ebp
ret 4
pop edi
xor al, al
pop esi
pop ebp
ret 4

Function at 0x640040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.EvaluateNewWindow_for_url:__s_name:__s
push 0x75b10c
push 0x75b10c
push str.BrowserHost
push str.WAMB
push 0xa
call fcn.0043b0f0
add esp, 0x20
test dword [ebp + 0x20], 0x40030
jne 0x64009b
mov eax, dword [ebp + 8]
push 1
push 0
push 0
push dword [ebp + 0xc]
push str.open
push dword [eax + 0x230]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop ebp
ret 0x20
mov eax, 0x80004005
pop ebp
ret 0x20
Function at 0x645930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0067c520
mov eax, dword [0x82d084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push ecx
mov dl, 1
mov ecx, esi
call fcn.0061df20
add esp, 4
test eax, eax
je 0x645986
cmp eax, 2
je 0x645974
push ecx
mov dl, 1
mov ecx, esi
call fcn.0060fa90
add esp, 4
test al, al
jne 0x645986
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x645991
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x6459b4
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6459f0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x645a2f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x645a37
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x6459f0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
Function at 0x648220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x707659
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push ecx
mov dword [ebp - 4], eax
lea ecx, [eax + 0x18]
mov edx, esi
mov dword [ebp - 0x10], 1
call fcn.0060d9e0
add esp, 4
test al, al
je 0x6482a7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x648291
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x6482a7
push ecx
mov ecx, esi
call fcn.0060e700
add esp, 4
push ecx
mov edx, esi
mov ecx, 0x1b
call fcn.0060d9e0
add esp, 4
test al, al
je 0x6482db
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x6482c5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x6482db
push ecx
mov ecx, esi
call fcn.0060e700
add esp, 4
test edi, edi
jne 0x648307
push 0xc
xor eax, eax
mov dword [ebp - 0x18], edi
push str.temp_lbs_wid
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
mov dword [ebp - 4], 1
jmp 0x648336
cmp edi, 1
jne 0x64834c
push 0x10
xor eax, eax
mov dword [ebp - 0x18], 0
push str.temp_ins_lbs_wid
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
mov dword [ebp - 4], 2
push ecx
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0060e1d0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x64a430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7079e7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], edi
xor eax, eax
mov dword [edi], vtable.AnalyticsFramework::AnalyticsManager.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], al
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], al
mov byte [ebp - 4], 3
lea esi, [edi + 0x70]
mov dword [ebp - 0x10], esi
push 0x58
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0067ba12
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x75b10c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
add esi, 8
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
cmp esi, eax
je 0x64a52a
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042fe00
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov byte [ebp - 4], 7
lea esi, [edi + 0xa8]
mov dword [ebp - 0x2c], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0067ba12
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov byte [ebp - 4], 8
push eax
push 0x75b10c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
add esi, 8
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
cmp esi, eax
je 0x64a5cd
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042fe00
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov dword [edi + 0x68], 0
mov eax, edi
mov dword [edi + 0x6c], 0
mov byte [edi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x64c510
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e5a00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x64c55d
mov eax, dword [ecx]
push str.Waiting_for_the_async_thread_to_get_the_task_completed
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
mov dword [ebx], 3
call fcn.00628130
push 0xffffffffffffffff
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x64c5a8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x64c59d
mov esi, dword [ecx]
push eax
push dword [ebx + 0x4c]
mov esi, dword [esi + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged_or_timeout_occurs._Error____d
push ecx
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x10
push 0
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x4c], 0
test ecx, ecx
je 0x64c5d7
mov eax, dword [ecx]
push str.Cleaning_up_the_event_queue
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
call fcn.00628270
lea ecx, [ebx + 8]
call fcn.0064fa50
lea eax, [ebx + 0x34]
mov dword [ebx + 0x50], 0
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea ecx, [ebx + 0x1c]
call fcn.0042fd70
lea ecx, [ebx + 8]
call fcn.0044cf50
push 0x5c
push ebx
call fcn.0067bc93
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x64ef20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x64ef2b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0064ef40
Function at 0x64f380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x708183
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], edi
lea esi, [edi + 8]
mov dword [ebp - 0x10], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0067ba12
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x75b10c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
add esi, 0x14
mov dword [ebp - 0x30], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp esi, eax
je 0x64f44c
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042fe00
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov dword [ebp - 4], 3
mov dword [edi + 4], 0
mov dword [edi + 0x4c], 0
mov dword [edi], 4
call fcn.00628010
mov dword [edi + 0x58], eax
lea eax, [edi + 0x54]
push eax
push 0
push edi
push 0x64f4c0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x4c], eax
mov eax, edi
mov dword [edi + 0x50], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x651c70
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7086fc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov word [edi], 0
mov byte [edi + 2], 0
mov dword [edi + 4], 0x20000
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 7
mov word [edi + 0x38], ax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 7
mov word [edi + 0x50], ax
mov byte [ebp - 4], 3
lea esi, [edi + 0x84]
mov dword [edi + 0x68], 0x200000
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov word [edi + 0x80], 0x100
push 0x40
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0067ba12
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov byte [edi + 0x8c], 0
mov dword [edi + 0x90], 0x3c
mov word [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x654250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e5a00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi], vtable.WorkerThread.0
test eax, eax
je 0x6542ef
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x6542df
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x6542ad
cmp byte [0x853a6a], 0
jne 0x6542b8
call fcn.00651e50
mov ecx, dword [0x853a98]
mov esi, dword [ecx]
push ebx
push dword [edi + 0x38]
mov esi, dword [esi + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push ecx
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x10
push 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0x24], 0
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
push 0x3c
push edi
call fcn.0067bc93
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x655c60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov eax, ecx
mov ebx, edx
push 0x40000000
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x655ce6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x853a98]
mov dword [ebx], eax
test edi, edi
je 0x655cab
cmp byte [0x853a6a], 0
jne 0x655cb6
call fcn.00651e50
mov edi, dword [0x853a98]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 4]
push str.Failed_to_open_the_file_handle_at__s._Error___d_
push 0x75b10c
push edi
call dword [0x747368]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x853a98]
test eax, eax
je 0x655cf8
cmp byte [0x853a6a], 0
jne 0x655d02
call fcn.00651e50
mov eax, dword [0x853a98]
push dword [ebp + 0xc]
mov esi, dword [eax]
push dword [ebp + 8]
push str.file_size_to_which_we_have_to_extend_is__llu
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x747368]
call esi
add esp, 0x10
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x655d8e
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x655d52
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x853a98]
test ebx, ebx
je 0x655d6d
cmp byte [0x853a6a], 0
jne 0x655d78
call fcn.00651e50
mov ebx, dword [0x853a98]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_to_set_the_end_of_the_file_to_size__llu._Error____d
jmp 0x655dc8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x853a98]
test ebx, ebx
je 0x655da9
cmp byte [0x853a6a], 0
jne 0x655db4
call fcn.00651e50
mov ebx, dword [0x853a98]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_to_resize_the_file_to_size__ld._Error____d
mov esi, dword [esi + 0x24]
mov ecx, esi
push 0x75b10c
push ebx
call dword [0x747368]
call esi
add esp, 0x18
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x655df0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x655e45
mov edx, dword [0x853a98]
test edx, edx
je 0x655e18
cmp byte [0x853a6a], al
jne 0x655e23
call fcn.00651e50
mov edx, dword [0x853a98]
mov eax, dword [edx]
push ebx
push str.File_does_not_exist_at__s
push edx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x655e3c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x853a98]
mov dword [esi], eax
test edi, edi
je 0x655e6f
cmp byte [0x853a6a], 0
jne 0x655e7a
call fcn.00651e50
mov edi, dword [0x853a98]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 4]
mov ecx, esi
push eax
push ebx
push str.Failed_to_delete_file_at_path:_ls_error:_d
push edi
call dword [0x747368]
call esi
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x655f1a
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x655f23
mov edi, dword [0x853a98]
test edi, edi
je 0x655ee8
cmp byte [0x853a6a], 0
jne 0x655ef3
call fcn.00651e50
mov edi, dword [0x853a98]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 4]
push str.Failed_to_get_the_directory_attributes_for____s._Error_is__d.
push 0x75b10c
push edi
call dword [0x747368]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x853a98]
test eax, eax
je 0x655f35
cmp byte [0x853a6a], 0
jne 0x655f3f
call fcn.00651e50
mov eax, dword [0x853a98]
mov esi, dword [eax]
push ebx
push edi
push str.The_file_attributes_of_directory____s_is__d
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x747368]
call esi
add esp, 0x10
shr ebx, 4
and bl, 1
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x656bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x708c3b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x82d084]
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 + 0x40], 0
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x50]
mov dword [ebp - 4], eax
call fcn.0065baa0
xor eax, eax
mov dword [esi + 0xa8], 0
mov word [esi + 0x98], ax
mov dword [esi + 0xac], 7
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x656c40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d2840
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
je 0x656c70
call fcn.00657120
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea ecx, [edi + 0x98]
call fcn.0042fd70
lea ecx, [edi + 0x90]
call fcn.004524d0
lea ecx, [edi + 0x88]
call fcn.004524d0
lea ecx, [edi + 0x64]
call fcn.0042fd70
lea ecx, [edi + 0x50]
call fcn.00456350
lea ecx, [edi + 0x30]
call fcn.0042fd70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret