joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5714d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.00570640
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x5714f2
call fcn.00570670
test byte [ebx + 0x20], 0x30
jne 0x57150c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x592114]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x57154d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x57158d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x571542
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x571556
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.00570410
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x592114]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
push edx
push edx
jmp 0x57154d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x5715a1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x57156e

Function at 0x5715b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x7061f4]
test eax, eax
jne 0x5715c0
xor eax, eax
ret
sub esp, 0x1c
call fcn.00570430
mov eax, dword [0x592114]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x571600
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x5715f0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x5715e4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x5715e6
call fcn.005704f0
test eax, eax
jne 0x5715dd
jmp 0x5715e4

Function at 0x571610
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00570430
mov eax, dword [0x592114]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x571650
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x571640
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.005704f0
test eax, eax
jne 0x57162d
add esp, 0x1c
ret
Function at 0x571750
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.00570430
mov eax, dword [0x592114]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x5717c0
test byte [ebx + 0x20], 0xc
jne 0x571780
mov eax, dword [0x7061f4]
test eax, eax
jne 0x571790
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0056f6d0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x5717b2
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x5717b2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x5717d1
mov dword [esp], esi
call fcn.0056fa10
add esp, 0x14
pop ebx
pop esi
ret
call fcn.005704f0
mov ebx, eax
test eax, eax
jne 0x571771
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5717f1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0056fa10
call fcn.00571660
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x571880
mov dword [esp], eax
call fcn.00572a50
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x5718c0
call fcn.00570430
mov eax, dword [0x592114]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x571920
test edi, edi
je 0x57189a
call fcn.00571750
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5718f8
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00572b60
call fcn.00571750
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.00570430
mov eax, dword [0x592114]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x571910
call fcn.00571750
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub esp, 4
call fcn.00571750
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.00570430
mov eax, dword [0x592114]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x571852
call fcn.005704f0
mov ebx, eax
jmp 0x571852
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub esp, 4
jmp 0x57186e
call fcn.005704f0
jmp 0x57189a
call fcn.005704f0
mov ebx, eax
jmp 0x57184e

Function at 0x575380
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00574ff0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00574ff0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x5753e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x706234]
test esi, esi
jle 0x575500
mov eax, dword [0x706238]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x575414
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x575497
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x575400
mov dword [esp], ebx
call fcn.00575dd0
mov edi, eax
test eax, eax
je 0x575527
mov eax, dword [0x706238]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00575f10
mov edx, dword [0x706238]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x575507
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x575490
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x5754a0
add dword [0x706234], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x706238]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x575490
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00575380
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x57541e
mov eax, dword [0x706238]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00575380
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00575380
lea esi, [esi]
nop

Function at 0x575a40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x706250
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x706248]
sub esp, 4
test ebx, ebx
je 0x575a95
mov ebp, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x575a8e
test esi, esi
je 0x575a8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x575a70
mov dword [esp], 0x706250
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x575dd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x575df5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x575e00
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x575df5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x575e48
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x575e3e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x575e4a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x575e30
xor eax, eax
pop ebx
pop esi
ret
Function at 0x577f2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
mov edi, dword [ebx + eax*4]
mov edx, dword [esi + eax*4]
xor edx, edi
and edx, ecx
xor edx, edi
mov dword [ebx + eax*4], edx
inc eax
cmp eax, 0xc
jne 0x577f38
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x577f54
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x577fac
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x578099
mov eax, dword [ebp + 8]
mov edx, ebx
lea esi, [ebx + edi]
not eax
mov ecx, esi
sub ecx, edx
cmp ecx, 7
jbe 0x578070
mov ecx, eax
xor al, byte [edx]
add edx, 8
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6d6e00]
mov eax, ecx
xor cl, byte [edx - 7]
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6d6e00]
mov ecx, eax
xor al, byte [edx - 6]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6d6e00]
mov eax, ecx
xor cl, byte [edx - 5]
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6d6e00]
mov ecx, eax
xor al, byte [edx - 4]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6d6e00]
mov eax, ecx
xor cl, byte [edx - 3]
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6d6e00]
mov ecx, eax
xor al, byte [edx - 2]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6d6e00]
mov eax, ecx
xor cl, byte [edx - 1]
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6d6e00]
jmp 0x577fcc
mov edx, edi
and edi, 7
and edx, 0xfffffff8
add edx, ebx
add edi, edx
cmp edx, edi
je 0x578097
inc edx
mov ecx, eax
xor al, byte [edx - 1]
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6d6e00]
mov eax, ecx
jmp 0x57807c
not eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x57a6d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
neg ecx
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
mov edi, dword [ebx + eax*4]
mov edx, dword [esi + eax*4]
xor edx, edi
and edx, ecx
xor edx, edi
mov dword [ebx + eax*4], edx
inc eax
cmp eax, 0xa
jne 0x57a6e2
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x57a6fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
neg edi
push ebx
mov ebx, eax
xor eax, eax
mov esi, dword [ebx + eax*4]
mov ecx, dword [edx + eax*4]
xor ecx, esi
and ecx, edi
xor esi, ecx
mov dword [ebx + eax*4], esi
xor dword [edx + eax*4], ecx
inc eax
cmp eax, 0xa
jne 0x57a70a
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5800f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
mov ecx, 0x18
mov edi, ebx
sub esp, 0x2c
mov dword [ebp - 0x1c], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov ecx, esi
lea edx, [eax - 1]
mov eax, ebx
xor edx, edi
inc edi
mov dword [ebp - 0x20], edx
call fcn.0057c124
lea eax, [ebx + 0x20]
lea ecx, [esi + 0x20]
add esi, 0x40
mov dword [esp], eax
mov edx, dword [ebp - 0x20]
call fcn.0057c124
cmp edi, 0xf
jne 0x58010d
mov dword [esp], 0x6d7c60
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
call fcn.0057c124
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x587030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, edx
push ebx
sub esp, 0xac
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xb0], ecx
call fcn.00586668
lea eax, [ebp - 0x78]
call fcn.00586668
lea eax, [ebp - 0x48]
call fcn.00586668
mov ecx, esi
mov eax, dword [ebp - 0xb0]
inc edi
xor eax, edi
mov edx, eax
dec eax
not edx
and edx, eax
xor eax, eax
sar edx, 0x1f
mov esi, dword [ebp + eax*4 - 0xa8]
mov ebx, esi
xor esi, dword [ecx + eax*4]
and esi, edx
xor esi, ebx
mov ebx, dword [ebp + eax*4 - 0x78]
mov dword [ebp + eax*4 - 0xa8], esi
mov esi, dword [ecx + eax*4 + 0x30]
xor esi, ebx
and esi, edx
xor esi, ebx
mov ebx, dword [ebp + eax*4 - 0x48]
mov dword [ebp + eax*4 - 0x78], esi
mov esi, dword [ecx + eax*4 + 0x60]
xor esi, ebx
and esi, edx
xor esi, ebx
mov dword [ebp + eax*4 - 0x48], esi
inc eax
cmp eax, 0xc
jne 0x58707e
add ecx, 0x90
cmp edi, 0x10
jne 0x587069
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.00586650
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x78]
add eax, 0x30
call fcn.00586650
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x48]
add eax, 0x60
call fcn.00586650
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5881b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp eax, 0x80
je 0x5881db
cmp eax, 0x100
je 0x588272
mov eax, 1
jmp 0x58837d
mov dword [ebx + 0xf0], 0xa
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov esi, 1
call fcn.00576cc8
mov ecx, 0x10
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00576128
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x38]
call fcn.005771f0
movzx eax, byte [esi + 0x6d6c3f]
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + ecx*2 - 0x28]
mov edi, dword [ebp + ecx*2 - 0x38]
call fcn.00577178
mov edx, dword [ebp - 0x4c]
shr eax, 0x18
sar edx, cl
xor eax, edi
and edx, 3
xor eax, edx
mov edx, eax
mov edi, eax
shl edx, 8
shl edi, 0x10
xor edx, edi
xor edx, eax
shl eax, 0x18
xor edx, eax
mov dword [ebp + ecx*2 - 0x38], edx
add ecx, 2
cmp ecx, 8
jne 0x58821b
mov eax, esi
mov ecx, 0x10
lea edx, [ebp - 0x38]
inc esi
shl eax, 4
add eax, ebx
call fcn.00576128
cmp esi, 0xb
jne 0x588204
jmp 0x5882c1
mov dword [ebx + 0xf0], 0xe
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov esi, 2
call fcn.00576cc8
mov ecx, 0x10
mov eax, ebx
lea edx, [ebp - 0x48]
call fcn.00576128
mov eax, dword [ebp + 8]
lea edx, [eax + 0x10]
lea eax, [ebp - 0x38]
call fcn.00576cc8
lea eax, [ebx + 0x10]
mov ecx, 0x10
lea edx, [ebp - 0x38]
call fcn.00576128
add ebx, 0x30
jmp 0x58835d
xor eax, eax
jmp 0x58837d
mov eax, dword [ebp + ecx*2 - 0x28]
mov edi, dword [ebp + ecx*2 - 0x48]
call fcn.00577178
mov edx, dword [ebp - 0x4c]
shr eax, 0x18
sar edx, cl
xor eax, edi
and edx, 3
xor eax, edx
mov edx, eax
mov edi, eax
shl edx, 8
shl edi, 0x10
xor edx, edi
xor edx, eax
shl eax, 0x18
xor edx, eax
mov dword [ebp + ecx*2 - 0x48], edx
add ecx, 2
cmp ecx, 8
jne 0x5882c8
lea eax, [ebx - 0x10]
mov ecx, 0x10
lea edx, [ebp - 0x48]
call fcn.00576128
cmp esi, 0xe
je 0x5882c1
lea eax, [ebp - 0x28]
call fcn.005771f0
xor ecx, ecx
movzx eax, byte [ebp + ecx*4 - 0x25]
xor eax, dword [ebp + ecx*4 - 0x38]
mov edx, eax
mov edi, eax
shl edx, 8
shl edi, 0x10
xor edx, edi
xor edx, eax
shl eax, 0x18
xor eax, edx
mov dword [ebp + ecx*4 - 0x38], eax
inc ecx
cmp ecx, 4
jne 0x588322
mov eax, ebx
mov ecx, 0x10
lea edx, [ebp - 0x38]
add esi, 2
call fcn.00576128
add ebx, 0x20
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x38]
call fcn.005771f0
mov eax, esi
xor ecx, ecx
shr eax, 1
movzx eax, byte [eax + 0x6d6c3f]
mov dword [ebp - 0x4c], eax
jmp 0x5882c8
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x588388
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x5884a7
cmp edi, dword [ebp + 0xc]
jne 0x5884a7
lea edx, [edi + edi]
xor eax, eax
cmp edx, dword [ebp + 0x14]
jne 0x5884a9
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + edi*4]
mov dword [ebp - 0x20], eax
mov esi, eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00588574
mov edx, dword [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [ebp - 0x24]
add eax, edx
cmp edx, eax
mov dword [esi], eax
setne dl
movzx edx, dl
or edx, ecx
xor ecx, ecx
cmp dword [ebp - 0x24], eax
setae cl
inc dword [ebp - 0x28]
add ebx, 4
add esi, 4
and ecx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x28], edi
jb 0x5883ce
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov esi, 1
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, eax
sub edx, ecx
mov dword [ebx], edx
xor edx, edx
xor ebx, ebx
cmp eax, ecx
sbb edx, ebx
mov eax, edx
and eax, 1
cmp esi, edi
jae 0x588475
mov ebx, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebx + esi*4]
xor ebx, ebx
sub ecx, eax
mov eax, dword [ebp + 0x18]
sbb ebx, edx
xor edx, edx
mov eax, dword [eax + esi*4]
sub ecx, eax
mov eax, dword [ebp + 8]
sbb ebx, edx
mov dword [eax + esi*4], ecx
mov eax, ebx
inc esi
and eax, 1
jmp 0x588449
mov ecx, dword [ebp - 0x1c]
xor edx, edx
sub ecx, eax
mov eax, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [esi + edx*4]
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + edx*4]
xor ecx, ebx
and ecx, eax
xor ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + edx*4], ecx
xor ecx, ecx
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jb 0x58847e
mov eax, 1
jmp 0x5884a9
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5884b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, 1
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov ebx, esi
xor ecx, ecx
and ebx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
neg ecx
adc ebx, 0
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
neg ebx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x48]
and ebx, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x1c]
and ecx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor ecx, esi
xor ebx, edi
shrd ecx, ebx, 1
shr ebx, 1
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x18]
and ecx, edi
mov edi, dword [ebp - 0x3c]
and ebx, esi
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x28], ebx
add esi, dword [ebp - 0x28]
adc edi, dword [ebp - 0x24]
xor ebx, ebx
shrd eax, edx, 1
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x1c]
shr edx, 1
and ebx, 0x80000000
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ebx
adc edx, dword [ebp - 0x34]
dec dword [ebp - 0x44]
jne 0x5884db
add esp, 0x44
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5898a4
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x1f]
and byte [edx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [edx + 0x1f], al
pop ebp
ret
Function at 0x58fac4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x18]
mov esi, 0x6d7c80
push ebx
lea ebx, [ebp - 0x720]
sub esp, 0x8dc
mov dword [ebp - 0x8dc], eax
mov dword [ebp - 0x8e8], edx
mov edx, esi
lea eax, [ebp - 0x860]
call fcn.0057b7b8
lea edx, [esi + 0x20]
lea eax, [ebp - 0x7c0]
add esi, 0x40
call fcn.0057b7b8
mov eax, ebx
lea ecx, [ebp - 0x860]
lea edx, [ebp - 0x7c0]
call fcn.0057a96c
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0x860]
lea edx, [ebp - 0x7c0]
call fcn.0057b9d8
lea eax, [ebx + 0x50]
add ebx, 0x78
lea ecx, [ebp - 0x7c0]
lea edx, [ebp - 0x860]
mov dword [ebp - 0x8e0], eax
call fcn.0057aae8
mov eax, dword [ebp - 0x8e0]
mov ecx, 0x6d7240
mov edx, eax
call fcn.0057aae8
cmp edi, ebx
jne 0x58faea
mov eax, dword [ebp - 0x8dc]
call fcn.0057a6a0
mov eax, dword [ebp - 0x8dc]
add eax, 0x28
call fcn.0057a6b4
mov eax, dword [ebp - 0x8dc]
add eax, 0x50
call fcn.0057a6b4
mov eax, dword [ebp - 0x8dc]
add eax, 0x78
call fcn.0057a6a0
mov dword [ebp - 0x8e0], 0x3f
mov esi, dword [ebp - 0x8e0]
mov eax, dword [ebp - 0x8e8]
xor ebx, ebx
xor edx, edx
mov edi, dword [ebp - 0x8e0]
shr esi, 3
add esi, eax
and edi, 7
movzx eax, byte [esi + edx*8]
mov ecx, edi
sar eax, cl
mov ecx, edx
inc edx
and eax, 1
shl eax, cl
or ebx, eax
cmp edx, 4
jne 0x58fbbf
lea edx, [ebp - 0x8d4]
xor eax, eax
mov ecx, 9
movsx ebx, bl
mov edi, edx
lea edx, [ebp - 0x8ac]
mov dword [ebp - 0x8d8], 1
lea esi, [ebp - 0x720]
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 9
mov dword [ebp - 0x8b0], 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x888]
mov edi, 1
call fcn.0057a6a0
mov eax, ebx
xor eax, edi
inc edi
mov edx, eax
dec eax
not edx
and eax, edx
mov edx, esi
shr eax, 0x1f
mov ecx, eax
mov dword [ebp - 0x8e4], eax
lea eax, [ebp - 0x8d8]
call fcn.0057a6d4
mov ecx, dword [ebp - 0x8e4]
lea edx, [esi + 0x28]
lea eax, [ebp - 0x8b0]
call fcn.0057a6d4
mov ecx, dword [ebp - 0x8e4]
lea edx, [esi + 0x50]
lea eax, [ebp - 0x888]
add esi, 0x78
call fcn.0057a6d4
cmp edi, 0x10
jne 0x58fc23
mov edx, dword [ebp - 0x8dc]
lea eax, [ebp - 0x860]
call fcn.0058fa7c
mov edx, dword [ebp - 0x8dc]
lea ecx, [ebp - 0x860]
lea eax, [ebp - 0x7c0]
call fcn.0058f948
mov eax, dword [ebp - 0x8dc]
lea edx, [ebp - 0x7c0]
call fcn.0058fa28
mov edx, dword [ebp - 0x8dc]
lea ecx, [ebp - 0x8d8]
lea eax, [ebp - 0x7c0]
call fcn.0058403c
mov eax, dword [ebp - 0x8dc]
lea edx, [ebp - 0x7c0]
call fcn.0058fa28
dec dword [ebp - 0x8e0]
cmp dword [ebp - 0x8e0], 0xffffffff
jne 0x58fba1
add esp, 0x8dc
pop ebx
pop esi
pop edi
pop ebp
ret