joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66d660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x749850
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
cmp byte [esi + 0x38], al
je 0x66d70e
mov edi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [esi + 0x39], 0
je 0x66d70e
add eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edx, eax
cmp edx, 0x6d
je 0x66d6e1
test ecx, ecx
jne 0x66d6eb
jmp 0x66d6fa
cmp dword [ebp - 0x24], 0
je 0x66d799
cmp ecx, edi
je 0x66d70e
add dword [ebp - 0x1c], ecx
sub edi, ecx
cmp ebx, 0x64
jg 0x66d72c
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jne 0x66d6b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov eax, dword [0x87d0dc]
test eax, eax
je 0x66d75b
push dword [ebp - 0x18]
push edx
push 0x80bdb8
push 0x799430
push 0x799430
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
jmp 0x66d783
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x66d783
push dword [ebp - 0x18]
mov eax, dword [ecx]
push edx
push 0x80bdb8
push str.CommBridge
push 0x799430
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.00426b40
mov dword [ebp - 4], 1
jmp 0x66d806
mov eax, dword [0x87d0dc]
test eax, eax
je 0x66d7c9
push 0x6d
push dword [ebp - 0x18]
push str.Aborting_read_on_pipe__p___errno:__lu
push 0x799430
push 0x799430
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
jmp 0x66d7f2
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x66d7f2
mov eax, dword [ecx]
push 0x6d
push dword [ebp - 0x18]
push str.Aborting_read_on_pipe__p___errno:__lu
push str.CommBridge
push 0x799430
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.00426b40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0066ef80
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00426ce0
mov ecx, esi
call fcn.0066ee90
xor al, al
jmp 0x66d710
Function at 0x66e870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push esi
push edx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x66e8f6
nop word [eax + eax]
cmp dword [ebp - 8], esi
ja 0x66e8f6
jae 0x66e996
call ecx
add edi, dword [ebp - 8]
mov edx, eax
sub esi, dword [ebp - 8]
cmp ebx, 0xbb8
jg 0x66e940
push 0xa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x66e8b0
call ecx
mov ecx, dword [0x87d0dc]
mov edx, eax
test ecx, ecx
je 0x66e9a9
push edx
push dword [ebp - 0xc]
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x799430
push 0x799430
push str.CommBridge
push str.OOBEUtils
push 0x28
call ecx
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov eax, dword [0x87d0dc]
test eax, eax
je 0x66e981
push dword [ebp - 0xc]
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x799430
push 0x799430
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x66e9d1
push dword [ebp - 0xc]
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
jmp 0x66e9bc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x66e9d1
push edx
push dword [ebp - 0xc]
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
mov eax, dword [ecx]
push str.CommBridge
push 0x799430
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x6711c1
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 0x6711d1
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 0x671215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x6711f9
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 0x671250
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], 0
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x67126f
mov eax, dword [esi + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x671298
call ebx
cmp eax, 5
jne 0x671292
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x671263
cmp dword [esi + 0x1c], 0
je 0x6712e9
call ebx
cmp eax, 0xb7
je 0x6712b6
mov edx, dword [esi]
mov bl, 1
mov ecx, esi
mov byte [esi + 0x20], bl
call dword [edx + 8]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x6712e9
push dword [esi + 0x1c]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x1c], 0
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x674ec0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov edx, dword [esi + 4]
cmp edx, 0x206
je case.0x674f4b.66
cmp edx, 0x204
je case.0x674f4b.66
cmp edx, 0x205
je case.0x674f4b.66
cmp edx, 0x20a
jne 0x674efc
cmp word [esi + 8], 8
jne 0x674f0c
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
cmp edx, 0x100
jb 0x674f0c
cmp edx, 0x109
jbe 0x674f17
lea eax, [edx - 0x200]
cmp eax, 0xe
ja 0x674f87
cmp edx, 0x100
jne 0x674f58
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x674f4b.65
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne case.0x674f4b.65
mov eax, dword [esi + 8]
add eax, 0xffffffbf
cmp eax, 0x37
ja case.0x674f4b.66
movzx eax, byte [eax + 0x674f98]
jmp dword [eax*4 + 0x674f90]
cmp dword [esi + 8], 0x74
je case.0x674f4b.66
push dword [ebx + 0x234]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x674f87
push esi
push 0
push 0x37f
push dword [ebx + 0x234]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 4
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x674fd0
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 0x799430
push 0x799430
push str.BrowserHost
push 0x799430
push 0xa
call fcn.0056c500
add esp, 0x20
test dword [ebp + 0x20], 0x40030
jne 0x67502b
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 0x6784a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.006d20b0
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.0065b7b0
test eax, eax
je 0x6784f0
cmp eax, 2
je 0x6784de
push ecx
mov dl, 1
mov ecx, esi
call fcn.00653dc0
add esp, 4
test al, al
jne 0x6784f0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2010], eax
jb 0x678500
mov edi, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x678526
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x67855c
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.006d0965
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x6785a1
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x6785a9
call esi
mov dword [ebp - 0x2010], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x678562
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
cmp dword [ebp - 0x2010], 0
mov ecx, dword [ebp - 4]
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x67a170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a307
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x857060]
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.006d0976
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 0x799430
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00426d40
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 0x67a26a
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426d40
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.00426ce0
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.006d0976
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 0x799430
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00426d40
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 0x67a30d
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426d40
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.00426ce0
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 0x67e1f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x67e1fb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0067e210
Function at 0x67f960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a961
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 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.00651160
add esp, 4
test al, al
je 0x67f9e4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x67f9ce
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x67f9e4
push ecx
mov ecx, esi
call fcn.00652e10
add esp, 4
push ecx
mov edx, esi
mov ecx, 0x1b
call fcn.00651160
add esp, 4
test al, al
je 0x67fa18
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x67fa02
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x67fa18
push ecx
mov ecx, esi
call fcn.00652e10
add esp, 4
push 0xc
xor eax, eax
mov dword [ebp - 0x20], 0
push str.temp_lbs_wid
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.00651b80
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00426ce0
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 0x6854d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebx, edx
mov edx, esi
mov dword [esp + 0xc], ebx
shr edx, 2
xor ebp, ebp
mov dword [esp + 0x10], edx
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test edx, edx
je 0x6855b2
cmp edx, 0x10
jb 0x68558a
lea eax, [ebx - 4]
lea eax, [eax + edx*4]
lea ecx, [edi - 4]
lea ecx, [ecx + edx*4]
cmp edi, eax
ja 0x685517
cmp ecx, ebx
jae 0x68558a
mov eax, edx
lea ecx, [ebx + 0x30]
and eax, 0xfffffff0
mov esi, ebx
sub esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
movups xmm0, xmmword [eax - 0x10]
add ebp, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x685536
mov edx, dword [esp + 0x14]
cmp ebp, edx
jae 0x6855b2
mov esi, ebx
lea ecx, [edi + ebp*4]
sub esi, edi
sub edx, ebp
mov ebp, dword [esp + 0x14]
nop dword [eax + eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x6855a0
mov esi, dword [esp + 0x28]
shl ebp, 2
sub esi, ebp
mov dword [esp + 0x28], esi
je 0x685672
add edi, ebp
add ebx, ebp
xor ecx, ecx
test esi, esi
je 0x685672
cmp esi, 0x40
jb 0x685653
lea eax, [ebx - 1]
lea edx, [edi - 1]
add eax, esi
add edx, esi
cmp edi, eax
ja 0x6855e6
cmp edx, ebx
jae 0x685653
mov ebp, esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x10]
and ebp, 0xffffffc0
add ebx, 0x30
sub esi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, ebp
jb 0x685605
mov edx, dword [esp + 0x10]
cmp ecx, esi
jae 0x685672
sub edx, dword [esp + 0x18]
lea eax, [ecx + edi]
sub esi, ecx
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x685664
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x685680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, edx
mov eax, esi
mov dword [esp + 0x10], ebp
shr eax, 2
xor ebx, ebx
xor edx, edx
mov dword [esp + 0xc], eax
push edi
mov edi, ecx
test eax, eax
je 0x68573e
cmp eax, 8
jb 0x68570f
mov ecx, eax
mov ebx, edi
and ecx, 0xfffffff8
lea eax, [ebp + 0x10]
xorps xmm3, xmm3
xorps xmm2, xmm2
sub ebx, ebp
nop
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + edx*4]
add edx, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ebx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ecx
jb 0x6856c0
mov eax, dword [esp + 0x10]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edx, eax
jae 0x68573e
lea ecx, [edx*4]
mov esi, edi
add ecx, ebp
sub esi, ebp
mov ebp, eax
sub ebp, edx
mov edx, eax
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub ebp, 1
jne 0x685726
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
shl edx, 2
sub esi, edx
mov dword [esp + 0x1c], esi
jne 0x685756
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 8
ret
add edi, edx
add ebp, edx
mov edx, ebx
mov eax, ebx
shr edx, 0x18
shr eax, 0x10
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
xor ebx, ebx
mov dword [esp + 0x14], edx
test esi, esi
je 0x685830
cmp esi, 0x20
jb 0x68580d
mov ecx, esi
lea eax, [ebp + 0x10]
mov edx, edi
and ecx, 0xffffffe0
sub edx, ebp
xorps xmm3, xmm3
mov dword [esp + 0x10], edx
xorps xmm2, xmm2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + edi]
add ebx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + esi - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp ebx, ecx
jb 0x6857a4
por xmm2, xmm3
mov esi, dword [esp + 0x1c]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp ebx, esi
jae 0x685830
sub edi, ebp
lea ecx, [ebx + ebp]
sub esi, ebx
nop dword [eax + eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x685820
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x69e5d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74b679
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.00697a00
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.00688150
mov ecx, 8
call fcn.006858d0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, ebx
push dword [ebp + 0xc]
mov edx, dword [ebx]
push edi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
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 0xc
Function at 0x6a07b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74bff8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x560]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x578]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [esi + 4], 0
jne 0x6a080a
mov esi, 0xffffffd8
jmp 0x6a0942
cmp dword [esi + 0x55c], 4
je 0x6a084e
cmp dword [esi + 0x55c], 0x20
je 0x6a084e
cmp dword [esi + 0x55c], 8
je 0x6a084e
call fcn.006a6f40
cmp dword [eax], 0
je 0x6a0844
call fcn.006a6f40
push str.PDM_is_either_running_already_or_closed
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 8
mov esi, 0x1e
jmp 0x6a0942
mov eax, dword [esi + 0x2f0]
lea ecx, [esi + 0x2f0]
push esi
mov eax, dword [eax]
call eax
test al, al
jne 0x6a0893
call fcn.006a6f40
cmp dword [eax], 0
je 0x6a092f
call fcn.006a6f40
push str.Failed_to_generate_workflow
push str.PackageDownloadManager
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
or esi, 0xffffffff
jmp 0x6a0942
mov ecx, esi
call fcn.006a0b00
push 8
lea ebx, [esi + 0x310]
call fcn.006d0976
add esp, 4
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
push 0
push 0
push edi
push 0x670d70
push 0
movq qword [edi], xmm0
push 0
mov dword [edi], 0x6a0990
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x6a0934
push 8
push edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.006d0bf7
add esp, 8
call fcn.006a6f40
cmp dword [eax], 0
je 0x6a090b
call fcn.006a6f40
push str.Could_not_make_manager_thread
push str.PackageDownloadManager
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call fcn.006a6f40
cmp dword [eax], 0
je 0x6a092f
call fcn.006a6f40
push str.Failed_to_run_the_thread_for_the_workflow
push str.PackageDownloadManager
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
or esi, 0xffffffff
jmp 0x6a0942
mov dword [esi + 0x308], eax
test ebx, ebx
je 0x6a0940
mov dword [ebx], eax
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret