joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e4d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x46e516
push 0x4a5b20
mov eax, 0x4a5b20
call fcn.00470660
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x46e5a8
jg 0x46e53e
cmp ebx, ecx
jb 0x46e5a8
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x46e56d
push 0x4a5b20
mov eax, 0x4a5b20
call fcn.00470660
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.0046d1b0
test eax, eax
je 0x46e563
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46e58e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46e5b5
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x46e5b5
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x46ee60
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x46ef99
cmp dword [esp + 0x28], ebp
je 0x46ef99
push esi
push 0x2800
call fcn.00472de8
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x46eec3
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471eba
add esp, 0x1c
ret
push ebx
push edi
xor ebx, ebx
push ebx
push str..PhysicalDrive_d
push esi
mov ecx, 0x2800
call fcn.0046d030
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ef6f
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00476ef0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push esi
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46ef62
mov eax, dword [esi + 0x18]
cmp eax, ebp
jbe 0x46ef62
mov edx, dword [esp + 0x34]
add eax, esi
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.DISKID:
call fcn.0046ebf0
add esp, 0x10
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x46ef79
inc ebx
cmp ebx, 0x10
jl 0x46eec7
push esi
call fcn.00472c50
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471eba
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00471eba
add esp, 0x1c
ret
Function at 0x46f040
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
cmp dword [esp + 0x30], edi
je 0x46f07a
cmp dword [esp + 0x34], edi
je 0x46f07a
push 0x200
call fcn.00472de8
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x46f085
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f1e6
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x46f17a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46f0dd
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f153
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f148
mov eax, esi
mov dword [esi], 0x5c2e5c5c
call fcn.0046efb0
cmp edx, ebx
jb 0x46f148
ja 0x46f142
cmp eax, dword [esp + 0x24]
jbe 0x46f148
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
inc edi
push edi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x46f0d0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
ja 0x46f190
cmp dword [esp + 0x24], 0
jbe 0x46f1e6
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push str._012I64X
push esi
mov ecx, 0x200
call fcn.0046d030
add esp, 0x10
test eax, eax
jne 0x46f1ca
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00472c50
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push esi
push edx
push eax
push str.MAC:
call fcn.0046ebf0
add esp, 0x10
mov dword [esp + 0x18], eax
push esi
call fcn.00472c50
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x471370
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x4936db
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4bd450]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [0x517e5c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push eax
lea ecx, [ebx + 0x41]
call fcn.004710f0
add esp, 0x10
xor ecx, ecx
mov word [ebp + 0x80], cx
xor esi, esi
lea edx, [ebp]
push edx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x4714c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47140f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.00471160
cmp eax, ebx
je 0x471425
mov dword [0x517e5c], eax
jmp 0x4714a6
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x471440
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x471454
push edi
push esi
call fcn.004717e0
jmp 0x471456
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x517e5c], eax
cmp eax, ebx
jne 0x471477
mov dword [ebp - 0x1c], 1
push 0x4b1284
lea eax, [ebp - 0x1c]
push eax
call fcn.004771eb
mov esi, 1
mov dword [ebp - 0x24], esi
push eax
call fcn.00471230
add esp, 4
test eax, eax
jne 0x4714a1
mov dword [ebp - 0x18], 3
push 0x4b1284
lea ecx, [ebp - 0x18]
push ecx
call fcn.004771eb
mov eax, dword [0x517e5c]
inc dword [eax + 0x5bc]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x4714c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x517e5c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00471eba
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x4715a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492c40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x517e5c]
xor edi, edi
cmp ecx, edi
jne 0x4715eb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4715f8
mov dword [ebp - 0x14], edi
jmp 0x471610
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4716b6
mov ecx, dword [0x517e5c]
mov eax, dword [ecx]
cmp eax, edi
je 0x4715d7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4715d7
mov dword [ebp - 4], edi
push 0x517e5c
call fcn.004716d0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x47164e
mov dword [ebp - 0x18], 1
push 0x4b1284
lea eax, [ebp - 0x18]
push eax
call fcn.004771eb
mov ecx, dword [0x517e5c]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x471668
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x47167d
mov dword [ebp - 0x1c], 4
push 0x4b1284
lea edx, [ebp - 0x1c]
push edx
call fcn.004771eb
mov dword [ebp - 4], 0xffffffff
jmp 0x4716a2
mov eax, dword [0x517e5c]
mov eax, dword [eax]
test eax, eax
je 0x4716b4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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
Function at 0x4716d0
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x471702
xor ecx, ecx
jmp 0x47170e
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x4717c1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x471734
mov dword [esp + 0x18], esi
jmp 0x471794
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x47178d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x471780
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x471794
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x471794
push 0x4ab6a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x471794
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x4717b7
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x471726
mov eax, dword [esp + 0x18]
pop edi
pop ebp
test eax, eax
jne 0x4717d5
mov ecx, dword [ebx]
add ecx, 8
call fcn.00471960
test eax, eax
je 0x4717d5
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4717e0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4936ab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00476ef0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x471878
push 0x4b1284
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004771eb
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x471eba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bd450]
jne 0x471ec4
repz ret
jmp fcn.004779d2
Function at 0x485f05
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00477b4a
and dword [ebp - 4], 0
cmp dword [0x513958], 0
mov ebx, eax
jne 0x485fb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x486067
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x486067
push eax
call fcn.00477ad8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x513958], eax
call esi
push eax
call fcn.00477ad8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x51395c], eax
call esi
push eax
call fcn.00477ad8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x513960], eax
call esi
push eax
call fcn.00477ad8
pop ecx
mov dword [0x513968], eax
test eax, eax
je 0x485fb6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00477ad8
pop ecx
mov dword [0x513964], eax
mov eax, dword [0x513964]
cmp eax, ebx
je 0x48600e
cmp dword [0x513968], ebx
je 0x48600e
push eax
call fcn.00477b53
push dword [0x513968]
mov esi, eax
call fcn.00477b53
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48600e
test edi, edi
je 0x48600e
call esi
test eax, eax
je 0x486005
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x486005
test byte [ebp - 0xc], 1
jne 0x48600e
or dword [ebp + 0x10], 0x200000
jmp 0x486047
mov eax, dword [0x51395c]
cmp eax, ebx
je 0x486047
push eax
call fcn.00477b53
pop ecx
test eax, eax
je 0x486047
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x486047
mov eax, dword [0x513960]
cmp eax, ebx
je 0x486047
push eax
call fcn.00477b53
pop ecx
test eax, eax
je 0x486047
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x513958]
call fcn.00477b53
pop ecx
test eax, eax
je 0x486067
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x486069
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48ef50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
ja 0x48ef72
jb 0x48ef69
cmp edi, 0x20
jae 0x48ef72
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x20]
push 0x49f8f0
push dword [ebp + 0x1c]
push esi
push eax
call fcn.00490190
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0x10]
mov esi, dword [ebp + 8]
push eax
push ebx
push edi
push dword [ebp + 0xc]
push esi
call fcn.00490750
add edi, 0xffffffe0
lea eax, [esi + 0x20]
push esi
adc ebx, 0xffffffff
push ebx
push edi
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00490d70
add esp, 0x3c
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48efd0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
lea eax, [ebp - 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push 0x20
push eax
add ebx, 0x20
call fcn.0048f0d0
add esp, 8
test al, al
je 0x48f0bd
push edi
push 0x49f8d0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0048fb20
lea eax, [ebx + ebx]
push eax
call fcn.00472de8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48f023
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0x14]
xorps xmm0, xmm0
lea eax, [edi + 0x20]
push dword [ebp + 0x10]
movdqu xmmword [edi], xmm0
push eax
lea esi, [edi + ebx]
movdqu xmmword [edi + 0x10], xmm0
call fcn.00478590
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0048fb20
push 0x49f8f0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
push 0x49f904
push eax
call fcn.00490190
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
push 0
push ebx
push edi
push esi
call fcn.0048ef50
add esp, 0x40
lea eax, [ebx - 0x10]
push eax
lea eax, [esi + 0x10]
mov esi, dword [ebp + 0x18]
push eax
push esi
call fcn.00478590
movdqu xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp + 0x1c]
lea ecx, [ebx + 0x10]
push edi
movdqu xmmword [ebx + esi - 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
movdqu xmmword [ebx + esi], xmm0
mov dword [eax], ecx
call fcn.00472c50
add esp, 0x10
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48f0d0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x48f113
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x48f0fd
xor al, al
mov esp, ebp
pop ebp
ret
push 8
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x48f0f7
push ebx
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]
test eax, eax
setne bl
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48f2b0
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 0x48f2dc
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4be098]
dec edx
jne 0x48f2c1
not eax
pop esi
pop ebp
ret
Function at 0x48f2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov ecx, 0x20
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov esi, ebx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
mov edi, 0x49f918
lea esi, [eax + 0x1f]
sub edi, ebx
lea esp, [esp]
mov ecx, dword [edi + edx]
lea edx, [edx + 4]
add ecx, dword [edx - 4]
add eax, ecx
movzx ecx, al
shr eax, 8
mov dword [edx - 4], ecx
dec esi
jne 0x48f320
sub eax, 0xffffff80
lea ecx, [ebp - 0x80]
add dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x7c]
shr eax, 7
and eax, 1
neg eax
sub ecx, ebx
movd xmm0, eax
lea eax, [esi + 8]
pshufd xmm2, xmm0, 0
lea esp, [esp]
lea ebx, [ebx + 0x10]
movdqu xmm1, xmmword [ebx - 0x10]
movdqu xmm0, xmmword [ecx + ebx - 0x10]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [ebx - 0x10], xmm0
dec eax
jne 0x48f360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48fb20
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.00478590
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 eax, eax
lea ecx, [ecx]
movzx ecx, byte [eax + edx]
mov dword [ebp + eax*4 - 0x1a0], ecx
inc eax
cmp eax, 0x20
jb 0x48fb50
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.0048f390
lea eax, [ebp - 0x120]
push eax
push eax
call fcn.0048fbd0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0048f830
lea eax, [ebp - 0xa0]
push eax
call fcn.0048f2f0
mov edx, dword [ebp + 8]
add esp, 0x20
xor ecx, ecx
lea esp, [esp]
mov al, byte [ebp + ecx*4 - 0xa0]
mov byte [ecx + edx], al
inc ecx
cmp ecx, 0x20
jb 0x48fbb0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x48ffb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
dec eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movd xmm0, eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0xfc]
cmp edi, eax
pshufd xmm3, xmm0, 0
mov eax, dword [ebp + 0x14]
lea edx, [edi + 0xfc]
ja 0x48ffe7
cmp edx, ebx
jae 0x49001f
lea ecx, [eax + 0xfc]
cmp edi, ecx
ja 0x48fff5
cmp edx, eax
jae 0x49001f
lea ecx, [esi + 0xfc]
cmp edi, ecx
ja 0x490003
cmp edx, esi
jae 0x49001f
lea edx, [ebx + 0xfc]
cmp esi, edx
ja 0x490011
cmp ecx, ebx
jae 0x49001f
lea edx, [eax + 0xfc]
cmp esi, edx
ja 0x49005a
cmp ecx, eax
jb 0x49005a
sub esi, eax
mov dword [ebp + 0x18], 0x40
sub ebx, eax
sub edi, eax
lea esp, [esp]
mov ecx, dword [eax]
lea eax, [eax + 4]
mov edx, dword [eax + ebx - 4]
xor edx, ecx
and edx, dword [ebp - 4]
xor ecx, edx
mov dword [eax + esi - 4], ecx
mov ecx, dword [eax + ebx - 4]
xor ecx, edx
dec dword [ebp + 0x18]
mov dword [eax + edi - 4], ecx
jne 0x490030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, eax
sub edi, eax
sub ebx, eax
mov ecx, 0x10
jmp 0x490070
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [eax - 0x10]
movdqu xmm2, xmmword [ebx + eax - 0x10]
pxor xmm2, xmm1
pand xmm2, xmm3
movdqa xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [esi + eax - 0x10], xmm0
movdqu xmm0, xmmword [ebx + eax - 0x10]
pxor xmm0, xmm2
movdqu xmmword [edi + eax - 0x10], xmm0
dec ecx
jne 0x490070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4909b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov ebx, 0x49f9c0
mov edx, esi
push edi
sub ebx, esi
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x40]
lea edi, [ecx + 0x11]
mov dword [ebp - 4], eax
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmm0, xmmword [esi + 0x30]
movdqu xmmword [ebp - 0x14], xmm0
mov eax, dword [ebx + edx]
lea edx, [edx + 4]
add eax, dword [edx - 4]
add ecx, eax
movzx eax, cl
shr ecx, 8
mov dword [edx - 4], eax
dec edi
jne 0x4909f7
mov ebx, dword [esi + 0x40]
lea eax, [esi + 0x40]
shr ebx, 7
lea edi, [ebp - 0x44]
neg ebx
mov ecx, 4
sub edi, esi
movd xmm0, ebx
pshufd xmm2, xmm0, 0
lea esp, [esp]
lea esi, [esi + 0x10]
movdqu xmm1, xmmword [esi - 0x10]
movdqu xmm0, xmmword [edi + esi - 0x10]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [esi - 0x10], xmm0
dec ecx
jne 0x490a30
lea esi, [ecx + 1]
mov edx, dword [eax + edi]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, ebx
xor dword [eax - 4], edx
dec esi
jne 0x490a55
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x490fa0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491ae0

Function at 0x490fb0
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491ce0