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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cc4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x7e500c]
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.00470c40
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5fc08a
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x5fc08a
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.005fd420
or dword [ebx], eax
add esp, 0x1c
test al, 2
jne 0x5fc0d6
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x45
jge 0x5fc0c8
lea eax, [ecx + 0x64]
mov dword [esi + 0x14], eax
jmp 0x5fc0d6
cmp ecx, 0x64
jl 0x5fc0d3
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 0x5fe5d0
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 0x5fe5e1
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 0x5fe625
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x5fe609
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 0x6001d0
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.0x60025b.66
cmp edx, 0x204
je case.0x60025b.66
cmp edx, 0x205
je case.0x60025b.66
cmp edx, 0x20a
jne 0x60020c
cmp word [esi + 8], 8
jne 0x60021c
pop edi
mov al, 1
pop esi
pop ebp
ret 4
cmp edx, 0x100
jb 0x60021c
cmp edx, 0x109
jbe 0x600227
lea eax, [edx - 0x200]
cmp eax, 0xe
ja 0x600297
cmp edx, 0x100
jne 0x600268
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x60025b.65
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne case.0x60025b.65
mov eax, dword [esi + 8]
add eax, 0xffffffbf
cmp eax, 0x37
ja case.0x60025b.66
movzx eax, byte [eax + 0x6002a8]
jmp dword [eax*4 + 0x6002a0]
cmp dword [esi + 8], 0x74
je case.0x60025b.66
push dword [edi + 0x234]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x600297
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 0x6002e0
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 0x71a27c
push 0x71a27c
push str.BrowserHost
push str.WAMB
push 0xa
call fcn.00432560
add esp, 0x20
test dword [ebp + 0x20], 0x40030
jne 0x60033b
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 0x605bd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.006aa250
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
mov dl, 1
push edi
mov edi, ecx
mov ecx, esi
call fcn.005e0b80
test eax, eax
je 0x605c22
cmp eax, 2
je 0x605c10
push ecx
mov dl, 1
mov ecx, esi
call fcn.005cd7f0
add esp, 4
test al, al
jne 0x605c22
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x605c2d
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 0x605c50
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 0x605c90
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.00650ddc
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 0x605ccf
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 0x605cd7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x605c90
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.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x607c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dbde9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x7e500c]
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.005cb990
add esp, 4
test al, al
je 0x607cd7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x607cc1
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x607cd7
push ecx
mov ecx, esi
call fcn.005cc6b0
add esp, 4
push ecx
mov edx, esi
mov ecx, 0x1b
call fcn.005cb990
add esp, 4
test al, al
je 0x607d0b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x607cf5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x607d0b
push ecx
mov ecx, esi
call fcn.005cc6b0
add esp, 4
test edi, edi
jne 0x607d37
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.004271d0
mov dword [ebp - 4], 1
jmp 0x607d66
cmp edi, 1
jne 0x607d7c
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.004271d0
mov dword [ebp - 4], 2
push ecx
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.005cc180
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00427170
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 0x609ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dc147
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x7e500c]
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.00650ded
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 0x71a27c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004271d0
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 0x609c9a
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004271d0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.00427170
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.00650ded
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 0x71a27c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004271d0
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 0x609d3d
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004271d0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.00427170
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 0x60bc80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd980
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x7e500c]
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 0x60bccd
mov eax, dword [ecx]
push 0x795338
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
mov dword [ebx], 3
call fcn.005e8ed0
push 0xffffffffffffffff
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x60bd18
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x60bd0d
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 [0x707770]
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 0x60bd47
mov eax, dword [ecx]
push str.Cleaning_up_the_event_queue
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
call fcn.005e9010
lea ecx, [ebx + 8]
call fcn.0060f1c0
lea eax, [ebx + 0x34]
mov dword [ebx + 0x50], 0
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea ecx, [ebx + 0x1c]
call fcn.00427170
lea ecx, [ebx + 8]
call fcn.00443f00
push 0x5c
push ebx
call fcn.0065106e
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 0x60e690
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x60e69b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0060e6b0
Function at 0x60eaf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dc8e3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x7e500c]
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.00650ded
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 0x71a27c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004271d0
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 0x60ebbc
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004271d0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.00427170
mov dword [ebp - 4], 3
mov dword [edi + 4], 0
mov dword [edi + 0x4c], 0
mov dword [edi], 4
call fcn.005e8db0
mov dword [edi + 0x58], eax
lea eax, [edi + 0x54]
push eax
push 0
push edi
push 0x60ec30
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 0x6113e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dce5c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x7e500c]
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.00650ded
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 0x6139c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd980
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x7e500c]
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 0x613a5f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x613a4f
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x613a1d
cmp byte [0x8076b8], 0
jne 0x613a28
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
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.0065106e
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 0x6153d0
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 0x615456
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x8076bc]
mov dword [ebx], eax
test edi, edi
je 0x61541b
cmp byte [0x8076b8], 0
jne 0x615426
call fcn.006115c0
mov edi, dword [0x8076bc]
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 0x71a27c
push edi
call dword [0x707770]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x8076bc]
test eax, eax
je 0x615468
cmp byte [0x8076b8], 0
jne 0x615472
call fcn.006115c0
mov eax, dword [0x8076bc]
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 [0x707770]
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 0x6154fe
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x6154c2
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 [0x8076bc]
test ebx, ebx
je 0x6154dd
cmp byte [0x8076b8], 0
jne 0x6154e8
call fcn.006115c0
mov ebx, dword [0x8076bc]
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 0x615538
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x8076bc]
test ebx, ebx
je 0x615519
cmp byte [0x8076b8], 0
jne 0x615524
call fcn.006115c0
mov ebx, dword [0x8076bc]
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 0x71a27c
push ebx
call dword [0x707770]
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 0x615560
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 0x6155b5
mov edx, dword [0x8076bc]
test edx, edx
je 0x615588
cmp byte [0x8076b8], al
jne 0x615593
call fcn.006115c0
mov edx, dword [0x8076bc]
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 [0x707770]
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 0x6155ac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x8076bc]
mov dword [esi], eax
test edi, edi
je 0x6155df
cmp byte [0x8076b8], 0
jne 0x6155ea
call fcn.006115c0
mov edi, dword [0x8076bc]
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 [0x707770]
call esi
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x615620
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 0x61568a
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x615693
mov edi, dword [0x8076bc]
test edi, edi
je 0x615658
cmp byte [0x8076b8], 0
jne 0x615663
call fcn.006115c0
mov edi, dword [0x8076bc]
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 0x71a27c
push edi
call dword [0x707770]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x8076bc]
test eax, eax
je 0x6156a5
cmp byte [0x8076b8], 0
jne 0x6156af
call fcn.006115c0
mov eax, dword [0x8076bc]
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 [0x707770]
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 0x616320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dd39b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7e500c]
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.0061b210
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 0x6163b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6acdd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x7e500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
je 0x6163e0
call fcn.00616890
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea ecx, [edi + 0x98]
call fcn.00427170
lea ecx, [edi + 0x90]
call fcn.00518590
lea ecx, [edi + 0x88]
call fcn.00518590
lea ecx, [edi + 0x64]
call fcn.00427170
lea ecx, [edi + 0x50]
call fcn.004c63d0
lea ecx, [edi + 0x30]
call fcn.00427170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret