joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4909f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e58c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x51ec70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, ecx
shr eax, 0x10
cmp dx, ax
je 0x490a32
xor eax, eax
jmp 0x490b9f
movzx eax, cx
mov ecx, 0x1a58
cmp ax, cx
je 0x490a67
mov ecx, 0x22b7
cmp ax, cx
jne 0x490b9a
push str.close
mov ecx, edi
call fcn.00492f40
push 1
mov ecx, edi
call fcn.0048e7a0
jmp 0x490b9a
mov ecx, dword [edi + 0x1f8]
test ecx, ecx
je 0x490bbc
push ecx
mov esi, esp
mov dword [ebp - 0x4c], esi
mov eax, dword [ecx]
mov dword [ebp - 0x4c], edx
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x1a58
push ecx
call dword [eax + 0x108]
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0044d030
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.004207c0
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp byte [eax + 0xc], 0
je 0x490ae9
mov eax, dword [eax]
cmp eax, 0x64
je 0x490ae9
push 0x64
push eax
push 4
call esi
jmp 0x490aee
mov eax, 4
mov ecx, dword [ebp - 0x14]
lea edx, [eax + ecx]
mov eax, edx
sub eax, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
call fcn.004207c0
cmp byte [eax + 0xc], 0
je 0x490b1c
mov eax, dword [eax]
cmp eax, 0x64
je 0x490b1c
push 0x64
push eax
push 0x1e
call esi
jmp 0x490b21
mov eax, 0x1e
sub dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
push eax
push dword [edi + 0x30]
call esi
test eax, eax
je 0x490b40
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x30]
call esi
push 0
push str.IDS_NO_MORE_REMIND
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x50]
call fcn.00456d20
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x490b64
mov ecx, dword [ecx]
push 5
push 3
lea eax, [edi + 0x204]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push dword [edi + 0x30]
lea ecx, [edi + 0x264]
call fcn.004957b0
lea ecx, [ebp - 0x48]
call fcn.00407580
push 5
push dword [edi + 0x294]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 0x80004001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d761c
mov esp, ebp
pop ebp
ret 0x10
push 0x80004003
call fcn.00499ec0
int3
Function at 0x4918d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp eax, 0x100
jne 0x491911
push str.load_timeout
call fcn.00492f40
push 0x100
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_KillTimer]
push 2
mov ecx, edi
call fcn.0048e7a0
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
cmp eax, 0x103
jne 0x491949
push str.close_timeout
call fcn.00492f40
push 0x103
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_KillTimer]
push 1
mov ecx, edi
call fcn.0048e7a0
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
cmp eax, 0x102
jne 0x49195f
push eax
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x491ade
cmp eax, 0x104
jne 0x491975
push eax
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x491ade
cmp eax, 0x105
jne 0x491aed
push eax
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
mov ecx, edi
call fcn.0048c190
test al, al
je 0x491ad2
push ebx
push esi
push 0
call sub.msvcrt.dll__time64
mov ebx, eax
lea ecx, [edi + 0x204]
add esp, 4
mov eax, edx
cmp dword [ecx + 0x14], 8
mov dword [ebp + 0xc], eax
jb 0x4919be
mov ecx, dword [ecx]
push eax
push ebx
push str.lasttime
push ecx
push SysReAllocString
call int.00425180
lea esi, [edi + 0x21c]
add esp, 0x14
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4919e3
mov eax, dword [esi]
push dword [ebp + 0xc]
push ebx
push str.lasttime
push eax
push SysReAllocString
call int.00425180
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x491a02
mov esi, dword [esi]
mov eax, dword [edi + 0x1fc]
inc eax
push eax
push 0x4fcb40
push esi
push SysReAllocString
call int.00425150
imul eax, dword [edi + 0xfc], 0x3e8
add esp, 0x10
push 0
push eax
push 0x103
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
push 0xffffffffffffffec
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xf7ffffff
cmp eax, ecx
je 0x491a5b
push ecx
push 0xffffffffffffffec
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi + 0x30]
call esi
push 9
push dword [edi + 0x30]
call esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 0x30]
call esi
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [edi + 0x30]
call esi
push str.show
mov ecx, edi
call fcn.00492f40
mov eax, dword [ebp + 0x14]
pop esi
pop ebx
pop edi
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
push str.load_neterror
mov ecx, edi
call fcn.00492f40
push 0
push 0
push 0x10
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
Function at 0x4937d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5e88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x51ec70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
jb 0x49380c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493869
cmp dword [esi + 0x1c0], 0
jne 0x49389d
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
jb 0x49382c
mov esi, dword [ebp + 8]
call fcn.0040de70
test eax, eax
je 0x493869
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
push eax
push esi
mov ecx, 0x51cab8
call fcn.004534c0
test eax, eax
je 0x493869
mov eax, dword [ebp - 0x10]
cmp eax, 3
je 0x493863
cmp eax, 0xffffffff
je 0x493863
mov eax, 1
jmp 0x493865
xor eax, eax
test eax, eax
jne 0x4938e3
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4938f1
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4938e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x493950
jmp 0x4938e7
lea ecx, [ebp - 0x1c]
call fcn.00406ac0
cmp dword [esi + 0x1c4], 8
lea eax, [esi + 0x1b0]
mov byte [ebp - 4], 2
jb 0x4938ba
mov eax, dword [eax]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
jb 0x4938c6
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00409910
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x4938de
call fcn.00407b90
jmp 0x493869
call fcn.00407b90
mov bl, 1
jmp 0x49386b
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x49393b
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493931
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x493955
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
call fcn.004cb910
call fcn.004cb910
int3
Function at 0x495550
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6156
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51ec70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [0x4fd1c8]
mov dword [edi + 4], eax
mov eax, dword [0x4fd1cc]
mov dword [edi + 8], eax
mov eax, dword [0x4fd1d0]
mov dword [edi + 0xc], eax
mov eax, dword [0x4fd1d4]
mov dword [edi + 0x10], eax
mov eax, dword [0x4fd1c8]
mov dword [edi + 0x14], eax
mov eax, dword [0x4fd1cc]
mov dword [edi + 0x18], eax
mov eax, dword [0x4fd1d0]
mov dword [edi + 0x1c], eax
mov eax, dword [0x4fd1d4]
mov dword [edi + 0x20], eax
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0xfefefefe
mov dword [edi + 0x30], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], vtable.CTransparentWnd_class_CRemindTip_.0
mov dword [edi + 0x54], 0
mov dword [ebp - 4], 0
mov byte [edi + 0x5c], 0xff
mov dword [edi + 0x60], 0
mov dword [edi + 0x58], 0
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 1
call fcn.0043a820
mov dword [edi], vtable.CRemindTip.0
xor eax, eax
mov dword [edi + 0x2c], vtable.CRemindTip.1.0
mov dword [edi + 0x50], vtable.CRemindTip.2.0
mov dword [edi + 0x64], vtable.CRemindTip.3.0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 7
mov word [edi + 0xfc], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x496b4f
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x496b54
mov eax, dword [0x523b50]
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x496b6f
call fcn.00496c5a
test eax, eax
je 0x496bc2
mov eax, dword [0x523b50]
cmp eax, 1
jne 0x496b8e
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x496bc2
jmp 0x496c17
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x496bac
push 0xd
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x496c17
push 0x40
mov eax, 0x1000
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x496bd4
push ebx
push ebx
push ebx
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi]
push edi
push dword [0x523b50]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x496bfa
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x496c16
lea edi, [esi + 0xff0]
push esi
push dword [0x523b50]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x496c00
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x499150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call sub.msvcrt.dll__beginthreadex
mov dword [esi], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop esi
pop ebp
ret

Function at 0x49be7d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x49bea9
mov eax, 0x4fe990
push eax
push eax
push edi
push edi
call fcn.0049b589
jmp 0x49bed5
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49be99
cmp esi, dword [ebp + 0x10]
je 0x49bedc
push 0x4fe990
push 1
push edi
push edi
call fcn.0049b53c
add esp, 0x10
xor eax, eax
jmp 0x49bedf
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x49d0cb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x49d0f5
mov eax, 0x4fe990
push eax
push eax
push 0
push 0
call fcn.0049b589
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x49de44
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x49e387
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x49e7a0
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x4e63ce
call fcn.004abbb0
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.0049e617
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x49e7e8
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, esi
call fcn.004abb70
ret 4
push 0x517a3c
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x49e8e5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.0049ea69
mov edi, eax
test edi, edi
je 0x49e970
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x49e920
mov esi, edi
jmp 0x49e95c
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x49e955
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49e948
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.0049ea04
jmp 0x49e95c
push 0x4fec80
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x49e95c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.0049ea69
mov edi, eax
test edi, edi
jne 0x49e915
test esi, esi
jne 0x49e985
mov ecx, dword [ebx]
add ecx, 8
call fcn.0049ebe2
mov esi, eax
test esi, esi
je 0x49e985
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a04c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using salsa20 or chacha
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
lea eax, [ebp - 4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 1
push 0
push 0
push eax
add edi, 0x20
call esi
test eax, eax
jne 0x4a0511
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4a0658
push 8
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
je 0x4a0658
lea eax, [ebp - 0x44]
push eax
push 0x20
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x4a0658
push 0x4fecc4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004a1350
lea eax, [edi + edi]
push eax
call sub.msvcrt.dll_malloc
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4a0658
push dword [ebp + 0x14]
xor eax, eax
push dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x20]
push eax
call sub.msvcrt.dll_memcpy
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a1350
push 0x4fece4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push 0x4fecf8
push eax
call fcn.004a19b0
lea ecx, [edi + 0x10]
add esp, 0x28
add ecx, ebx
cmp edi, 0x20
jb 0x4a061b
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push 0x4fece4
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004a19b0
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x10]
push eax
push 0
push edi
push ebx
lea esi, [ebx + edi]
push esi
call fcn.004a1e50
mov eax, edi
mov ecx, 0
add eax, 0xffffffe0
push esi
adc ecx, 0xffffffff
push ecx
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [edi + 0x10]
add eax, ebx
push eax
call fcn.004a21e0
xor eax, eax
lea ecx, [edi + 0x10]
mov dword [esi], eax
add esp, 0x3c
mov dword [esi + 4], eax
add ecx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov esi, dword [ebp + 0x18]
lea eax, [edi - 0x10]
push eax
push ecx
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x1c]
add esi, 0xfffffff0
add edi, esi
mov ecx, 8
lea esi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x14]
add ecx, 0x30
push ebx
mov dword [eax], ecx
call sub.msvcrt.dll_free
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0670
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 4]
push 0
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x4a06b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4a06ac
push 8
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x4a06b3
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x4a09b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x4a09db
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x51e820]
sub edx, 1
jne 0x4a09c1
not eax
pop esi
pop ebp
ret
Function at 0x4a1350
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call sub.msvcrt.dll_memcpy
mov al, byte [ebp - 1]
add esp, 0xc
and byte [ebp - 0x20], 0xf8
and al, 0x3f
mov edx, dword [ebp + 0x10]
or al, 0x40
mov byte [ebp - 1], al
xor ecx, ecx
lea ecx, [ecx]
movzx eax, byte [ecx + edx]
mov dword [ebp + ecx*4 - 0x1a0], eax
inc ecx
cmp ecx, 0x20
jb 0x4a1380
push esi
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.004a0d10
lea eax, [ebp - 0x120]
push eax
push eax
call fcn.004a14d0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004a1200
mov ecx, 0x20
lea esi, [ebp - 0xa0]
lea edi, [ebp - 0x220]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
jmp 0x4a13f0
mov eax, dword [edx + 0x4fed10]
add eax, dword [ebp + edx - 0xa0]
add ecx, eax
movzx eax, cl
mov dword [ebp + edx - 0xa0], eax
add edx, 4
shr ecx, 8
cmp edx, 0x7c
jb 0x4a13f0
mov esi, dword [ebp - 0x24]
sub esi, 0xffffff80
add esi, ecx
mov dword [ebp - 0x24], esi
shr esi, 7
and esi, 1
neg esi
xor edx, edx
lea esp, [esp]
mov eax, dword [ebp + edx - 0xa0]
mov ecx, dword [ebp + edx - 0x220]
xor ecx, eax
and ecx, esi
xor ecx, eax
mov eax, dword [ebp + edx - 0x9c]
mov dword [ebp + edx - 0xa0], ecx
mov ecx, dword [ebp + edx - 0x21c]
xor ecx, eax
and ecx, esi
xor ecx, eax
mov eax, dword [ebp + edx - 0x98]
mov dword [ebp + edx - 0x9c], ecx
mov ecx, dword [ebp + edx - 0x218]
xor ecx, eax
and ecx, esi
xor ecx, eax
mov eax, dword [ebp + edx - 0x94]
mov dword [ebp + edx - 0x98], ecx
mov ecx, dword [ebp + edx - 0x214]
xor ecx, eax
and ecx, esi
xor ecx, eax
mov dword [ebp + edx - 0x94], ecx
add edx, 0x10
cmp edx, 0x80
jb 0x4a1430
mov edx, dword [ebp + 8]
xor eax, eax
pop edi
pop esi
mov edi, edi
mov cl, byte [ebp + eax*4 - 0xa0]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x20
jb 0x4a14b0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a1e50
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
or eax, edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
je 0x4a200b
mov ecx, dword [ebp + 0x18]
push ebx
push edi
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
test edx, edx
jne 0x4a1e9c
cmp esi, 0x40
jae 0x4a1e9c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x4a1fc1
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x68]
mov edi, dword [ebp + 0xc]
mov eax, ebx
sub eax, edx
mov dword [ebp + 0x14], ebx
mov dword [ebp - 4], eax
mov eax, edi
sub eax, edx
mov dword [ebp - 8], eax
lea eax, [edi + 2]
mov dword [ebp - 0xc], eax
lea esp, [esp]
push 0x4fed90
push ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004a7650
lea eax, [ebx + 1]
add esp, 0x10
mov ebx, edi
xor esi, esi
sub ebx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x68]
mov ebx, dword [ebp - 4]
lea eax, [eax + 4]
add edx, esi
movzx ecx, byte [edx + ecx]
xor cl, byte [edx]
mov byte [edx + ebx], cl
mov ebx, dword [ebp - 0x18]
movzx ecx, byte [ebx + eax - 4]
xor cl, byte [edx + 1]
mov byte [eax - 4], cl
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
xor cl, byte [edx + 2]
mov byte [eax - 3], cl
movzx ecx, byte [esi + edi + 3]
add esi, 4
xor cl, byte [edx + 3]
mov byte [eax - 2], cl
cmp esi, 0x40
jl 0x4a1ee3
movzx ecx, byte [ebp - 0x20]
movzx eax, byte [ebp - 0x1f]
inc ecx
mov byte [ebp - 0x20], cl
shr ecx, 8
add ecx, eax
mov esi, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x1e]
mov byte [ebp - 0x1f], cl
shr ecx, 8
add ecx, eax
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 0x1d]
mov byte [ebp - 0x1e], cl
shr ecx, 8
add ecx, eax
mov ebx, dword [ebp + 0x14]
movzx eax, byte [ebp - 0x1c]
mov byte [ebp - 0x1d], cl
shr ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x1b]
mov byte [ebp - 0x1c], cl
shr ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x1a]
mov byte [ebp - 0x1b], cl
shr ecx, 8
add ecx, eax
mov byte [ebp - 0x1a], cl
shr ecx, 8
add byte [ebp - 0x19], cl
add esi, 0xffffffc0
mov ecx, dword [ebp + 0x1c]
adc edx, 0xffffffff
mov dword [ebp - 0x10], esi
add dword [ebp - 4], 0x40
add ebx, 0x40
add dword [ebp - 8], 0x40
add edi, 0x40
add dword [ebp - 0xc], 0x40
mov dword [ebp - 0x14], edx
mov dword [ebp + 0x14], ebx
test edx, edx
ja 0x4a1ec0
jb 0x4a1fbe
cmp esi, 0x40
jae 0x4a1ec0
mov ecx, dword [ebp + 0x1c]
mov eax, esi
or eax, edx
je 0x4a2002
push 0x4fed90
push ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004a7650
add esp, 0x10
xor edx, edx
test esi, esi
jle 0x4a2002
lea eax, [ebp - 0x68]
sub edi, eax
sub ebx, eax
lea ebx, [ebx]
lea ecx, [ebp - 0x68]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, esi
jl 0x4a1ff0
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret