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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6ba00c]
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.00553630
cmp eax, 1
jne 0x550413
push 0x401
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005e1e60
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.0054ffc0
add esp, 4
push eax
push ebx
call fcn.0053f650
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x550426
push 0xdb
push str.....crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.00528ff0
add esp, 0x14
push 0
push 0x400
push 0x6c9020
push 0x400
push dword [ebp - 0x42c]
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x6c9020
push 1
call fcn.005288d0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x24], 0
jne 0x550456
push ebx
call fcn.0054ff70
add esp, 4
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x693644
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0051bf20
add esp, 0x10
test edi, edi
je 0x550475
push 0xed
lea eax, [ebp - 0x428]
push str.....crypto_bio_b_addr.c
push eax
call fcn.00530be0
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x550491
push 0xef
lea eax, [ebp - 0x24]
push str.....crypto_bio_b_addr.c
push eax
call fcn.00530be0
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x55049a
cmp dword [edi], 0
je 0x5504a3
test esi, esi
je 0x55050d
cmp dword [esi], 0
jne 0x55050d
test edi, edi
je 0x5504c1
push 0xfe
push str.....crypto_bio_b_addr.c
push dword [edi]
call fcn.0051a6b0
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x5504df
push 0x102
push str.....crypto_bio_b_addr.c
push dword [esi]
call fcn.0051a6b0
add esp, 0xc
mov dword [esi], 0
push 0x105
push str.....crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.00528ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
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.0049ae07
mov esp, ebp
pop ebp
ret
Function at 0x552010
Capabilities:
Resolve function by parsing pe exports

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

Function at 0x552020
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 0x552980
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 0x5536b0
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 0x5536e8
push 0xc3
push 0x64e450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.00528ff0
add esp, 0x14
mov eax, esi
pop esi
pop ebp
ret

Function at 0x5565c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x5565d5
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.005337c0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x556689
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x556626
test esi, esi
jle 0x556667
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 0x556610
jmp 0x556664
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x556644
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.005e1e60
add esp, 0xc
test esi, esi
jle 0x556667
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 0x556650
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.00533d50
add esp, 0x10
test eax, eax
jne 0x556689
push esi
push ebx
call fcn.00537ea0
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 0x564460
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 0x564487
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x56448e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x564476
xor edi, edi
cmp ecx, 0xfffffffc
je 0x5644c9
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x5644c9
cmp ecx, 0xfffffffd
je 0x5644c9
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x5644c9
cmp ecx, 0xfffffffe
je 0x5644c9
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x5644c9
cmp ecx, 0xffffffff
je 0x5644c9
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x56453d.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x5644ee
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x5644ee
inc ecx
inc edx
cmp ecx, ebx
jl 0x5644e1
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x564511
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x564511
cmp byte [eax], 0xff
jne 0x564511
dec eax
sub edx, 1
jns 0x564500
cmp ecx, edx
jl case.0x56453d.2
jle 0x564523
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.0x56453d.2
movzx eax, byte [eax + 0x5645b0]
jmp dword [eax*4 + 0x564590]
mov eax, 7
jmp 0x564573
mov eax, 6
jmp 0x564573
mov eax, 5
jmp 0x564573
mov eax, 4
jmp 0x564573
mov eax, 3
jmp 0x564573
mov eax, 2
jmp 0x564573
mov eax, 1
test dl, dh
jne case.0x56453d.2
and bl, dl
cmp bl, dl
jne case.0x56453d.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 0x5654d0
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 0x56550e
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 0x5654f0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x567210
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.00526b70
mov ebx, eax
push ebx
push esi
call fcn.00526a40
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x567294
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 0x56726d
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.00526ac0
push esi
call fcn.00526c30
mov edi, eax
add esp, 0x10
test edi, edi
je 0x567294
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00526b70
mov ebx, eax
push ebx
push esi
call fcn.00526a40
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x567303
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 0x5672e9
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.00526ac0
push esi
call fcn.00526c30
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x56728b
push esi
call fcn.00526c30
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56ec90
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 0x56ecc6
push 0x52
push str.....crypto_bio_b_sock2.c
push 0x87
push 0x8a
push 0x20
call fcn.00528ff0
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.005536f0
add esp, 8
test eax, eax
jne 0x56ece6
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 0x56ed2e
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x56ed2e
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.00528ff0
push 0x5d
push str.....crypto_bio_b_sock2.c
push 0x89
jmp 0x56edb9
test bl, 0x10
je 0x56ed69
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x56ed69
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.00528ff0
push 0x66
push str.....crypto_bio_b_sock2.c
push 0x8a
jmp 0x56edb9
mov esi, dword [ebp + 0xc]
push esi
call fcn.0054ffc0
add esp, 4
push eax
push esi
call fcn.0053f650
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x56edd1
push eax
call fcn.00531800
add esp, 4
test eax, eax
jne 0x56edc8
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.00528ff0
push 0x6f
push str.....crypto_bio_b_sock2.c
push 0x67
push 0x8a
push 0x20
call fcn.00528ff0
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 0x570d30
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 0x570d4d
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x570d52
mov ebx, 0x652d98
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x570e25
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
inc edi
cmp esi, 3
jl 0x570db6
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 0x570e01
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x570dca
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 0x570dee
lea eax, [esi + 0x3c]
jmp 0x570df8
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 0x570d65
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 0x574fa0
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 0x575023
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x574fef
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
call fcn.0055e9d0
add esp, 0x10
cmp dword [ebp - 4], 0xffffffff
je 0x574fef
push 0x3b
push str.....cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.00528ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x57501f
cmp edi, 0x40a
je 0x575015
cmp edi, 0x43f
je 0x575015
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x57501a
mov eax, 0x20
cmp dword [ebp + 0x18], eax
je 0x575023
push 0x41
jmp 0x574fd1
push ebx
push 0x46
push str.....cryptoececx_meth.c
push 0x40
call fcn.0051a7b0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x57505c
push 0x48
push str.....cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.00528ff0
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x575075
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.005e0960
add esp, 0xc
jmp case.0x5751a7.1036
cmp edi, 0x40a
je 0x575095
cmp edi, 0x43f
je 0x575095
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x57509a
mov eax, 0x20
push 0x50
push str.....cryptoececx_meth.c
push eax
call fcn.00531050
mov esi, eax
add esp, 0xc
mov dword [ebx + 0x3c], esi
test esi, esi
jne 0x5750cd
push 0x52
push str.....cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.00528ff0
add esp, 0x14
jmp 0x575121
cmp dword [ebp + 0x1c], 2
jne 0x575162
cmp edi, 0x40a
je 0x5750f7
cmp edi, 0x43f
je 0x5750f7
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x5750fc
mov eax, 0x20
push eax
push esi
call fcn.005264e0
add esp, 8
test eax, eax
jg 0x57513a
push 0x57
push str.....cryptoececx_meth.c
push esi
call fcn.00531040
add esp, 0xc
mov dword [ebx + 0x3c], 0
push 0x79
push str.....cryptoececx_meth.c
push ebx
call fcn.0051a6b0
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0x40a
jne 0x575151
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
jmp 0x575195
cmp edi, 0x40b
jne 0x575195
and byte [esi], 0xfc
or byte [esi + 0x37], 0x80
jmp 0x575195
cmp edi, 0x40a
je 0x575182
cmp edi, 0x43f
je 0x575182
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x575187
mov eax, 0x20
push eax
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.005e0960
add esp, 0xc
lea eax, [edi - 0x40a]
cmp eax, 0x36
ja case.0x5751a7.1036
movzx eax, byte [eax + 0x575200]
jmp dword [eax*4 + 0x5751ec]
push esi
push ebx
call fcn.005a4b50
jmp 0x5751d0
push esi
push ebx
call fcn.005a4760
jmp 0x5751d0
push esi
push ebx
call fcn.005ac6a0
jmp 0x5751d0
push esi
push ebx
call fcn.005ae410
add esp, 8
push ebx
push edi
push dword [ebp + 8]
call fcn.00521670
add esp, 0xc
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57df40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6ba00c]
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 0x57e0c7
mov edi, dword [ebp + 8]
sub dword [ebp - 0x14], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57e05e
push 1
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.0056c640
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 0x57e006
test ecx, ecx
je 0x57e0b1
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.0049ae07
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.0049ae07
mov esp, ebp
pop ebp
ret
Function at 0x57eb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
push ebx
movzx ebx, byte [ecx]
push esi
mov esi, dword [eax]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x38], ecx
mov edx, edi
mov dword [ebp - 0x34], edi
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
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 - 0x24], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x14]
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 byte [ebp - 9], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xc], dl
test eax, eax
je 0x57ecbd
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x18], ecx
xor edi, edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57ec65
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
call fcn.0056e690
mov ebx, dword [ebp - 0x24]
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xf], al
mov eax, ebx
mov ecx, dword [ebp + 8]
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 edi
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], dl
mov byte [ebp - 9], al
mov al, byte [ebp + esi - 0x10]
inc esi
mov edx, dword [ebp - 0x18]
and esi, 7
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp + 8], ecx
test eax, eax
jne 0x57ec05
test edi, edi
mov edi, dword [ebp - 0x34]
je 0x57ecbd
mov eax, dword [ebp - 0x38]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.0049ae07
mov esp, ebp
pop ebp
ret