joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eac0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, edi
movdqu xmm0, xmmword [eax + edi - 0x10]
mov dword [esp], ebx
and esi, 0xfffffffc
mov dword [esp + 8], edi
mov dword [esp + 4], eax
movaps xmmword [esp + 0x20], xmm0
call sym._memcpy
mov eax, edi
lea edx, [esi + ebx + 0x10]
movdqa xmm0, xmmword [esp + 0x20]
shr eax, 2
add eax, 7
shl eax, 4
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, ebx
mov ebx, 0x5d4b20
jmp 0x46eb74
mov ecx, dword [eax + 0x1c]
movdqa xmm2, xmm0
pinsrd xmm2, ecx, 3
mov dword [esp + 0x20], ecx
movdqa xmm0, xmm2
cmp edi, 0x20
jne 0x46eb70
movdqa xmm0, xmm1
pinsrd xmm0, dword [eax + 0x2c], 3
aeskeygenassist xmm1, xmm0, 0
pextrd ecx, xmm1, 2
xor ecx, dword [eax + 0x10]
mov dword [eax + 0x30], ecx
xor ecx, dword [eax + 0x14]
mov dword [eax + 0x34], ecx
xor ecx, dword [eax + 0x18]
mov dword [eax + 0x38], ecx
xor ecx, dword [esp + 0x20]
mov dword [eax + 0x3c], ecx
pinsrd xmm0, ecx, 3
add eax, esi
add edx, esi
aeskeygenassist xmm1, xmm0, 0
add ebx, 4
pextrd ecx, xmm1, 3
xor ecx, dword [ebx - 4]
xor ecx, dword [eax]
mov dword [edx - 0x10], ecx
xor ecx, dword [eax + 4]
mov dword [edx - 0xc], ecx
xor ecx, dword [eax + 8]
mov dword [edx - 8], ecx
xor ecx, dword [eax + 0xc]
mov dword [edx - 4], ecx
cmp dword [esp + 0x1c], edx
je 0x46ebd0
movdqa xmm1, xmm0
cmp edi, 0x18
jne 0x46eb20
mov ecx, dword [eax + 0x10]
xor ecx, dword [eax + 0x24]
mov dword [eax + 0x28], ecx
xor ecx, dword [eax + 0x14]
mov dword [eax + 0x2c], ecx
pinsrd xmm0, ecx, 3
jmp 0x46eb70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x46ebe0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, edx
movdqa xmm0, xmmword [ecx]
lea edx, [edx*4 - 4]
shl eax, 4
add eax, ecx
movdqa xmm2, xmmword [eax]
movaps xmmword [ecx], xmm2
movaps xmmword [eax], xmm0
cmp edx, 4
jbe 0x46ec40
mov eax, 4
nop
aesimc xmm0, xmmword [ecx + eax*4]
aesimc xmm1, xmmword [ecx + edx*4]
movaps xmmword [ecx + eax*4], xmm1
add eax, 4
movaps xmmword [ecx + edx*4], xmm0
sub edx, 4
cmp eax, edx
jb 0x46ec10
shl eax, 2
add eax, ecx
aesimc xmm0, xmmword [eax]
movaps xmmword [eax], xmm0
pop ebp
ret
mov eax, 0x10
add eax, ecx
aesimc xmm0, xmmword [eax]
movaps xmmword [eax], xmm0
pop ebp
ret
Function at 0x4842b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x5fef00]
test esi, esi
jle 0x4843c0
mov edi, dword [0x5fef04]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4842e4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x484365
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4842d0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x4843e7
mov eax, dword [0x5fef04]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x5fef04]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4843c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x48435e
sub eax, 4
and eax, 0xfffffffb
jne 0x484370
add dword [0x5fef00], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x5fef04]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x48435e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x4842ee
mov eax, dword [0x5fef04]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x484820
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5fef18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5fef10]
sub esp, 4
test ebx, ebx
je 0x484875
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x48486e
test esi, esi
je 0x48486e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x484850
mov dword [esp], 0x5fef18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x492d80
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x5c83c0], eax
je 0x492d97
add esp, 0xc
ret
call sym._abort
lea esi, [esi]

Function at 0x493290
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x4932c0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x4932c2
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x493315
jmp 0x493332
cmp eax, 0x6a
je 0x493323
add eax, 1
cmp byte [ebx + eax], 0
jne 0x493310
cmp eax, 0x6a
jne 0x493332
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x493323
Function at 0x4933d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x5ff944], 1
je 0x4933e5
call sym.__pthread_once_raw.part.5.constprop.11
mov eax, dword [0x5c83c0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x493410
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x4933fc
test esi, esi
je 0x4933fc
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call sym._replace_spin_keys.constprop.10
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x493512
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x5c83c0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x493512
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._abort
mov esi, esi
lea edi, [edi]
Function at 0x493650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x493680
mov edi, dword [esp + 0x28]
test edi, edi
je 0x493721
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x493750
cmp eax, 3
jne 0x49366a
mov eax, dword [0x5c83c0]
cmp eax, 0xffffffff
je 0x49366a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x49366a
test byte [eax + 0x20], 0x30
je 0x493772
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x493874
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4936f4
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4936e6
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x4937f9
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x4937f9
mov eax, dword [0x5ff920]
test eax, eax
je 0x49366a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x5ff920], 0
sub esp, 4
jmp 0x49366a
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x5ff920], eax
jmp 0x49366a
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x493820
test eax, eax
je 0x493790
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
jne 0x493850
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x493860
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4937d5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x493715
mov eax, dword [0x5c83c0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x49366a
test eax, eax
je 0x493830
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
jmp 0x49366a
call sym.__pthread_cleanup_dest.part.8
jmp 0x4937ac
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
jmp 0x49366a
call sym.__pthread_cleanup_dest.part.8
jmp 0x4936c2
Function at 0x49388a
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx]
mov dword [esp], 0x5c83b8
mov esi, eax
mov dword [ebp - 0x1c], eax
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
cmp dword [0x5ff944], 1
je 0x4938c0
call sym.__pthread_once_raw.part.5.constprop.11
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x5c83c0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
je 0x493993
mov dword [esp], 0x5c83b8
call sym._pthread_mutex_lock
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x493933
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x4939dd
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49397a
mov dword [esp], 0
call ebx
push eax
mov dword [esp], 0x5c83b8
call sym._pthread_mutex_unlock
test eax, eax
je 0x493970
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [esp], 0x5c83b8
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x493a28
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x5c83b8
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x49390f
call sym.__pthread_cleanup_dest.part.8
jmp 0x49390f
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
test edi, edi
je 0x493a0b
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb0], 0
jne 0x493a0b
call sym._push_pthread_mem.part.2
mov eax, dword [0x5c83c0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x493968
mov ebx, pe_nt_image_headers32
jmp 0x4939b3
Function at 0x4941f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x494272
test byte [ebx + 0x20], 0x30
jne 0x494226
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [0x5c83c0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x494269
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4942b6
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x49425c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x494279
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.8
jmp 0x49420d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x4942dd
mov eax, dword [0x5c83c0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x494269
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x4942ca
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x49429c
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x49429c
Function at 0x4a90e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], esp
mov dword [ebp - 0x5c], edx
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x64], sym.___gxx_personality_sj0
mov dword [ebp - 0x60], 0x5c2e82
mov dword [ebp - 0x58], 0x4a9285
mov dword [esp], edx
call dbg._Unwind_SjLj_Register
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], 0x20
mov dword [esp], 0x20
mov dword [ebp - 0x78], 0xffffffff
call dbg.CryptoPP::UnalignedAllocate(unsigned int)
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0x20
mov dword [esp], 0x20
mov dword [ebp - 0x78], 1
call dbg.CryptoPP::UnalignedAllocate(unsigned int)
movzx edx, byte [ebp - 0x80]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1d], 0x312e3958
mov dword [ebp - 0x19], 0x656b2037
mov dword [ebp - 0x15], 0x65672079
mov dword [ebp - 0x11], 0x6172656e
mov dword [ebp - 0xd], 0x6e6f6974
mov byte [ebp - 9], 0
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
mov dword [ebp - 0x78], 2
call dbg.CryptoPP::OS_GenerateRandomBlock(bool, unsigned char*, unsigned int)
mov dword [esp], 1
lea ecx, [ebp - 0x44]
call dbg.CryptoPP::Algorithm::Algorithm(bool)
sub esp, 4
lea eax, [ebp - 0x1d]
mov dword [ebp - 0x44], 0x5f80c8
lea ecx, [ebp - 0x44]
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dbg.CryptoPP::HKDF<CryptoPP::SHA256>::DeriveKey(unsigned char*, unsigned int, unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char const*, unsigned int) const
mov eax, dword [ebp - 0x34]
sub esp, 0x20
lea edx, [eax + 0x10]
mov ecx, dword [eax]
cmp dword [eax + 0x10], ecx
je 0x4a9265
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov dword [esp], edx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x78], 2
call dbg.CryptoPP::AutoSeededX917RNG<CryptoPP::Rijndael>::Reseed(unsigned char const*, unsigned int, unsigned char const*, unsigned char const*)
sub esp, 0x10
lea ecx, [ebp - 0x30]
call method.CryptoPP::SecBlock_unsigned_char__CryptoPP::AllocatorWithCleanup_unsigned_char__false___.SecBlock__
lea ecx, [ebp - 0x40]
call method.CryptoPP::SecBlock_unsigned_char__CryptoPP::AllocatorWithCleanup_unsigned_char__false___.SecBlock__
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
leave
ret 0xc
mov ecx, dword [eax + 4]
cmp dword [edx + 4], ecx
jne 0x4a921a
mov ecx, dword [eax + 8]
cmp dword [edx + 8], ecx
jne 0x4a921a
mov ecx, dword [eax + 0xc]
cmp dword [edx + 0xc], ecx
jne 0x4a921a
mov eax, dword [ebp - 0x24]
jmp 0x4a9194
Function at 0x4b6600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov edi, dword [ecx + 0x14]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b6623
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x60]
mov dword [ebx + 0x14], eax
test edi, edi
je 0x4b6631
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
mov dword [esp], eax
call dbg.CryptoPP::PolynomialMod2::operator=(CryptoPP::PolynomialMod2 const&)
lea eax, [esi + 0x28]
lea ecx, [ebx + 0x28]
sub esp, 4
mov dword [esp], eax
call dbg.CryptoPP::PolynomialMod2::operator=(CryptoPP::PolynomialMod2 const&)
lea eax, [esi + 0x3c]
lea ecx, [ebx + 0x3c]
sub esp, 4
mov dword [esp], eax
call dbg.CryptoPP::PolynomialMod2::operator=(CryptoPP::PolynomialMod2 const&)
lea eax, [esi + 0x4c]
lea ecx, [ebx + 0x4c]
sub esp, 4
mov dword [esp], eax
call dbg.CryptoPP::PolynomialMod2::operator=(CryptoPP::PolynomialMod2 const&)
movzx eax, byte [esi + 0x5c]
lea ecx, [ebx + 0x68]
sub esp, 4
mov byte [ebx + 0x5c], al
lea eax, [esi + 0x68]
mov dword [esp], eax
call dbg.CryptoPP::PolynomialMod2::operator=(CryptoPP::PolynomialMod2 const&)
lea eax, [esi + 0x78]
lea ecx, [ebx + 0x78]
sub esp, 4
mov dword [esp], eax
call dbg.CryptoPP::PolynomialMod2::operator=(CryptoPP::PolynomialMod2 const&)
movzx eax, byte [esi + 0x88]
lea ecx, [ebx + 0x90]
sub esp, 4
mov byte [ebx + 0x88], al
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x8c], eax
lea eax, [esi + 0x90]
mov dword [esp], eax
call dbg.CryptoPP::Integer::operator=(CryptoPP::Integer const&)
lea eax, [esi + 0xa8]
lea ecx, [ebx + 0xa8]
sub esp, 4
mov dword [esp], eax
call dbg.std::vector<CryptoPP::EC2NPoint, std::allocator<CryptoPP::EC2NPoint> >::operator=(std::vector<CryptoPP::EC2NPoint, std::allocator<CryptoPP::EC2NPoint> > const&)
lea eax, [esi + 0xb8]
lea ecx, [ebx + 0xb8]
sub esp, 4
mov dword [esp], eax
call dbg.std::vector<unsigned int, std::allocator<unsigned int> >::operator=(std::vector<unsigned int, std::allocator<unsigned int> > const&)
lea eax, [esi + 0xc4]
lea ecx, [ebx + 0xc4]
sub esp, 4
mov dword [esp], eax
call dbg.CryptoPP::Integer::operator=(CryptoPP::Integer const&)
lea eax, [esi + 0xdc]
lea ecx, [ebx + 0xdc]
sub esp, 4
mov dword [esp], eax
call dbg.CryptoPP::Integer::operator=(CryptoPP::Integer const&)
movzx eax, byte [esi + 0xf4]
sub esp, 4
mov byte [ebx + 0xf4], al
movzx eax, byte [esi + 0xf5]
mov byte [ebx + 0xf5], al
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4
Function at 0x5aa990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sub esp, 0x68
lea eax, [esp + 0x60]
mov dword [esp + 0x34], sym.___gxx_personality_sj0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x38], 0x5c5df8
mov dword [esp + 0x40], 0x5aaacf
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x5c]
mov eax, dword [eax]
add edx, dword [eax - 0xc]
mov eax, edx
add eax, 0x6c
mov dword [esp], eax
call method.std::locale.locale_std::locale_const_
sub esp, 4
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], 1
mov dword [esp], eax
call method.std::ctype_char__const_std::use_facet_std.ctype_char____std::locale_const_
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], eax
call fcn.005811b0
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x70]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov edx, dword [edx + eax + 0x78]
mov dword [esp + 0x14], edx
mov eax, dword [edx + 8]
cmp dword [edx + 0xc], eax
ja 0x5aaa2f
jmp 0x5aaaa0
add eax, 1
mov dword [ecx + 8], eax
cmp eax, edx
jae 0x5aaaa0
movzx eax, byte [eax]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x18]
test byte [edx + eax*2], 0x20
je 0x5aaa8b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, edx
jb 0x5aaa25
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], 0xffffffff
call eax
cmp eax, 0xffffffff
jne 0x5aaac0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x20], 0xffffffff
or eax, 2
mov dword [esp], eax
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
sub esp, 4
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x70]
add esp, 0x68
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 0xffffffff
call eax
cmp eax, 0xffffffff
je 0x5aaa65
movzx eax, al
jmp 0x5aaa32
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
jmp 0x5aaa2b

Function at 0x5c1484
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop