joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.100a1060
push ebx
push ebp
push esi
lea eax, [ecx + 0x54]
lea esi, [ecx + 0x14]
mov ecx, dword [esi + 0x3c]
push edi
lea ebp, [esp + 0x58]
lea edi, [esp + 0x98]
xor ebx, ebx
sub ebp, eax
sub edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
sub esi, eax
mov edx, dword [eax]
mov ecx, dword [esp + 0xdc]
movzx ecx, byte [ebx + ecx]
mov dword [eax + ebp - 0x40], edx
xor edx, ecx
mov dword [edi + eax], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ebp], ecx
xor ecx, edx
mov edx, dword [ecx*4 + str._.C]
mov ecx, dword [esi + eax]
xor ecx, edx
mov dword [esi + eax], ecx
inc ebx
add eax, 4
cmp ebx, 0x10
mov dword [esp + 0x10], ecx
jl 0x10004662
xor ecx, ecx
xor edx, edx
xor eax, eax
jmp 0x100046b0
mov ecx, dword [ecx*4 + str._.C]
mov edi, dword [esp + eax*4 + 0x18]
mov esi, dword [esp + eax*4 + 0x1c]
mov ebp, dword [esp + eax*4 + 0x20]
xor edi, ecx
mov ebx, dword [esp + eax*4 + 0x24]
mov ecx, edi
mov ecx, dword [ecx*4 + str._.C]
xor esi, ecx
mov ecx, esi
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov ecx, ebp
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov ecx, ebx
mov ecx, dword [ecx*4 + str._.C]
mov dword [esp + eax*4 + 0x18], edi
mov edi, dword [esp + eax*4 + 0x28]
xor edi, ecx
mov dword [esp + eax*4 + 0x1c], esi
mov esi, dword [esp + eax*4 + 0x2c]
mov ecx, edi
mov ecx, dword [ecx*4 + str._.C]
xor esi, ecx
mov dword [esp + eax*4 + 0x20], ebp
mov ebp, dword [esp + eax*4 + 0x30]
mov ecx, esi
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov dword [esp + eax*4 + 0x24], ebx
mov ebx, dword [esp + eax*4 + 0x34]
mov ecx, ebp
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov dword [esp + eax*4 + 0x28], edi
mov dword [esp + eax*4 + 0x2c], esi
mov dword [esp + eax*4 + 0x30], ebp
mov dword [esp + eax*4 + 0x34], ebx
add eax, 8
cmp eax, 0x30
mov ecx, ebx
jl 0x100046b0
add ecx, edx
and ecx, 0xff
inc edx
cmp edx, 0x12
jl 0x100046a1
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret

Function at 0x100049a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x1000d590
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x1000d5f0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x1000f530
Capabilities:
Hash data using sha224

Disassembly:
mov eax, 0x70
call fcn.100a1060
push esi
mov esi, dword [esp + 0x80]
xor eax, eax
cmp esi, eax
jne 0x1000f54d
mov esi, 0x100ecce0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0xc1059ed8
mov dword [esp + 0x14], 0x367cd507
mov dword [esp + 0x18], 0x3070dd17
mov dword [esp + 0x1c], 0xf70e5939
mov dword [esp + 0x20], 0xffc00b31
mov dword [esp + 0x24], 0x68581511
mov dword [esp + 0x28], 0x64f98fa7
mov dword [esp + 0x2c], 0xbefa4fa4
mov dword [esp + 0x7c], 0x1c
call sym.LIBEAY32.dll_SHA256_Update
lea eax, [esp + 0x10]
push eax
push esi
call sym.LIBEAY32.dll_SHA256_Final
lea ecx, [esp + 0x18]
push 0x70
push ecx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x70
ret

Function at 0x1000f5e0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x70
call fcn.100a1060
push esi
mov esi, dword [esp + 0x80]
xor eax, eax
cmp esi, eax
jne 0x1000f5fd
mov esi, 0x100eccc0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
mov dword [esp + 0x7c], 0x20
call sym.LIBEAY32.dll_SHA256_Update
lea eax, [esp + 0x10]
push eax
push esi
call sym.LIBEAY32.dll_SHA256_Final
lea ecx, [esp + 0x18]
push 0x70
push ecx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x70
ret

Function at 0x1000f6b0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret
Function at 0x1000f750
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x10013250
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.100a1060
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
test esi, esi
push edi
je 0x1001327b
mov eax, 1
mov dword [ebx], esi
jmp 0x10013286
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x100133fe
push esi
call sym.LIBEAY32.dll_ENGINE_get_load_pubkey_function
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x100132bc
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call sym.LIBEAY32.dll_OpenSSLDie
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x100132fb
mov edx, dword [esp + 0xa4]
push edx
lea edi, [ebx + 4]
push esi
push edi
call sym.LIBEAY32.dll_EVP_DigestInit_ex
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call sym.LIBEAY32.dll_EVP_DigestUpdate
lea esi, [ebx + 0x34]
push esi
lea ecx, [ebx + 0x38]
push ecx
push edi
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
add esp, 0x24
jmp 0x1001333a
test ebp, ebp
jl 0x10013307
cmp ebp, 0x80
jle 0x1001331b
push 0x100a2e70
push 0x5c
push str..cryptohmachmac.c
call sym.LIBEAY32.dll_OpenSSLDie
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x1001335f
mov ecx, 0x80
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esi + ebx + 0x38]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
jmp 0x10013370
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x10013370
mov ebp, dword [esp + 0xa4]
push ebp
lea edi, [ebx + 0x14]
push esi
push edi
call sym.LIBEAY32.dll_EVP_DigestInit_ex
push esi
call sym.LIBEAY32.dll_ENGINE_get_load_pubkey_function
push eax
lea edx, [esp + 0x24]
push edx
push edi
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x1c
xor eax, eax
lea esp, [esp]
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x100133b0
push ebp
lea edi, [ebx + 0x24]
push esi
push edi
call sym.LIBEAY32.dll_EVP_DigestInit_ex
push esi
call sym.LIBEAY32.dll_ENGINE_get_load_pubkey_function
push eax
lea edx, [esp + 0x24]
push edx
push edi
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x1c
lea eax, [ebx + 0x14]
push eax
add ebx, 4
push ebx
call sym.LIBEAY32.dll_EVP_MD_CTX_copy_ex
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x100133e3
jmp 0x10013366

Function at 0x10013a50
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret
Function at 0x10016fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
push ebx
push ebp
push esi
lea esi, [ecx + 1]
movzx edx, byte [esi + 1]
xor ecx, ecx
mov ch, byte [esi]
shl edx, 0x10
xor ebp, ebp
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [ebx]
or eax, ecx
or eax, edx
inc esi
movzx ecx, byte [esi + 1]
xor edx, edx
inc esi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
mov dh, byte [esi + 1]
inc esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], al
or ecx, edx
xor edx, edx
mov dh, byte [esi + 2]
inc esi
mov dl, byte [esi]
shl edx, 0x10
or ecx, edx
mov edx, eax
shr edx, 8
mov byte [esp + 0x15], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x16], dl
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x17], dl
mov edx, ecx
shr edx, 8
mov byte [esp + 0x19], dl
mov edx, ecx
shr edx, 0x10
mov byte [esp + 0x1a], dl
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x30]
test edx, edx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x18], cl
je 0x10017169
mov dword [esp + 0x30], edx
mov edi, edi
test edi, edi
jne 0x100170fb
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_DES_encrypt3
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov ebx, edx
shr ebx, 8
mov byte [esp + 0x25], bl
mov ebx, edx
shr ebx, 0x10
mov eax, edx
mov byte [esp + 0x24], dl
shr edx, 0x18
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], dl
mov edx, ecx
mov ebx, edx
shr ebx, 8
mov byte [esp + 0x29], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x28], dl
shr edx, 0x18
add esp, 0x10
mov byte [esp + 0x1a], bl
mov ebx, dword [esp + 0x44]
mov byte [esp + 0x1b], dl
inc ebp
mov dl, byte [esp + edi + 0x14]
mov esi, dword [esp + 0x28]
xor dl, byte [esi]
mov esi, dword [esp + 0x2c]
mov byte [esi], dl
mov edx, dword [esp + 0x28]
inc esi
inc edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
inc edi
and edi, 7
dec edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
jne 0x10017090
test ebp, ebp
je 0x10017169
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
shr eax, 0x18
mov byte [esi + 1], al
inc esi
inc esi
mov byte [esi], cl
mov eax, ecx
inc esi
shr eax, 8
mov byte [esi], al
mov edx, ecx
inc esi
shr edx, 0x10
shr ecx, 0x18
mov byte [esi], dl
mov byte [esi + 1], cl
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10017670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov eax, dword [esp + 0x2c]
push ebx
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
lea ebp, [edi + 1]
mov eax, ebp
mov dh, byte [eax]
xor ebx, ebx
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
mov bh, byte [eax + 1]
inc eax
mov byte [esp + 0x14], cl
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x16], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x17], cl
mov ecx, edx
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov byte [esp + 0x18], dl
shr ecx, 8
shr edx, 0x18
test eax, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x19], cl
mov byte [esp + 0x1b], dl
je 0x10017810
mov dword [esp + 0x38], eax
test esi, esi
jne 0x10017785
mov ecx, dword [esp + 0x34]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call sym.LIBEAY32.dll_DES_encrypt1
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x21], al
mov eax, dword [esp + 0x2c]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x22], cl
mov ecx, eax
mov byte [esp + 0x23], dl
mov edx, eax
mov byte [esp + 0x24], al
shr eax, 0x18
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x1c]
shr ecx, 8
shr edx, 0x10
add esp, 0xc
inc eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
mov dl, byte [esp + esi + 0x14]
xor dl, al
mov eax, dword [esp + 0x2c]
inc eax
mov byte [eax - 1], dl
inc ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jne 0x10017720
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10017802
mov byte [edi], bl
mov ecx, ebx
shr ecx, 8
mov eax, ebp
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1001c5c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
push esi
mov esi, dword [esp + 8]
mov byte [esi], 0
jle 0x1001c5d8
mov eax, 0x80
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x1001c5e8
cmp ecx, 0x400
jle 0x1001c5ed
mov ecx, 0x400
test eax, eax
push ebx
push edi
jle 0x1001c60a
mov edi, dword [esp + 0x18]
push ebp
mov edx, esi
sub edi, esi
mov ebp, eax
mov edi, edi
mov bl, byte [edi + edx]
mov byte [edx], bl
inc edx
dec ebp
jne 0x1001c600
pop ebp
cmp eax, 0x80
movzx edx, byte [esi + eax - 1]
jge 0x1001c63f
mov edi, esi
sub edi, eax
lea ebx, [ebx]
xor ebx, ebx
mov bl, byte [edi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x100df680]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x80
jl 0x1001c620
lea edx, [ecx + 7]
neg ecx
sar edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea edi, [eax + esi]
mov ebx, 0xff
sar ebx, cl
movzx ecx, byte [edi]
and ebx, ecx
test eax, eax
movzx ecx, byte [ebx + 0x100df680]
mov byte [edi], cl
je 0x1001c684
lea ecx, [ecx]
movzx ebx, byte [edi + edx - 1]
dec edi
xor ebx, ecx
dec eax
movzx ecx, byte [ebx + 0x100df680]
mov byte [edi], cl
jne 0x1001c670
pop edi
lea ecx, [esi + 0xfc]
lea eax, [esi + 0x7e]
mov esi, 0x40
pop ebx
xor edx, edx
mov dh, byte [eax + 1]
sub ecx, 4
sub eax, 2
mov dl, byte [eax + 2]
and edx, 0xffff
dec esi
mov dword [ecx + 4], edx
jne 0x1001c694
pop esi
ret
Function at 0x1001d160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov eax, dword [esp + 0x2c]
push ebx
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
lea ebp, [edi + 1]
mov eax, ebp
mov dh, byte [eax]
xor ebx, ebx
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
mov bh, byte [eax + 1]
inc eax
mov byte [esp + 0x14], cl
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x16], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x17], cl
mov ecx, edx
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov byte [esp + 0x18], dl
shr ecx, 8
shr edx, 0x18
test eax, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x19], cl
mov byte [esp + 0x1b], dl
je 0x1001d2fe
mov dword [esp + 0x38], eax
test esi, esi
jne 0x1001d273
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call sym.LIBEAY32.dll_RC2_encrypt
mov ebx, dword [esp + 0x24]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x28]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x1e], cl
mov ecx, eax
mov byte [esp + 0x1f], dl
mov edx, eax
mov byte [esp + 0x20], al
shr eax, 0x18
mov byte [esp + 0x23], al
mov eax, dword [esp + 0x18]
shr ecx, 8
shr edx, 0x10
add esp, 8
inc eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
mov dl, byte [esp + esi + 0x14]
xor dl, al
mov eax, dword [esp + 0x2c]
inc eax
mov byte [eax - 1], dl
inc ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jne 0x1001d210
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001d2f0
mov byte [edi], bl
mov ecx, ebx
shr ecx, 8
mov eax, ebp
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1001eb50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
shl ecx, 0x18
lea ebp, [edi + 1]
mov eax, ebp
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax]
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
inc eax
shl ebx, 0x10
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x17], cl
mov bl, byte [eax + 1]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x1b], dl
je 0x1001ecf1
mov dword [esp + 0x38], eax
test esi, esi
jne 0x1001ec68
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call sym.LIBEAY32.dll_idea_encrypt
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x1e], al
mov byte [esp + 0x1d], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x20], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x18]
add esp, 8
inc eax
mov byte [esp + 0x17], cl
mov byte [esp + 0x1b], dl
mov dword [esp + 0x10], eax
mov bl, byte [esp + esi + 0x14]
mov eax, dword [esp + 0x28]
xor bl, byte [eax]
mov eax, dword [esp + 0x2c]
mov byte [eax], bl
inc eax
mov dword [esp + 0x2c], eax
inc dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x38], eax
jne 0x1001ec03
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001ece3
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov ebx, ecx
shr ebx, 0x10
mov eax, ebp
mov byte [eax], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
inc eax
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret