joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdcdb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4bdd1e
call fcn.004b8464
mov dword [eax], 0xf
call fcn.004b8451
mov dword [eax], 0xd
call fcn.004b9c20
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a927c
leave
ret
test eax, eax
jne 0x4bdd25
inc eax
jmp 0x4bdd12
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4bdd10
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4bdd12
Function at 0x4c38f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c391d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c391d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c49a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5326ec
push str.FlsAlloc
push 0x1f
call fcn.004c4e59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c49da
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4c49e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c4a24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x532710
push str.FlsGetValue
push 0x21
call fcn.004c4e59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c4a5b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c4a63
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x532724
push str.FlsSetValue
push 0x22
call fcn.004c4e59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c4a9d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c8b47
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004c41da
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004c41da
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4c8bbe
cmp word [ecx], dx
je 0x4c8bbe
mov eax, dword [0x5330e4]
push edi
dec eax
push eax
push 0x532fd0
call fcn.004c8d37
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4c8c31
cmp word [eax], dx
je 0x4c8c31
mov eax, dword [edi]
test eax, eax
je 0x4c8be2
cmp word [eax], dx
je 0x4c8be2
lea eax, [ebp - 0x10]
push eax
call fcn.004c8d98
jmp 0x4c8beb
lea eax, [ebp - 0x10]
push eax
call fcn.004c9093
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4c8c5b
mov eax, dword [0x532fcc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x532cc0
call fcn.004c8d37
add esp, 0xc
test al, al
je 0x4c8c5b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4c8c26
cmp word [eax], di
je 0x4c8c26
lea eax, [ebp - 0x10]
push eax
call fcn.004c8d98
pop ecx
jmp 0x4c8c5d
lea eax, [ebp - 0x10]
push eax
call fcn.004c9093
jmp 0x4c8c23
mov eax, dword [edi]
test eax, eax
je 0x4c8c48
cmp word [eax], dx
je 0x4c8c48
lea eax, [ebp - 0x10]
push eax
call fcn.004c91d5
pop ecx
jmp 0x4c8c5b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4c8d26
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004c92c7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c8d26
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4c8d26
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4c8d26
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c8cb3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004c4c9c
test ebx, ebx
je 0x4c8d21
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004c4c9c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c8d26
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c8d26
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004d23bb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4c8d28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a927c
leave
ret
Function at 0x4c93cd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004c41da
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c943c
cmp esi, dword [ebp - 4]
je 0x4c9437
cmp dword [ebp + 0xc], 0
je 0x4c9437
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c9414
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004c9496
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4c943e
xor eax, eax
inc eax
jmp 0x4c943e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4c97e5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4c9830
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c995b
test al, al
jne 0x4c982a
sub edx, 2
cmp edx, edi
jne 0x4c9810
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c9852
lea eax, [edi + 2]
cmp edx, eax
je 0x4c9852
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c9731
add esp, 0x10
jmp 0x4c994c
push esi
lea ecx, [ebp - 0x255]
call fcn.004c995b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c9895
push dword [ebp - 0x25c]
jmp 0x4c9842
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4c98d2
cmp word [ebp - 0x226], 0
je 0x4c98f3
cmp word [ebp - 0x226], ax
jne 0x4c98d2
cmp word [ebp - 0x224], 0
je 0x4c98f3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c9731
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c993f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c98ac
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c9927
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4c994c
push 0x4c9980
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c07d0
add esp, 0x10
jmp 0x4c991c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a927c
leave
ret
Function at 0x4caaf6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4cab93
push ebx
push esi
call fcn.004cabe4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004ca9fa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4cab40
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cab92
push edi
push eax
call fcn.0041afb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4cab60
call fcn.00460250
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cab91
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004ca9fa
add esp, 0x20
test eax, eax
jne 0x4cab7f
push edi
call fcn.00460250
jmp 0x4cab87
push ebx
call fcn.00460250
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4cab96
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4caba7
pop esi
ret
push ebx
push edi
push esi
call fcn.004cabe4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041afb0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4cabcf
push ebx
push esi
push edi
call fcn.004ac560
add esp, 0xc
push 0
call fcn.00460250
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4cac26
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cae91
Function at 0x4eb060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x4eb0c6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4eb0ce
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x4eb0b0
cmp byte [esi + 4], 0
je 0x4eb0ca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x4eb084
mov eax, dword [esi]
jmp 0x4eb0a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x4eb0f4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4eb0f8
xor ebx, ebx
jmp 0x4eb0b0
mov eax, dword [esi]
jmp 0x4eb0e0
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x4eb11a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x4eb0b0
mov eax, dword [esi]
jmp 0x4eb10b
Function at 0x4eb4e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x48], eax
xor eax, eax
dec eax
lea esi, [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1ca
push str....._base_files_file_util_win.cc
push str.DeleteFileAfterReboot
push ebx
call fcn.0046e4d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00472710
mov al, byte [edi + 0xb]
test al, al
jns 0x4eb551
cmp dword [edi + 4], 0x103
jbe 0x4eb551
xor ebx, ebx
jmp 0x4eb567
test al, al
jns 0x4eb557
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.00472790
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ebeb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x56ad24], 0
je 0x4ebee8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x56ad10]
test esi, esi
je 0x4ebf82
test byte [0x559cc8], 1
je 0x4ebed1
cmp byte [esi + 0xb], 0
jns 0x4ebf07
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x541e00]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x56ad24], eax
inc eax
cmp eax, 1
ja 0x4ebed1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.004acae0
add esp, 0xc
mov word [esi - 2], 0
lea edi, [ebp - 0x218]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x4ec025
xor ebx, ebx
jmp 0x4ebed1
push 0xc
call fcn.004a8ae0
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.004acae0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.004d40b0
movzx eax, byte [esi + 0xb]
test al, al
js 0x4ebfd7
and eax, 0x7f
mov ecx, esi
jmp 0x4ebfdc
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
je 0x4ec00c
lea edi, [eax + eax]
test edi, edi
je 0x4ec00c
lea edx, [edi - 2]
cmp word [ecx + edi - 2], 0x5c
mov edi, edx
jne 0x4ebfe3
cmp edx, 0xfffffffe
je 0x4ec00c
sar edx, 1
cmp eax, edx
jbe 0x4ec0c5
inc edx
mov ecx, esi
push edx
call fcn.004ebc80
mov ecx, esi
push 9
push str.debug.log
call fcn.00426260
mov dword [0x56ad10], esi
jmp 0x4ebef6
mov esi, dword [0x56ad10]
push edi
call fcn.004c1ee1
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00426170
mov ecx, dword [0x56ad10]
call fcn.004e91e0
cmp word [eax], 0x5c
je 0x4ec060
mov ecx, dword [0x56ad10]
push 1
push 0x53fb48
call fcn.00426260
mov ecx, dword [0x56ad10]
push 9
push str.debug.log
call fcn.00426260
mov eax, dword [0x56ad10]
cmp byte [eax + 0xb], 0
jns 0x4ec07f
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x541e00]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x56ad24], eax
inc eax
cmp eax, 1
ja 0x4ebed1
mov dword [0x56ad24], 0
jmp 0x4ebf7b
mov ecx, esi
call fcn.004d4030
int3
Function at 0x4fac60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov esi, dword [eax + 4]
xor edx, edx
cmp edi, esi
jge 0x4fac86
mov eax, dword [eax]
xor edx, edx
mov ebx, edi
or edx, dword [eax + ebx*4]
inc ebx
cmp esi, ebx
jne 0x4fac7e
cmp esi, edi
jge 0x4fac96
mov eax, dword [ecx]
mov ebx, esi
or edx, dword [eax + ebx*4]
inc ebx
cmp edi, ebx
jne 0x4fac8e
cmp edi, esi
cmovl esi, edi
test esi, esi
jle 0x4facb5
mov edi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
xor eax, eax
mov ecx, dword [ebx + eax*4]
xor ecx, dword [edi + eax*4]
or edx, ecx
inc eax
cmp esi, eax
jne 0x4faca8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0xc]
xor eax, eax
or ecx, edx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4feb10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x4fec26
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor esi, esi
xor eax, eax
xor edi, edi
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + ecx*4]
mov ecx, edx
shl ecx, 0x10
mov eax, ecx
not eax
dec ecx
and ecx, eax
sar ecx, 0x1f
mov dword [ebp - 0x24], ecx
mov eax, edx
shr eax, 0x10
xor eax, edx
and eax, ecx
xor eax, edx
mov esi, eax
shl esi, 0x18
mov ecx, esi
dec esi
not ecx
and esi, ecx
mov ecx, eax
shr ecx, 8
sar esi, 0x1f
mov dword [ebp - 0x20], esi
xor ecx, eax
and ecx, esi
xor ecx, eax
mov eax, ecx
shl eax, 0x1c
mov esi, eax
not esi
dec eax
and eax, esi
sar eax, 0x1f
mov edi, ecx
shr edi, 4
mov esi, eax
xor edi, ecx
and edi, eax
xor edi, ecx
mov ecx, edi
shl ecx, 0x1e
mov eax, ecx
dec ecx
not eax
and ecx, eax
mov eax, edi
shr eax, 2
sar ecx, 0x1f
mov ebx, ecx
xor eax, edi
and eax, ecx
lea ecx, [edx - 1]
not edx
and ecx, edx
xor eax, edi
shl eax, 0x1f
mov edx, eax
not edx
dec eax
and eax, edx
mov edx, dword [ebp - 0x24]
and edx, 0x10
shr eax, 0x1f
or eax, edx
mov edx, dword [ebp - 0x20]
and edx, 8
or eax, edx
and esi, 4
or eax, esi
mov esi, dword [ebp - 0x28]
sar ecx, 0x1f
and ebx, 2
or eax, ebx
mov edx, ecx
not edx
mov edi, dword [ebp - 0x1c]
or ecx, edi
or edx, edi
add eax, esi
not ecx
and ecx, eax
mov eax, dword [ebp - 0x2c]
or eax, ecx
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 0x10]
add esi, 0x20
mov edi, edx
mov edx, dword [ebp - 0x10]
cmp ecx, edx
jne 0x4feb37
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x4fec1e
Function at 0x505ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [ebp - 0x58], edx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x557008]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea ecx, [eax + 4]
mov esi, ecx
shr esi, 5
mov eax, dword [ebx + 0xec]
xor edx, edx
mov edi, 0
cmp esi, eax
jae 0x505be3
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + esi*4]
shr edi, cl
shl edi, 5
and edi, 0x20
mov dword [ebp - 0x5c], ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebx + 3]
mov esi, ecx
shr esi, 5
cmp esi, eax
jae 0x505c03
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + esi*4]
shr edx, cl
shl edx, 4
and edx, 0x10
or edx, edi
lea ecx, [ebx + 2]
mov ebx, ecx
shr ebx, 5
xor edi, edi
mov esi, 0
cmp ebx, eax
jae 0x505c26
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + ebx*4]
shr esi, cl
shl esi, 3
and esi, 8
or edx, esi
mov ecx, dword [ebp + 0x10]
inc ecx
mov esi, ecx
shr esi, 5
cmp esi, eax
mov ebx, eax
jae 0x505c45
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + esi*4]
shr edi, cl
shl edi, 2
and edi, 4
or edx, edi
mov ecx, dword [ebp + 0x10]
shr ecx, 5
xor esi, esi
mov eax, ebx
cmp ecx, ebx
mov ebx, edx
jae 0x505c67
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
shr esi, cl
add esi, esi
and esi, 2
or ebx, esi
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x505c8e
dec edx
mov esi, edx
shr esi, 5
xor ecx, ecx
cmp esi, eax
jae 0x505c8c
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov edx, dword [ecx + esi*4]
xor ecx, ecx
bt edx, eax
setb cl
or ebx, ecx
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 5
lea eax, [ecx - 1]
neg ecx
and eax, ebx
xor ebx, 0x3f
mov dword [ebp - 0x60], ecx
and ebx, ecx
or ebx, eax
mov eax, ebx
shr eax, 1
and ebx, 1
add ebx, eax
push 0xcc
push 0
push dword [ebp - 0x58]
call fcn.004acae0
add esp, 0xc
xor esi, esi
mov eax, esi
xor eax, ebx
dec eax
sar eax, 0x1f
mov ecx, dword [ebp - 0x58]
push ecx
push edi
push eax
push ecx
push dword [ebp - 0x5c]
call fcn.00502e50
add esp, 0x14
inc esi
add edi, 0xcc
cmp esi, 0x11
jne 0x505cc4
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x54]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x40], 0xffffffff
mov edi, dword [ebp - 0x58]
add edi, 0x44
push edi
push eax
mov esi, dword [ebp - 0x5c]
push esi
call fcn.00504d60
add esp, 0xc
mov eax, dword [esi + 0x11c]
test eax, eax
mov ebx, dword [ebp - 0x60]
je 0x505d57
mov ecx, ebx
not ecx
mov dword [ebp - 0x58], ecx
xor edx, edx
mov esi, dword [ebp + edx*4 - 0x54]
and esi, ebx
mov ecx, eax
mov eax, ebx
mov ebx, edi
mov edi, dword [edi + edx*4]
and edi, dword [ebp - 0x58]
or edi, esi
mov dword [ebx + edx*4], edi
mov edi, ebx
mov ebx, eax
mov eax, ecx
inc edx
cmp ecx, edx
jne 0x505d35
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x510b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, edx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
add eax, 0x20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
xor esi, esi
mov edi, esi
xor edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, edi
push ecx
push ebx
call fcn.00510a70
add esp, 8
lea eax, [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, edi
push ecx
push eax
call fcn.00510a70
add esp, 8
inc esi
add ebx, 0x40
cmp esi, 0xf
jne 0x510b69
mov ecx, dword [ebp + 8]
add ecx, 0x40
mov edx, dword [ebp - 0x10]
push 0x54a220
push ecx
call fcn.00510a70
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x523510
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe4
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
push esi
push 0x20
push dword [ebp + 0x10]
call fcn.00500ed0
add esp, 0xc
and byte [esi], 0xf8
mov al, byte [esi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea edi, [ebp - 0xf0]
push 0xa0
push 0xff
push edi
call fcn.004acae0
add esp, 0xc
push 0x54e2dc
push esi
push edi
call fcn.00495de0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, edi
call fcn.00526c30
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [ebx + 0x10], xmm1
movups xmmword [ebx], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
add esp, 0xe4
pop esi
pop edi
pop ebx
pop ebp
ret