joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4158c7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a1140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5a4494]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x415920
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41593d
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a4494], eax
jmp 0x415929
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41593d
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x415a7a
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0053b978
lea eax, [ebp - 0x14]
push eax
call fcn.005243b1
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00527186
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0053b978
lea eax, [ebp - 0x14]
push eax
call fcn.005243b1
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00527186
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0053b978
lea eax, [ebp - 0x14]
push eax
call fcn.005243b1
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00527186
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0053b978
lea eax, [ebp - 0x14]
push eax
call fcn.005243b1
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00527186
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0053b978
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.005243b1
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00527186
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a82
leave
ret
Function at 0x42b5ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042b656
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42b5f5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408480
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402b00
jmp 0x42b600
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00415e0f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x44aeba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x44aed2
call fcn.004111ad
mov esi, dword [eax + 0xc]
push 0x557684
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44af28
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44af27
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x44af08
xor esi, esi
jmp 0x44af1e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0044af2e
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4c04e8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
call fcn.004c02ea
inc ebx

Function at 0x4c04f8
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
call fcn.004c02ea
inc ebx

Function at 0x508f72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x508f8c
mov edi, dword [esi + 0xc]
jmp 0x508fcc
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x508fa5
call fcn.00411bc6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x508fba
call fcn.00411bc6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x508fcc
call fcn.00411bc6
call fcn.004111ad
cmp dword [eax + 0x3c], 0
je 0x508fe1
push edi
mov ecx, ebx
call fcn.0050880e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005091a4
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x509004
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x50900d
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x536548
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a1140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0052af65
mov dword [ebp - 0x14], eax
cmp dword [0x5a8ad8], edi
jne 0x536639
push 0x800
push edi
push 0x5797f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x5365c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x536719
push 0x5797f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x536719
push 0x579808
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x536719
push eax
call ebx
push 0x579814
push esi
mov dword [0x5a8ad8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x579824
push esi
mov dword [0x5a8adc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5a8ae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a8ae8], eax
test eax, eax
je 0x536636
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a8ae4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53665e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x536651
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x536673
push 4
pop eax
jmp 0x53671b
cmp dword [ebp - 0x14], edi
je 0x536673
push dword [0x5a8ad8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x536658
mov eax, dword [0x5a8ae4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x5366d1
cmp dword [0x5a8ae8], esi
je 0x5366d1
push eax
call ebx
push dword [0x5a8ae8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5366d1
test eax, eax
je 0x5366d1
call ecx
test eax, eax
je 0x5366c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5366c6
test byte [ebp - 8], 1
jne 0x5366d1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x536701
mov eax, dword [0x5a8adc]
cmp eax, esi
je 0x5366fe
push eax
call ebx
test eax, eax
je 0x5366fe
call eax
mov edi, eax
test edi, edi
je 0x5366fe
mov eax, dword [0x5a8ae0]
cmp eax, esi
je 0x5366fe
push eax
call ebx
test eax, eax
je 0x5366fe
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5a8ad8]
call ebx
test eax, eax
je 0x536719
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x53671b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a82
leave
ret
Function at 0x405e30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x405e62
movsx eax, cl
sub eax, 0x41
jmp 0x405ea4
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x405e71
movsx eax, cl
sub eax, 0x47
jmp 0x405ea4
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x405e80
movsx eax, cl
add eax, 4
jmp 0x405ea4
cmp cl, 0x2b
jne 0x405e8c
mov eax, 0x3e
jmp 0x405ea4
cmp cl, 0x2f
jne 0x405e98
mov eax, 0x3f
jmp 0x405ea4
cmp cl, 0x3d
jne 0x405f21
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x405e50
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x405f21
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x405f21
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x405ed2
cmp eax, ecx
jne 0x405f21
lea ebx, [ecx + 2]
jmp 0x405edd
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x405f06
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x405f0e
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429c32
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret

Function at 0x406c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x406c95
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or edi, edx
sub esi, 1
jne 0x406c80
pop ebx
mov eax, 0x100
sub eax, edi
pop edi
shr eax, 8
pop esi
pop ebp
ret
Function at 0x407380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40], edi
movups xmm0, xmmword [edi + 0x3c8]
movups xmmword [ebp - 0x34], xmm0
test ebx, ebx
jle 0x4074e5
dec ebx
add edx, 3
shr ebx, 4
inc ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ebx
push esi
movzx ecx, byte [edx - 3]
lea esi, [edx - 1]
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.00407360
add esp, 8
xor edi, edi
mov edx, dword [ebp + edi - 0x34]
lea esi, [esi + 4]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 0x18
xor cl, al
mov eax, ebx
mov byte [esi - 6], cl
mov ecx, edx
shr ecx, 0x10
shr eax, 0x10
xor cl, al
mov eax, ebx
mov byte [esi - 5], cl
mov ecx, edx
shr eax, 8
xor dl, bl
shr ecx, 8
xor cl, al
mov byte [esi - 3], dl
mov eax, dword [ebp + edi - 0x24]
mov dword [ebp + edi - 0x34], eax
add edi, 4
mov byte [esi - 4], cl
cmp edi, 0x10
jl 0x407464
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x4073c0
movups xmm0, xmmword [ebp - 0x34]
mov eax, edi
pop esi
pop edi
pop ebx
movups xmmword [eax + 0x3c8], xmm0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429c32
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
movups xmmword [edi + 0x3c8], xmm0
pop edi
xor ecx, ebp
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x408240
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
movups xmm0, xmmword [ebx + 0x3c8]
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x14], xmm0
test edi, edi
jle 0x40839d
mov edx, dword [ebp - 8]
dec edi
shr edi, 4
add esi, 2
inc edi
nop word [eax + eax]
movzx ecx, byte [esi - 2]
movzx eax, byte [esi - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 3]
xor dword [ebp - 0x14], ecx
movzx ecx, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
xor dword [ebp - 0x10], ecx
movzx ecx, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
xor dword [ebp - 0xc], ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
xor edx, ecx
push ebx
mov dword [ebp - 8], edx
call fcn.00408220
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, ecx
mov byte [esi + 1], cl
shr eax, 0x18
mov byte [esi - 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
mov eax, ecx
mov ecx, dword [ebp - 0x10]
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 7], al
mov eax, ecx
shr eax, 8
mov edx, dword [ebp - 8]
lea esi, [esi + 0x10]
mov byte [esi - 8], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 6], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 5], al
mov eax, edx
shr eax, 8
mov byte [esi - 7], cl
mov byte [esi - 4], al
mov byte [esi - 3], dl
sub edi, 1
jne 0x408280
movups xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
movups xmmword [ebx + 0x3c8], xmm0
xor ecx, ebp
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x4095e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x8c], eax
lea esi, [ecx + 1]
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x94], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409610
lea eax, [ebp - 0x84]
sub ecx, esi
push eax
push ecx
push edx
call fcn.0041e730
mov eax, dword [ebp + 0x1c]
xor edi, edi
add eax, 0x1f
mov dword [ebp - 0x88], edi
cdq
add esp, 0xc
and edx, 0x1f
lea ebx, [edx + eax]
sar ebx, 5
test ebx, ebx
jle 0x4096fe
mov eax, dword [ebp + 0x14]
nop dword [eax]
mov ecx, dword [ebp - 0x8c]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x10]
xor esi, esi
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test eax, eax
jle 0x4096c6
lea eax, [edi + 1]
mov dword [ebp - 0x90], eax
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push edx
push ecx
lea eax, [ebp - 0x84]
xor ecx, ecx
push eax
test esi, esi
mov eax, edi
cmovne eax, ecx
push eax
call fcn.00409440
add esp, 0x14
lea ecx, [ebp - 0x44]
mov edx, 0x20
xor eax, eax
nop
movups xmm0, xmmword [ebp + eax - 0x24]
movups xmm1, xmmword [ebp + eax - 0x44]
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x24], xmm1
add eax, 0x10
cmp eax, 0x20
jl 0x4096a0
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x409675
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp + 0x1c]
mov ecx, edi
cmp edi, esi
jge 0x4096ec
mov edi, dword [ebp - 0x94]
lea edx, [ebp - 0x24]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edi + ecx], al
add ecx, ebx
cmp ecx, esi
jl 0x4096d8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0x14]
inc edi
mov dword [ebp - 0x88], edi
cmp edi, ebx
jl 0x409650
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004248d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x40f5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], ecx
test ebx, ebx
je 0x40f6aa
dec ebx
shr ebx, 3
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ea40
lea eax, [edi + 0x88]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push dword [ebp - 0xc]
push eax
call fcn.0040e060
lea eax, [edi + 0x110]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push dword [ebp - 0xc]
push eax
call fcn.0040ea40
mov ecx, dword [ebp - 0xc]
lea esi, [esi + 8]
xor byte [esi - 5], cl
mov eax, ecx
shr eax, 0x18
add esp, 0x30
xor byte [esi - 8], al
mov eax, ecx
mov edx, dword [ebp - 4]
shr eax, 0x10
xor byte [esi - 7], al
mov eax, ecx
mov ecx, dword [ebp - 8]
xor byte [esi - 1], cl
shr eax, 8
xor byte [esi - 6], al
mov eax, ecx
shr eax, 0x18
xor byte [esi - 4], al
mov eax, ecx
shr eax, 0x10
xor byte [esi - 3], al
mov eax, ecx
mov ecx, dword [ebp + 0x10]
shr eax, 8
xor byte [esi - 2], al
add ecx, 1
lea eax, [edx + 1]
mov dword [ebp + 0x10], ecx
cmovne eax, edx
mov dword [ebp - 4], eax
sub ebx, 1
jne 0x40f611
pop esi
mov dword [edi + 0x84], ecx
mov dword [edi + 0x80], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412e50
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x120], esi
mov eax, dword [esi]
test eax, eax
jne 0x412e94
lea eax, [esi + 0x20]
push ebx
push eax
call fcn.00413e10
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429c32
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x412f43
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0041e6e0
mov edi, dword [esi + 0xc]
add esp, 4
shr edi, 3
xor esi, esi
test edi, edi
je 0x412eea
nop dword [eax]
push esi
push ebx
call fcn.0040b340
mov byte [ebp - 0x119], al
lea eax, [ebp - 0x119]
push 1
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041e170
inc esi
add esp, 0x14
cmp esi, edi
jl 0x412ec0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041e390
mov al, byte [ebp - 0x25]
and byte [ebp - 0x44], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0040b5e0
mov ecx, dword [ebp - 0x120]
mov edi, eax
add ecx, 0x1c
push edi
push ecx
call fcn.00413e10
push edi
mov esi, eax
call fcn.0040bbd0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429c32
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret

Function at 0x4149e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add dword [ebp + 8], 0xb8
pop ebp
jmp fcn.00414ce0
Function at 0x415910
Capabilities:
Hash data with md5

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

Function at 0x415a00
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.0042b4f0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x415a57
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x415a54
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x415a40
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.00414c50
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00414ce0
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.0042b4f0
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x415a98
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x415a98
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x415a84
lea esi, [ebx + 0x5c]
push esi
call fcn.00414c50
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00414ce0
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004248d0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret