joyce8/EMBER2024-capa huggingface dataset:
Function at 0x649c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709489
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x82f084]
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.0060f1e0
add esp, 4
test al, al
je 0x649cb7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x649ca1
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x649cb7
push ecx
mov ecx, esi
call fcn.0060ff00
add esp, 4
push ecx
mov edx, esi
mov ecx, 0x1b
call fcn.0060f1e0
add esp, 4
test al, al
je 0x649ceb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x649cd5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x649ceb
push ecx
mov ecx, esi
call fcn.0060ff00
add esp, 4
test edi, edi
jne 0x649d17
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 0x649d46
cmp edi, 1
jne 0x649d5c
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.0060f9d0
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 0x64be60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709817
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x82f084]
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.0067d662
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 0x75c10c
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 0x64bf5a
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.0067d662
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 0x75c10c
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 0x64bffd
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 0x64df50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e7870
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x82f084]
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 0x64df9d
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 [0x748368]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
mov dword [ebx], 3
call fcn.006299d0
push 0xffffffffffffffff
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x64dfe8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x64dfdd
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 [0x748368]
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 0x64e017
mov eax, dword [ecx]
push str.Cleaning_up_the_event_queue
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
call fcn.00629b10
lea ecx, [ebx + 8]
call fcn.00651490
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.0044d2d0
push 0x5c
push ebx
call fcn.0067d8e3
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 0x650960
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x65096b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00650980
Function at 0x650dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709fb3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x82f084]
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.0067d662
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 0x75c10c
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 0x650e8c
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.006298b0
mov dword [edi + 0x58], eax
lea eax, [edi + 0x54]
push eax
push 0
push edi
push 0x650f00
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 0x6536b0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70a52c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x82f084]
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.0067d662
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 0x655c90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e7870
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x82f084]
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 0x655d2f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x655d1f
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x655ced
cmp byte [0x855a6a], 0
jne 0x655cf8
call fcn.00653890
mov ecx, dword [0x855a98]
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 [0x748368]
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.0067d8e3
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 0x657810
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 0x657896
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x855a98]
mov dword [ebx], eax
test edi, edi
je 0x65785b
cmp byte [0x855a6a], 0
jne 0x657866
call fcn.00653890
mov edi, dword [0x855a98]
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 0x75c10c
push edi
call dword [0x748368]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x855a98]
test eax, eax
je 0x6578a8
cmp byte [0x855a6a], 0
jne 0x6578b2
call fcn.00653890
mov eax, dword [0x855a98]
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 [0x748368]
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 0x65793e
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x657902
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 [0x855a98]
test ebx, ebx
je 0x65791d
cmp byte [0x855a6a], 0
jne 0x657928
call fcn.00653890
mov ebx, dword [0x855a98]
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 0x657978
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x855a98]
test ebx, ebx
je 0x657959
cmp byte [0x855a6a], 0
jne 0x657964
call fcn.00653890
mov ebx, dword [0x855a98]
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 0x75c10c
push ebx
call dword [0x748368]
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 0x6579a0
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 0x6579f5
mov edx, dword [0x855a98]
test edx, edx
je 0x6579c8
cmp byte [0x855a6a], al
jne 0x6579d3
call fcn.00653890
mov edx, dword [0x855a98]
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 [0x748368]
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 0x6579ec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x855a98]
mov dword [esi], eax
test edi, edi
je 0x657a1f
cmp byte [0x855a6a], 0
jne 0x657a2a
call fcn.00653890
mov edi, dword [0x855a98]
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 [0x748368]
call esi
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x657a60
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 0x657aca
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x657ad3
mov edi, dword [0x855a98]
test edi, edi
je 0x657a98
cmp byte [0x855a6a], 0
jne 0x657aa3
call fcn.00653890
mov edi, dword [0x855a98]
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 0x75c10c
push edi
call dword [0x748368]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x855a98]
test eax, eax
je 0x657ae5
cmp byte [0x855a6a], 0
jne 0x657aef
call fcn.00653890
mov eax, dword [0x855a98]
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 [0x748368]
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 0x658760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70aa7b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x82f084]
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.0065d650
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 0x6587f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d44a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
je 0x658820
call fcn.00658cd0
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.00452880
lea ecx, [edi + 0x88]
call fcn.00452880
lea ecx, [edi + 0x64]
call fcn.0042fd70
lea ecx, [edi + 0x50]
call fcn.00456700
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
Function at 0x6589b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x658a08
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x6589e0
cmp byte [0x855a6a], 0
jne 0x6589eb
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.file_handler_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 8
jmp 0x658af2
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x658a8f
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, eax
cmp dword [ebp - 8], esi
jb 0x658a51
test ebx, ebx
jne 0x658ae3
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855a98]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658a74
cmp byte [0x855a6a], 0
jne 0x658a7f
call fcn.00653890
mov ebx, dword [0x855a98]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x658acb
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855a98]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658ab2
cmp byte [0x855a6a], 0
jne 0x658abd
call fcn.00653890
mov ebx, dword [0x855a98]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.file_pointer_set_error____d
mov esi, dword [esi + 0x24]
mov ecx, esi
push 0x75c10c
push ebx
call dword [0x748368]
call esi
add esp, 0x10
xor ebx, ebx
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp ebx, 1
je 0x658b16
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
lea ecx, [edi + 0x30]
call fcn.0042fe00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d651
mov esp, ebp
pop ebp
ret 0x10
Function at 0x658b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x658b88
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x658b60
cmp byte [0x855a6a], 0
jne 0x658b6b
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.file_handler_to_read_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 8
jmp 0x658c94
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x658c2d
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
jb 0x658bd6
test eax, eax
jne 0x658c83
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855a98]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658bf9
cmp byte [0x855a6a], 0
jne 0x658c04
call fcn.00653890
mov ebx, dword [0x855a98]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x75c10c
push ebx
call dword [0x748368]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x658c85
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855a98]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658c50
cmp byte [0x855a6a], 0
jne 0x658c5b
call fcn.00653890
mov ebx, dword [0x855a98]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.file_pointer_set_error____d
push 0x75c10c
push ebx
call dword [0x748368]
call esi
add esp, 0x10
xor esi, esi
jmp 0x658c85
mov esi, eax
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp esi, 1
je 0x658cb8
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
lea ecx, [edi + 0x30]
call fcn.0042fe00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d651
mov esp, ebp
pop ebp
ret 0x10