joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029e16
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x10054e34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
cmp word [esi], cx
je 0x10029efb
lea eax, [ebp - 0x59c]
push eax
push 0x20019
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10029efb
push ebx
xor ecx, ecx
lea eax, [ebp - 0x5a4]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x598]
mov ebx, ecx
push eax
lea eax, [ebp - 0x194]
push eax
push ecx
jmp 0x10029ec3
lea eax, [ebp - 0x194]
push eax
push esi
push str._s_s
lea eax, [ebp - 0x594]
push 0x200
push eax
call fcn.10003e47
add esp, 0x14
lea eax, [ebp - 0x594]
push eax
push edi
call fcn.10029e16
lea eax, [ebp - 0x5a4]
inc ebx
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x598]
push eax
lea eax, [ebp - 0x194]
push eax
push ebx
push dword [ebp - 0x59c]
mov dword [ebp - 0x598], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10029e79
push dword [ebp - 0x59c]
call fcn.10028d28
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
test eax, eax
jne 0x10029efb
inc dword [0x10061e88]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002f614
mov esp, ebp
pop ebp
ret 8

Function at 0x1002a0b9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10054e34]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10054ba8], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x1002a114
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x10061eb8], ax
xor eax, eax
mov word [0x10061eba], ax
mov dword [0x10054ba8], 0x10061eb8
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002658c
push edi
push esi
xor eax, eax
push 0x10054b98
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1002f614
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002ab17
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1002f740
mov eax, dword [0x10054e34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0x10048420
push esi
push str.TempFolder
push str.Paths
call fcn.10028040
xor eax, eax
mov ebx, 0x800
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1004]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movzx ecx, word [esi]
test cx, cx
je 0x1002ab90
test eax, eax
je 0x1002ab88
cmp eax, ebx
jae 0x1002ab88
push edi
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.100261b9
movzx ecx, word [esi]
test cx, cx
jne 0x1002ab9b
cmp byte [ebp + 0x10], 0
je 0x1002aba7
test cx, cx
je 0x1002abc5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002abc5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1002abb9
cmp word [esi], 0
jne 0x1002abc5
push edi
push str._rartemp
push esi
call fcn.100261b9
push edi
push esi
call fcn.10021827
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f614
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002c5ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [edi + 0x2c]
cmp ebx, 0x64
jae 0x1002c615
cmp dword [edi + 0x18], 0x200
jae 0x1002c615
xor al, al
jmp 0x1002c6c0
push esi
push dword [ebp + 0x10]
push eax
push str.Rar_LS
call fcn.1002a73f
mov esi, eax
test esi, esi
jne 0x1002c631
xor al, al
jmp 0x1002c6bf
push esi
push 0xff
call fcn.10038855
push esi
push 0xfe
call fcn.10038855
lea eax, [edi + 0x14]
add esp, 0x10
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.10026a9d
xor eax, eax
mov dword [ebp + 0x10], eax
mov edi, eax
cmp byte [ebp + 0xc], 0
lea eax, [ebx - 1]
jne 0x1002c669
mov eax, ebx
cmp edi, eax
jge 0x1002c6b6
mov ecx, dword [ebp + 8]
call fcn.10026a30
mov edx, eax
test edx, edx
je 0x1002c6b3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0x10]
jne 0x1002c683
sub ecx, dword [ebp - 4]
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
push 1
push edx
call fcn.10038e0d
push esi
push 4
push 1
push 0x100497d0
call fcn.10038e0d
add esp, 0x20
inc edi
jmp 0x1002c65e
push esi
call fcn.100387ac
pop ecx
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003df66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003dde5
Function at 0x4040e8
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edi
mov edi, dword [ebx]
mov dword [ebp - 4], 0xc6ef3720
mov dword [ebp - 0x1c], 0x9e3779b9
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x20
mov ecx, dword [ebp - 4]
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0xc]
add ecx, edi
mov dword [ebp + 8], eax
mov eax, edi
shr eax, 5
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 0xc], eax
push ecx
lea eax, [ebp + 8]
push eax
mov dword [0x580b8c], 0xffcf03fc
call fcn.00403a3f
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 8]
and dword [0x580b8c], 0
sub esi, eax
mov dword [ebp + 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
or dword [0x580b94], 0xffffffff
mov eax, esi
shr eax, 5
add eax, dword [ebp - 0x18]
add ecx, esi
xor ecx, eax
xor dword [ebp + 8], ecx
sub edi, dword [ebp + 8]
mov dword [0x580b90], 0xff6b3619
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 4], eax
dec dword [ebp - 8]
jne 0x404128
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
pop ebx
leave
ret 8

Function at 0x4041e6
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf5c
cmp dword [0x5810a4], 0x37
jne 0x404298
push esi
push 0x401200
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0x35c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push esi
push esi
push esi
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
push esi
lea eax, [ebp - 0xf5c]
push eax
push 0x401210
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x75c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 4]
push eax
push esi
push 0x401260
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x5814b8]
mov cl, byte [ecx + eax + 0x38d6]
mov edx, dword [0x580b88]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x40a4ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440cf8]
jne 0x40a4d8
repz ret
jmp fcn.0040ed74

Function at 0x40c21c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440cf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406c50
and dword [ebp - 0x14], 0
cmp dword [0x581f00], 0
mov dword [ebp - 0x18], eax
jne 0x40c2cf
push 0x403018
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c377
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40300c
push ebx
call edi
test eax, eax
je 0x40c377
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ffc
push ebx
mov dword [0x581f00], eax
call edi
push eax
call esi
push 0x402fe8
push ebx
mov dword [0x581f04], eax
call edi
push eax
call esi
push 0x402fcc
push ebx
mov dword [0x581f08], eax
call edi
push eax
call esi
mov dword [0x581f10], eax
test eax, eax
je 0x40c2cf
push 0x402fb4
push ebx
call edi
push eax
call esi
mov dword [0x581f0c], eax
mov eax, dword [0x581f0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c328
cmp dword [0x581f10], ecx
je 0x40c328
push eax
call esi
push dword [0x581f10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c328
test ebx, ebx
je 0x40c328
call edi
test eax, eax
je 0x40c31f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c31f
test byte [ebp - 8], 1
jne 0x40c328
or dword [ebp + 0x10], 0x200000
jmp 0x40c35b
mov eax, dword [0x581f04]
cmp eax, dword [ebp - 0x18]
je 0x40c35b
push eax
call esi
test eax, eax
je 0x40c35b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c35b
mov eax, dword [0x581f08]
cmp eax, dword [ebp - 0x18]
je 0x40c35b
push eax
call esi
test eax, eax
je 0x40c35b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x581f00]
call esi
test eax, eax
je 0x40c377
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c379
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4ce
leave
ret
Function at 0x1002a8e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005af75
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1008d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov edi, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
cmp dword [edx + 0x14], 7
mov eax, dword [edx + 0x10]
jbe 0x1002a91e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x1002a944
mov edx, eax
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1002a930
mov edx, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.1002ae90
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002a961
mov dword [ebx], eax
mov byte [ebx + 4], 0
jmp 0x1002aacd
cmp dword [0x10090640], 0x71c71c7
jne 0x1002a978
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x24], 0x1009063c
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x20], 0
call fcn.100574fc
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x1c]
lea ecx, [edi + 8]
call fcn.10006b50
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 1
mov edx, dword [0x10090640]
lea eax, [edx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10084760]
mov eax, dword [0x10090654]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10084760]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x10090638]
comiss xmm1, xmm0
jbe 0x1002aa7c
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10057de0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [0x10090654]
cmp eax, ecx
jae 0x1002aa58
cmp eax, 0x200
jae 0x1002aa56
shl eax, 3
cmp eax, ecx
jae 0x1002aa58
mov eax, ecx
push eax
call fcn.1002ac10
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1002ae90
mov edx, dword [0x10090640]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
jmp 0x1002aa7f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
inc edx
mov dword [0x10090640], edx
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ecx + 4], edi
and esi, dword [0x10090650]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10090644]
mov edx, dword [eax + esi*8]
cmp edx, dword [0x1009063c]
jne 0x1002aab1
mov dword [eax + esi*8], edi
jmp 0x1002aac3
cmp edx, ecx
jne 0x1002aaba
mov dword [eax + esi*8], edi
jmp 0x1002aac7
mov ecx, dword [ebp - 0x14]
cmp dword [eax + esi*8 + 4], ecx
jne 0x1002aac7
mov dword [eax + esi*8 + 4], edi
mov dword [ebx], edi
mov byte [ebx + 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100405b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c335
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1008d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov edi, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
jbe 0x100405eb
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10040609
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x100405f7
push esi
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.10040dc0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10040626
mov dword [ebx], eax
mov byte [ebx + 4], 0
jmp 0x10040792
cmp dword [0x100906e8], 0x6666666
jne 0x1004063d
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x20], 0x100906e4
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x1c], 0
call fcn.100574fc
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.10018a20
xor ecx, ecx
mov dword [edi + 0x20], 0
mov word [edi + 0x24], cx
mov dword [ebp - 4], 1
mov edx, dword [0x100906e8]
lea eax, [edx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10084760]
mov eax, dword [0x100906fc]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10084760]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100906e0]
comiss xmm1, xmm0
jbe 0x10040741
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10057de0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [0x100906fc]
cmp eax, ecx
jae 0x10040723
cmp eax, 0x200
jae 0x10040721
shl eax, 3
cmp eax, ecx
jae 0x10040723
mov eax, ecx
push eax
call fcn.100408e0
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10040dc0
mov edx, dword [0x100906e8]
mov ecx, dword [eax]
jmp 0x10040744
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
inc edx
mov dword [0x100906e8], edx
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ecx + 4], edi
and esi, dword [0x100906f8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x100906ec]
mov edx, dword [eax + esi*8]
cmp edx, dword [0x100906e4]
jne 0x10040776
mov dword [eax + esi*8], edi
jmp 0x10040788
cmp edx, ecx
jne 0x1004077f
mov dword [eax + esi*8], edi
jmp 0x1004078c
mov ecx, dword [ebp - 0x10]
cmp dword [eax + esi*8 + 4], ecx
jne 0x1004078c
mov dword [eax + esi*8 + 4], edi
mov dword [ebx], edi
mov byte [ebx + 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40259d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00403035
mov dword [ebp - 4], eax
test eax, eax
je 0x402617
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x40260b
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x4025fb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402614
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402623
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00403035
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4026ce
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4026c8
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x40268c
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026d7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00403035
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402769
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x402762
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x402739
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a93
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 0x10], 0
xor edx, edx
and dword [ebp - 0xc], 0
mov dword [ebp - 0x40], 0x6f57f128
mov dword [ebp - 0x3c], 0xb134754b
mov dword [ebp - 0x38], 0x8891c142
mov dword [ebp - 0x34], 0x1c0760da
mov dword [ebp - 0x30], 0x4273f5b5
mov dword [ebp - 0x2c], 0x9fde7d9b
mov dword [ebp - 0x28], 0xbd647032
mov dword [ebp - 0x24], 0xbc420804
mov dword [ebp - 0x20], 0x938d2499
mov dword [ebp - 0x1c], 0xcbe7c1a
mov dword [ebp - 0x18], 0xaeb5ac4a
mov dword [ebp - 0x14], 0x7b51ddbd
mov dword [ebp - 8], 0x500e
imul eax, dword [ebp - 8], 0xe
push ebx
push 0x53
mov ebx, ecx
pop ecx
mov dword [ebp - 8], eax
or dword [ebp - 8], 0x8a5ff1de
add dword [ebp - 8], 0xffff1274
add dword [ebp - 8], 0xffff19a1
xor dword [ebp - 8], 0x2ad482ec
shr dword [ebp - 8], 0xb
mov eax, dword [ebp - 8]
div ecx
push 0x52
mov dword [ebp - 8], eax
xor edx, edx
xor dword [ebp - 8], 0x3de5
mov dword [ebp - 4], 0x958a
shl dword [ebp - 4], 1
or dword [ebp - 4], 0xcee4481e
add dword [ebp - 4], 0xb8e
shl dword [ebp - 4], 0xb
xor dword [ebp - 4], 0x2bb56006
mov dword [ebp - 4], 0x70f6
mov eax, dword [ebp - 4]
pop ecx
div ecx
push 0x3f
mov dword [ebp - 4], eax
xor edx, edx
add dword [ebp - 4], 0xffff9648
mov eax, dword [ebp - 4]
pop ecx
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0xe1ec7463
xor dword [ebp - 4], 0x75d6db8d
add dword [ebp - 4], 0xffff4db7
add dword [ebp - 4], 0xffffd5b5
add dword [ebp - 4], 0xffff09ca
xor dword [ebp - 4], 0x9028bdf8
cmp byte [ebx], 0
je 0x402c5d
push esi
push edi
mov edi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 4], 0x958a
shl dword [ebp - 4], 1
or dword [ebp - 4], 0xcee4481e
add dword [ebp - 4], 0xb8e
shl dword [ebp - 4], 0xb
xor dword [ebp - 4], 0x2bb56006
mov cl, byte [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0x70f6
mov eax, dword [ebp - 4]
shl esi, cl
push 0x52
pop ecx
div ecx
xor edx, edx
mov dword [ebp - 4], eax
add dword [ebp - 4], 0xffff9648
mov eax, dword [ebp - 4]
push 0x3f
pop ecx
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0xe1ec7463
xor dword [ebp - 4], 0x75d6db8d
add dword [ebp - 4], 0xffff4db7
add dword [ebp - 4], 0xffffd5b5
add dword [ebp - 4], 0xffff09ca
xor dword [ebp - 4], 0x9028bdf8
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
movsx eax, byte [ebx]
mov dword [ebp - 8], eax
add dword [ebp - 8], esi
shl edx, cl
add dword [ebp - 8], edx
sub dword [ebp - 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x402bba
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret