joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f910
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov dword [ebp + 0xc], eax
test edx, edx
je 0x48f92c
test byte [edx + 0x5c], 2
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x48f931
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test ebx, ebx
jle 0x48f9f9
push edi
mov edi, dword [ebp + 8]
inc edi
mov edi, edi
movzx edx, byte [edi - 1]
cmp ebx, 3
jl 0x48f991
movzx eax, byte [edi]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + esi]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + esi]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + esi]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + esi]
mov byte [ecx + 3], dl
jmp 0x48f9d9
shl edx, 0x10
cmp ebx, 2
jne 0x48f9a1
movzx eax, byte [edi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + esi]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + esi]
mov byte [ecx + 1], al
cmp ebx, 1
jne 0x48f9c8
lea eax, [ebx + 0x3c]
jmp 0x48f9d2
shr edx, 6
and edx, 0x3f
movzx eax, byte [edx + esi]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add dword [ebp + 0xc], 4
sub ebx, 3
add ecx, 4
add edi, 3
test ebx, ebx
jg 0x48f940
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov byte [ecx], 0
pop ebx
pop ebp
ret
pop esi
mov byte [ecx], al
pop ebx
pop ebp
ret
Function at 0x494950
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.005e28b0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, 4
mov dword [ebp - 4], 1
mov dword [ebp - 8], edi
cmp esi, 0xffffffff
jne 0x49499c
push 0xd5
push str.....crypto_bio_b_sock2.c
push 0x87
push 0x8b
push 0x20
call fcn.004058f0
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x494b1e
cmp dword [ebp - 8], edi
jne 0x494b1e
mov edx, ebx
shr edx, 3
and edx, 1
push edx
mov edx, esi
call fcn.004438b0
add esp, 4
test eax, eax
je 0x494b56
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x494a2e
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push esi
call edi
test eax, eax
je 0x494a2e
push 0xe7
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.004058f0
push 0xe8
push str.....crypto_bio_b_sock2.c
push 0x89
jmp 0x494b47
test bl, 0x10
je 0x494a72
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push esi
call edi
test eax, eax
je 0x494a72
push 0xf0
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.004058f0
push 0xf1
push str.....crypto_bio_b_sock2.c
push 0x8a
jmp 0x494b47
mov edx, dword [ebp + 8]
cmp word [edx], 0x17
jne 0x494ac2
push 4
lea eax, [ebp - 4]
push eax
push 0x1b
shr ebx, 1
push 0x29
and ebx, 1
push esi
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x494ac2
push 0xff
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.004058f0
push 0x100
push str.....crypto_bio_b_sock2.c
push 0x88
jmp 0x494b47
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.004948c0
test eax, eax
je 0x494b56
cmp dword [ebp - 0xc], 2
je 0x494b13
push accept
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x494b13
push 0x10a
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 7
push 2
call fcn.004058f0
push 0x10b
push str.....crypto_bio_b_sock2.c
push 0x77
jmp 0x494b47
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0xdc
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xf
push 2
call fcn.004058f0
push 0xdd
push str.....crypto_bio_b_sock2.c
push 0x86
push 0x8b
push 0x20
call fcn.004058f0
add esp, 0x28
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x494b81
lea eax, [ebp - 0x20]
push esi
lea ecx, [ebp - 0x28]
push ecx
push eax
push edx
mov dword [ebp - 0x28], 0x1c
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x494bf0
push eax
call fcn.00494f70
add esp, 4
test eax, eax
jne 0x494bde
push 0x125
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 8
push 2
call fcn.004058f0
push 0x126
push str.....crypto_bio_b_sock2.c
push 0x64
push 0x89
push 0x20
call fcn.004058f0
add esp, 0x28
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
test edi, edi
jns 0x494c2d
push 0xc3
push str.....crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004058f0
add esp, 0x14
test edi, edi
pop edi
je 0x494c49
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
Function at 0x4a4a90
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x294
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, esp
mov dword [esp + 0x290], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x10], eax
call fcn.0047ea30
add esp, 4
push edx
mov ecx, 0x20
lea esi, [esp + 0x64]
call fcn.0047f230
add esp, 4
mov ecx, esi
lea edx, [esp + 0x1d8]
call fcn.0047ead0
mov dl, byte [esp + 0x1f7]
and byte [esp + 0x1d8], 0xf8
and dl, 0x3f
mov eax, esi
or dl, 0x40
push eax
mov byte [esp + 0x1fb], dl
call fcn.0047ea30
lea ecx, [esp + 0x1fc]
add esp, 4
push ecx
mov ecx, 0x20
call fcn.0047f230
mov ecx, dword [ebp + 0xc]
add esp, 4
push ebx
call fcn.0047f230
add esp, 4
mov ecx, esi
lea edx, [esp + 0x258]
call fcn.0047ead0
lea esi, [esp + 0x258]
call fcn.0049f080
lea edx, [esp + 0x138]
push edx
mov ecx, esi
call fcn.0049d900
lea eax, [esp + 0x14]
add esp, 4
push eax
lea ecx, [esp + 0x18c]
call fcn.0049ae90
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push edx
lea ecx, [esp + 0x140]
call fcn.00499100
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x170]
call fcn.00499100
push edi
lea ecx, [esp + 0x4c]
call fcn.00498d40
lea edx, [esp + 0x24]
add esp, 0x14
push edx
lea ecx, [esp + 0x21c]
call fcn.00498d40
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x64]
add esp, 4
shl al, 7
xor byte [edi + 0x1f], al
push ecx
call fcn.0047ea30
add esp, 4
push edi
mov ecx, 0x20
lea esi, [esp + 0x64]
call fcn.0047f230
mov edx, dword [esp + 0x10]
add esp, 4
push edx
mov ecx, 0x20
call fcn.0047f230
mov ecx, dword [ebp + 0xc]
add esp, 4
push ebx
call fcn.0047f230
add esp, 4
mov ecx, esi
lea edx, [esp + 0x218]
call fcn.0047ead0
lea esi, [esp + 0x218]
call fcn.0049f080
mov eax, esi
push eax
add edi, 0x20
push edi
lea edx, [esp + 0x260]
lea ecx, [esp + 0x1e0]
call fcn.004a0e30
lea ecx, [esp + 0x68]
push 0xd8
push ecx
call fcn.00586ce0
lea edx, [esp + 0x268]
push 0x40
push edx
call fcn.00586ce0
lea eax, [esp + 0x1f0]
push 0x40
push eax
call fcn.00586ce0
mov ecx, dword [esp + 0x2bc]
add esp, 0x20
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
Function at 0x4a4fd0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x23c
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, esp
mov dword [esp + 0x238], eax
lea eax, [esp + 0x11c]
push esi
push eax
call fcn.0047ea30
add esp, 4
push edx
mov ecx, 0x20
lea esi, [esp + 0x124]
call fcn.0047f230
add esp, 4
mov ecx, esi
lea edx, [esp + 0x1f8]
call fcn.0047ead0
mov ecx, esi
push 0xd8
push ecx
call fcn.00586ce0
mov dl, byte [esp + 0x21f]
and byte [esp + 0x200], 0xf8
and dl, 0x3f
lea eax, [esp + 0x88]
or dl, 0x40
push eax
lea ecx, [esp + 0x204]
mov byte [esp + 0x223], dl
call fcn.0049d900
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
lea ecx, [esp + 0xd4]
call fcn.0049ae90
add esp, 4
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x88]
call fcn.00499100
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0xb8]
call fcn.00499100
push edi
lea ecx, [esp + 0x6c]
call fcn.00498d40
lea eax, [esp + 0x1c]
add esp, 0x14
push eax
lea ecx, [esp + 0x34]
call fcn.00498d40
mov cl, byte [esp + 0xc]
add esp, 4
lea edx, [esp + 0x1f8]
shl cl, 7
xor byte [edi + 0x1f], cl
push 0x40
push edx
call fcn.00586ce0
mov ecx, dword [esp + 0x244]
add esp, 8
pop esi
xor ecx, esp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
Function at 0x4a5120
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x144
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 8
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x148]
and byte [esp + 0x12c], 0xf8
shr ecx, 0x18
and cl, 0x3f
or cl, 0x40
lea edx, [esp + 0x38]
mov byte [esp + 0x14b], cl
push edx
lea ecx, [esp + 0x130]
mov dword [esp + 0x10], eax
call fcn.0049d900
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
add ecx, eax
sub eax, dword [esp + 0x64]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x90]
add edx, ecx
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x94]
add esi, edx
mov dword [esp + 0xe8], esi
mov esi, dword [esp + 0x98]
add edi, esi
mov dword [esp + 0xec], edi
mov edi, dword [esp + 0x9c]
add edi, dword [esp + 0x74]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x74]
mov dword [esp + 0xf0], edi
mov edi, dword [esp + 0xa0]
add edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x88]
sub ecx, dword [esp + 0x68]
sub edx, dword [esp + 0x6c]
sub esi, dword [esp + 0x70]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x78]
mov dword [esp + 0xf4], edi
mov edi, dword [esp + 0xa4]
add edi, dword [esp + 0x7c]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0xf8], edi
mov edi, dword [esp + 0xa8]
add edi, dword [esp + 0x80]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0x80]
mov dword [esp + 0xfc], edi
mov edi, dword [esp + 0xac]
add edi, dword [esp + 0x84]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0x84]
mov dword [esp + 0x100], edi
mov edi, dword [esp + 0xb0]
add ebx, edi
add esp, 4
sub edi, dword [esp + 0x84]
mov dword [esp + 0x124], eax
mov dword [esp + 0x100], ebx
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], esi
mov dword [esp + 0x128], edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x108]
call fcn.0049ae90
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xe0]
push edx
mov ecx, edx
call fcn.00499100
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xe8]
call fcn.00498d40
add esp, 0xc
lea ecx, [esp + 0x12c]
push 0x20
push ecx
call fcn.00586ce0
mov ecx, dword [esp + 0x154]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
Function at 0x4a5870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005e28b0
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 0xc]
push esi
lea eax, [edx + 4]
sub ebx, edx
mov dword [ebp - 4], 4
mov esi, dword [eax - 4]
mov edx, dword [ecx - 0xc]
xor edx, esi
and edx, edi
xor esi, edx
mov dword [eax - 4], esi
xor dword [ecx - 0xc], edx
mov esi, dword [eax]
mov edx, dword [ebx + eax]
xor edx, esi
and edx, edi
xor esi, edx
mov dword [eax], esi
xor dword [ebx + eax], edx
mov esi, dword [eax + 4]
mov edx, dword [ecx - 4]
xor edx, esi
and edx, edi
xor esi, edx
mov dword [eax + 4], esi
xor dword [ecx - 4], edx
mov esi, dword [eax + 8]
mov edx, dword [ecx]
xor edx, esi
and edx, edi
xor esi, edx
mov dword [eax + 8], esi
xor dword [ecx], edx
add eax, 0x10
add ecx, 0x10
dec dword [ebp - 4]
jne 0x4a5891
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4afce0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x138], eax
cmp ebx, eax
je 0x4afd49
cmp ebx, dword [esi]
je 0x4afd42
cmp edi, eax
je 0x4afd2f
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jge 0x4afd45
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [esi], ebx
jmp 0x4afd52
mov ebx, dword [esi]
cmp ebx, eax
je 0x4afd2f
mov ecx, dword [ebp + 0xc]
test byte [ebx + 0xc], 2
jne 0x4afd2f
cmp edi, eax
je 0x4afe90
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x138], 1
cmp eax, 0x90
jg 0x4afd2f
cmp eax, ecx
jge 0x4afef2
mov eax, dword [esi + 4]
push edx
push ebx
push eax
call fcn.00417790
add esp, 0xc
test eax, eax
je 0x4afd2f
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 4]
push edi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4afd2f
mov edx, esi
mov esi, dword [edx + 4]
lea edi, [ebp - 0x13c]
lea ecx, [ebp - 0x9c]
call fcn.00417a80
test eax, eax
je 0x4afd2f
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x134]
cmp eax, 0x90
je 0x4afded
mov ecx, 0x90
sub ecx, eax
push ecx
lea edx, [ebp + eax - 0x9c]
push 0
push edx
call fcn.005dc9c0
add esp, 0xc
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x9c]
xor cl, 0x36
mov byte [ebp + eax - 0x12c], cl
inc eax
cmp eax, 0x90
jl 0x4afdf0
mov edi, dword [ebp - 0x140]
mov edx, dword [esi + 8]
push edi
push ebx
push edx
call fcn.00417790
add esp, 0xc
test eax, eax
je 0x4afeb6
mov eax, dword [ebx + 0x24]
mov ecx, dword [esi + 8]
test eax, eax
je 0x4afe44
push eax
lea eax, [ebp - 0x12c]
push eax
push ecx
mov ecx, dword [ecx + 0x14]
call ecx
add esp, 0xc
test eax, eax
je 0x4afeb6
xor eax, eax
mov dl, byte [ebp + eax - 0x9c]
xor dl, 0x5c
mov byte [ebp + eax - 0x12c], dl
inc eax
cmp eax, 0x90
jl 0x4afe46
mov eax, dword [esi + 0xc]
push edi
push ebx
push eax
call fcn.00417790
add esp, 0xc
test eax, eax
je 0x4afeb6
mov ebx, dword [ebx + 0x24]
mov eax, dword [esi + 0xc]
test ebx, ebx
je 0x4afe90
mov edx, dword [eax + 0x14]
push ebx
lea ecx, [ebp - 0x12c]
push ecx
push eax
call edx
add esp, 0xc
test eax, eax
je 0x4afeb6
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
call fcn.00417b90
add esp, 4
test eax, eax
je 0x4afead
mov dword [ebp - 0x130], 1
cmp dword [ebp - 0x138], 0
je 0x4afedb
lea ecx, [ebp - 0x9c]
push 0x90
push ecx
call fcn.00586ce0
lea edx, [ebp - 0x12c]
push 0x90
push edx
call fcn.00586ce0
add esp, 0x10
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x130]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
cmp ecx, 0x90
ja 0x4afd2f
push ecx
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.005e02e0
mov eax, dword [ebp + 0xc]
add esp, 0xc
jmp 0x4afdcc
Function at 0x4b7fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x2c]
push edi
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], ecx
test bl, 0x40
jne 0x4b8016
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
movzx eax, bl
and eax, 7
mov ebx, 0xf
sub ebx, eax
mov byte [esi], al
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x34], ebx
cmp eax, 0xf
jae 0x4b8044
movzx edx, byte [esi + eax]
or ecx, edx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4b8031
movzx eax, byte [esi + 0xf]
or ecx, eax
mov eax, dword [ebp + 0xc]
mov byte [esi + 0xf], 1
cmp ecx, eax
je 0x4b8068
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
mov edi, eax
shr edi, 4
test edi, edi
je 0x4b80a6
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [ebp - 0x28]
push esi
push edx
push edi
push eax
push ecx
call dword [ebp - 0x2c]
shl edi, 4
mov edx, edi
add dword [ebp - 0x28], edx
add dword [ebp - 0x24], edx
add esp, 0x18
sub dword [ebp + 0xc], edx
je 0x4b8104
shr edx, 4
mov ecx, esi
call fcn.004b7db0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b8104
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x30]
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0xc], eax
jbe 0x4b80f5
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
sub edi, ecx
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
sub ecx, edx
mov dword [ebp - 0x2c], ecx
movzx ebx, byte [ebp + eax - 0x18]
lea ecx, [ebp + eax - 0x18]
movzx edx, byte [edi + ecx]
xor edx, ebx
mov ebx, dword [ebp - 0x2c]
mov byte [ebx + ecx], dl
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x4b80d3
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call dword [ebp - 0x30]
add esp, 0xc
cmp ebx, 0x10
jae 0x4b811f
mov edx, 0x10
sub edx, ebx
push edx
lea eax, [esi + ebx]
push 0
push eax
call fcn.005dc9c0
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor dword [esi + 0x14], eax
xor dword [esi + 0x18], ecx
xor dword [esi + 0x10], edx
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
xor dword [esi + 0x1c], edx
add esp, 0xc
pop edi
mov byte [esi], al
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
Function at 0x4b96d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.005e28b0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov esi, edx
mov edx, ecx
mov dword [ebp - 4], edx
test eax, eax
je 0x4b9858
push ebx
cmp eax, 0x10
jb 0x4b974a
shr eax, 4
mov dword [ebp - 8], eax
mov ecx, edi
sub edx, esi
mov eax, esi
sub ecx, esi
mov dword [ebp - 4], 4
mov ebx, dword [edx + eax]
xor ebx, dword [eax]
add eax, 4
dec dword [ebp - 4]
mov dword [ecx + eax - 4], ebx
jne 0x4b9711
mov eax, dword [ebp + 0xc]
push eax
push edi
push edi
call dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 4], edi
sub eax, 0x10
add esp, 0xc
add esi, 0x10
add edi, 0x10
dec dword [ebp - 8]
mov dword [ebp + 8], eax
jne 0x4b9702
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x4b9841
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0xc], ecx
mov ecx, 1
sub ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, 2
sub ecx, esi
mov dword [ebp - 0x14], ecx
mov ebx, edx
sub ebx, esi
mov ecx, 3
xor eax, eax
sub ecx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
jmp 0x4b9785
mov ebx, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x4b97f7
lea ecx, [eax + esi]
mov dl, byte [ebx + ecx]
xor dl, byte [ecx]
mov ebx, dword [ebp - 0xc]
mov byte [ebx + ecx], dl
mov edx, dword [ebp - 0x10]
add edx, ecx
cmp edx, dword [ebp + 8]
jae 0x4b97e9
mov dl, byte [esi + eax + 1]
mov ebx, dword [ebp - 4]
xor dl, byte [eax + ebx + 1]
mov byte [edi + eax + 1], dl
mov edx, dword [ebp - 0x14]
add edx, ecx
cmp edx, dword [ebp + 8]
mov edx, ebx
jae 0x4b97ef
mov bl, byte [esi + eax + 2]
xor bl, byte [eax + edx + 2]
mov byte [edi + eax + 2], bl
mov ebx, dword [ebp - 0x18]
add ebx, ecx
cmp ebx, dword [ebp + 8]
jae 0x4b97f4
mov cl, byte [esi + eax + 3]
xor cl, byte [eax + edx + 3]
add eax, 4
mov byte [edi + eax - 1], cl
cmp eax, 0x10
jb 0x4b9782
jmp 0x4b9811
mov edx, dword [ebp - 4]
inc eax
jmp 0x4b97f7
add eax, 2
jmp 0x4b97f7
add eax, 3
cmp eax, 0x10
jae 0x4b9811
mov ebx, 0x10
sub edx, edi
lea ecx, [eax + edi]
sub ebx, eax
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec ebx
jne 0x4b9808
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push edi
call dword [ebp + 0x14]
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, edi
mov dword [ebp - 4], edx
cmp eax, 0x10
jbe 0x4b983e
sub eax, 0x10
add esi, 0x10
add edi, 0x10
mov dword [ebp + 8], eax
test eax, eax
jne 0x4b9752
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b9f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.005e28b0
mov eax, dword [esi + 0x160]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x168], eax
cmp ebx, 0xc
jne 0x4b9f79
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov ecx, dword [ecx + 8]
mov dword [esi + 0xc], 0x1000000
lea ebx, [eax + 1]
jmp 0x4ba04f
lea edi, [esi + 0x40]
mov ecx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
cmp ebx, 0x10
jb 0x4b9ff1
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], eax
lea esp, [esp]
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x41]
inc ecx
mov dword [ebp - 4], 4
mov edi, edi
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec dword [ebp - 4]
jne 0x4b9fb0
lea eax, [esi + 0x60]
push eax
push edi
call dword [ebp + 0xc]
add dword [ebp + 8], 0x10
add esp, 8
sub ebx, 0x10
dec dword [ebp - 8]
jne 0x4b9fa0
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp ebx, eax
je 0x4ba013
jbe 0x4ba005
mov ecx, dword [ebp + 8]
mov dl, byte [eax + ecx]
xor byte [edi + eax], dl
inc eax
cmp eax, ebx
jb 0x4b9ff7
lea eax, [esi + 0x60]
push eax
push edi
call dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [ebp - 0xc]
shld eax, ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
bswap ecx
xor dword [esi + 0x4c], ecx
lea ecx, [esi + 0x60]
push ecx
bswap eax
xor dword [esi + 0x48], eax
push edi
call dword [ebp + 0xc]
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ebx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
mov dword [esi], edx
mov edx, dword [esi + 0x4c]
add esp, 8
mov dword [esi + 4], eax
bswap ebx
mov dword [esi + 0xc], edx
xor eax, eax
mov edx, dword [esi + 0x170]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x174]
mov dword [esi + 8], ecx
push eax
lea ecx, [esi + 0x20]
push ecx
push esi
call edx
add esp, 0xc
inc ebx
bswap ebx
pop edi
mov dword [esi + 0xc], ebx
pop ebx
mov esp, ebp
pop ebp
ret