joyce8/EMBER2024-capa huggingface dataset:
Function at 0x550830
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x550873
sub eax, 2
je 0x550873
sub eax, 0x15
je 0x550873
push 0x297
push str.....crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.00529800
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00553e50
cmp eax, 1
jne 0x55086b
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
movups xmmword [ebp - 0x10], xmm0
test esi, esi
jne 0x5508a9
or eax, 0x400
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 1
jne 0x5508b5
or eax, 1
mov dword [ebp - 0x20], eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x550905
nop
cmp esi, 8
je 0x55094a
mov eax, dword [ebp - 0x20]
test eax, 0x400
je 0x550913
push dword [ebp + 0x20]
and eax, 0xfffffbff
mov edi, esi
or eax, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x5508d0
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2da
push str.....crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.00529800
test edi, edi
cmovne esi, edi
push esi
call fcn.00550d50
push eax
push 1
call fcn.005290e0
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2cb
push str.....crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.00529800
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x550b40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
call fcn.00553e50
cmp eax, 1
jne 0x550c33
push 0x401
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005e26d0
mov eax, dword [ebp + 0xc]
add esp, 0xc
neg eax
mov byte [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
sbb eax, eax
movq qword [ebp - 0x13], xmm0
and eax, 0xa
mov word [ebp - 7], 0
push eax
push 0x20
lea eax, [ebp - 0x24]
mov byte [ebp - 5], 0
push eax
push 0x401
lea eax, [ebp - 0x428]
push eax
push ebx
movups xmmword [ebp - 0x23], xmm0
call fcn.005507e0
add esp, 4
push eax
push ebx
call fcn.004b12c0
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x550c46
push 0xdb
push str.....crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.00529800
add esp, 0x14
push 0
push 0x400
push 0x6cb040
push 0x400
push dword [ebp - 0x42c]
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x6cb040
push 1
call fcn.005290e0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x24], 0
jne 0x550c76
push ebx
call fcn.00550790
add esp, 4
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x694640
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0051c700
add esp, 0x10
test edi, edi
je 0x550c95
push 0xed
lea eax, [ebp - 0x428]
push str.....crypto_bio_b_addr.c
push eax
call fcn.00531450
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x550cb1
push 0xef
lea eax, [ebp - 0x24]
push str.....crypto_bio_b_addr.c
push eax
call fcn.00531450
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x550cba
cmp dword [edi], 0
je 0x550cc3
test esi, esi
je 0x550d2d
cmp dword [esi], 0
jne 0x550d2d
test edi, edi
je 0x550ce1
push 0xfe
push str.....crypto_bio_b_addr.c
push dword [edi]
call fcn.0051aea0
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x550cff
push 0x102
push str.....crypto_bio_b_addr.c
push dword [esi]
call fcn.0051aea0
add esp, 0xc
mov dword [esi], 0
push 0x105
push str.....crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.00529800
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b637
mov esp, ebp
pop ebp
ret
Function at 0x552830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00552980

Function at 0x552840
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x5531a0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x553ed0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x553f08
push 0xc3
push 0x64f450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.00529800
add esp, 0x14
mov eax, esi
pop esi
pop ebp
ret

Function at 0x556de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x556df5
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.00534060
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x556ea9
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x556e46
test esi, esi
jle 0x556e87
mov edx, ebx
lea ecx, [edi + 4]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x556e30
jmp 0x556e84
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x556e64
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.005e26d0
add esp, 0xc
test esi, esi
jle 0x556e87
mov edx, ebx
lea ecx, [edi + 0x24]
mov ebx, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x556e70
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.005345f0
add esp, 0x10
test eax, eax
jne 0x556ea9
push esi
push ebx
call fcn.00538750
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
Function at 0x564cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
sub ecx, 4
jb 0x564cd7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x564cde
add edx, 4
add esi, 4
sub ecx, 4
jae 0x564cc6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x564d19
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x564d19
cmp ecx, 0xfffffffd
je 0x564d19
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x564d19
cmp ecx, 0xfffffffe
je 0x564d19
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x564d19
cmp ecx, 0xffffffff
je 0x564d19
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x564d8d.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x564d3e
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x564d3e
inc ecx
inc edx
cmp ecx, ebx
jl 0x564d31
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x564d61
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x564d61
cmp byte [eax], 0xff
jne 0x564d61
dec eax
sub edx, 1
jns 0x564d50
cmp ecx, edx
jl case.0x564d8d.2
jle 0x564d73
pop edi
pop esi
lea eax, [ecx*8]
pop ebx
pop ebp
ret
mov dh, byte [ecx + ebx]
mov bl, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x564d8d.2
movzx eax, byte [eax + 0x564e00]
jmp dword [eax*4 + 0x564de0]
mov eax, 7
jmp 0x564dc3
mov eax, 6
jmp 0x564dc3
mov eax, 5
jmp 0x564dc3
mov eax, 4
jmp 0x564dc3
mov eax, 3
jmp 0x564dc3
mov eax, 2
jmp 0x564dc3
mov eax, 1
test dl, dh
jne case.0x564d8d.2
and bl, dl
cmp bl, dl
jne case.0x564d8d.2
pop edi
pop esi
lea eax, [eax + ecx*8]
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x565d20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx eax, cl
add edi, esi
and eax, 1
test esi, esi
je 0x565d5e
movzx edx, byte [ebx - 1]
lea ebx, [ebx - 1]
movzx ecx, cl
lea edi, [edi - 1]
xor edx, ecx
mov cl, byte [ebp + 0x14]
add eax, edx
mov byte [edi], al
shr eax, 8
sub esi, 1
jne 0x565d40
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x567a70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
xor edi, edi
call fcn.00527380
mov ebx, eax
push ebx
push esi
call fcn.00527250
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x567af4
push 0xf0000040
push 1
push edi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x567acd
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.005272d0
push esi
call fcn.00527440
mov edi, eax
add esp, 0x10
test edi, edi
je 0x567af4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00527380
mov ebx, eax
push ebx
push esi
call fcn.00527250
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x567b63
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x567b49
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.005272d0
push esi
call fcn.00527440
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x567aeb
push esi
call fcn.00527440
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56f4f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x56f526
push 0x52
push str.....crypto_bio_b_sock2.c
push 0x87
push 0x8a
push 0x20
call fcn.00529800
add esp, 0x14
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
push edi
call fcn.00553f10
add esp, 8
test eax, eax
jne 0x56f546
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x56f58e
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x56f58e
push 0x5c
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.00529800
push 0x5d
push str.....crypto_bio_b_sock2.c
push 0x89
jmp 0x56f619
test bl, 0x10
je 0x56f5c9
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x56f5c9
push 0x65
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.00529800
push 0x66
push str.....crypto_bio_b_sock2.c
push 0x8a
jmp 0x56f619
mov esi, dword [ebp + 0xc]
push esi
call fcn.005507e0
add esp, 4
push eax
push esi
call fcn.004b12c0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x56f631
push eax
call fcn.005320b0
add esp, 4
test eax, eax
jne 0x56f628
push 0x6e
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
push 2
call fcn.00529800
push 0x6f
push str.....crypto_bio_b_sock2.c
push 0x67
push 0x8a
push 0x20
call fcn.00529800
add esp, 0x28
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x571580
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
push esi
test eax, eax
je 0x57159d
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x5715a2
mov ebx, 0x653d98
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x571675
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
inc edi
cmp esi, 3
jl 0x571606
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + ebx]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + ebx]
mov byte [edx], al
jmp 0x571651
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x57161a
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x57163e
lea eax, [esi + 0x3c]
jmp 0x571648
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
mov ecx, dword [ebp - 4]
sub esi, 3
add ecx, 4
add edi, 3
inc edx
mov dword [ebp - 4], ecx
test esi, esi
jg 0x5715b5
pop edi
pop esi
mov byte [edx], 0
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov byte [eax], cl
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x575810
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 2
je 0x575893
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x57585f
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
call fcn.0055f200
add esp, 0x10
cmp dword [ebp - 4], 0xffffffff
je 0x57585f
push 0x3b
push str.....cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.00529800
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x57588f
cmp edi, 0x40a
je 0x575885
cmp edi, 0x43f
je 0x575885
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x57588a
mov eax, 0x20
cmp dword [ebp + 0x18], eax
je 0x575893
push 0x41
jmp 0x575841
push ebx
push 0x46
push str.....cryptoececx_meth.c
push 0x40
call fcn.0051afa0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5758cc
push 0x48
push str.....cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.00529800
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x5758e5
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.005e11d0
add esp, 0xc
jmp case.0x575a17.1036
cmp edi, 0x40a
je 0x575905
cmp edi, 0x43f
je 0x575905
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x57590a
mov eax, 0x20
push 0x50
push str.....cryptoececx_meth.c
push eax
call fcn.005318c0
mov esi, eax
add esp, 0xc
mov dword [ebx + 0x3c], esi
test esi, esi
jne 0x57593d
push 0x52
push str.....cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.00529800
add esp, 0x14
jmp 0x575991
cmp dword [ebp + 0x1c], 2
jne 0x5759d2
cmp edi, 0x40a
je 0x575967
cmp edi, 0x43f
je 0x575967
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x57596c
mov eax, 0x20
push eax
push esi
call fcn.00526cf0
add esp, 8
test eax, eax
jg 0x5759aa
push 0x57
push str.....cryptoececx_meth.c
push esi
call fcn.005318b0
add esp, 0xc
mov dword [ebx + 0x3c], 0
push 0x79
push str.....cryptoececx_meth.c
push ebx
call fcn.0051aea0
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0x40a
jne 0x5759c1
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
jmp 0x575a05
cmp edi, 0x40b
jne 0x575a05
and byte [esi], 0xfc
or byte [esi + 0x37], 0x80
jmp 0x575a05
cmp edi, 0x40a
je 0x5759f2
cmp edi, 0x43f
je 0x5759f2
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x5759f7
mov eax, 0x20
push eax
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.005e11d0
add esp, 0xc
lea eax, [edi - 0x40a]
cmp eax, 0x36
ja case.0x575a17.1036
movzx eax, byte [eax + 0x575a70]
jmp dword [eax*4 + 0x575a5c]
push esi
push ebx
call fcn.005a53e0
jmp 0x575a40
push esi
push ebx
call fcn.005a4ff0
jmp 0x575a40
push esi
push ebx
call fcn.005acf30
jmp 0x575a40
push esi
push ebx
call fcn.005aebf0
add esp, 8
push ebx
push edi
push dword [ebp + 8]
call fcn.00521e90
add esp, 0xc
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57e780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x2c], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x1c]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0x10], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xe], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 9], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xc], dl
test eax, eax
je 0x57e907
mov edi, dword [ebp + 8]
sub dword [ebp - 0x14], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57e89e
push 1
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.0056cea0
mov ebx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xe], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
inc dword [ebp - 0x18]
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], dl
mov byte [ebp - 9], al
mov al, byte [ebp + esi - 0x10]
inc esi
mov ecx, dword [ebp - 0x14]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
test eax, eax
jne 0x57e846
test ecx, ecx
je 0x57e8f1
mov edi, dword [ebp - 0x2c]
mov eax, ebx
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 3], bl
shr eax, 8
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x24]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049b637
mov esp, ebp
pop ebp
ret