joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f5c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x78
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
jne 0x47f5ea
mov esi, 0x6d4b60
push 0x70
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005dd9b0
mov ecx, dword [ebp + 8]
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x6a09e667
mov dword [esp + 0x1c], 0xbb67ae85
mov dword [esp + 0x20], 0x3c6ef372
mov dword [esp + 0x24], 0xa54ff53a
mov dword [esp + 0x28], 0x510e527f
mov dword [esp + 0x2c], 0x9b05688c
mov dword [esp + 0x30], 0x1f83d9ab
mov dword [esp + 0x34], 0x5be0cd19
mov dword [esp + 0x84], 0x20
call fcn.0047f6a0
lea edi, [esp + 0x18]
mov ecx, esi
call fcn.0047f7b0
mov ecx, edi
push 0x70
push ecx
call fcn.00587a20
mov ecx, dword [esp + 0x94]
add esp, 0x18
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret

Function at 0x487d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, edi
cmp edi, 4
jb 0x487d66
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x487d6e
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x487d52
test esi, esi
je case.0x487e30.2
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x487db5
cmp esi, 1
jbe case.0x487e30.2
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x487db5
cmp esi, 2
jbe case.0x487e30.2
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x487db5
cmp esi, 3
jbe case.0x487e30.2
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jle case.0x487e30.2
mov ebx, dword [ebp + 0xc]
xor edx, edx
test edi, edi
jle 0x487dde
mov esi, dword [ebp + 8]
mov eax, ebx
sub esi, ebx
mov cl, byte [esi + eax]
cmp cl, byte [eax]
jne 0x487dde
inc edx
inc eax
cmp edx, edi
jl 0x487dd1
lea eax, [edi - 1]
test eax, eax
js 0x487dff
mov esi, dword [ebp + 8]
lea ecx, [eax + ebx]
sub esi, ebx
lea ecx, [ecx]
cmp byte [ecx + esi], 0
jne 0x487dff
cmp byte [ecx], 0xff
jne 0x487dff
dec ecx
dec eax
jns 0x487df0
cmp edx, eax
jl case.0x487e30.2
jle 0x487e10
pop esi
lea eax, [edx*8]
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov cl, byte [edx + eax]
mov bl, byte [edx + ebx]
mov al, bl
xor al, cl
mov byte [ebp + 0xb], cl
movzx ecx, al
dec ecx
cmp ecx, 0x7e
ja case.0x487e30.2
movzx ecx, byte [ecx + 0x487ea0]
jmp dword [ecx*4 + 0x487e80]
mov esi, 7
jmp 0x487e66
mov esi, 6
jmp 0x487e66
mov esi, 5
jmp 0x487e66
mov esi, 4
jmp 0x487e66
mov esi, 3
jmp 0x487e66
mov esi, 2
jmp 0x487e66
mov esi, 1
test byte [ebp + 0xb], al
jne case.0x487e30.2
and bl, al
cmp bl, al
jne case.0x487e30.2
lea eax, [esi + edx*8]
pop esi
pop ebx
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x494950
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.005e38a0
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.005e38a0
mov eax, dword [0x6c6e10]
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.005dcf8a
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.005dcf8a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005dcf8a
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.005e38a0
mov eax, dword [0x6c6e10]
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.00587a20
lea edx, [esp + 0x268]
push 0x40
push edx
call fcn.00587a20
lea eax, [esp + 0x1f0]
push 0x40
push eax
call fcn.00587a20
mov ecx, dword [esp + 0x2bc]
add esp, 0x20
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005dcf8a
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.005e38a0
mov eax, dword [0x6c6e10]
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.00587a20
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.00587a20
mov ecx, dword [esp + 0x244]
add esp, 8
pop esi
xor ecx, esp
call fcn.005dcf8a
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.005e38a0
mov eax, dword [0x6c6e10]
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.00587a20
mov ecx, dword [esp + 0x154]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dcf8a
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.005e38a0
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.005e38a0
mov eax, dword [0x6c6e10]
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.005dcf8a
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.005dd9b0
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.00587a20
lea edx, [ebp - 0x12c]
push 0x90
push edx
call fcn.00587a20
add esp, 0x10
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x130]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
cmp ecx, 0x90
ja 0x4afd2f
push ecx
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.005e12d0
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.005e38a0
mov eax, dword [0x6c6e10]
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.005dcf8a
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.005dd9b0
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.005dcf8a
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.005e38a0
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