joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a62c
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
nop
pop ebp
ret
Function at 0x41fd40
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
nop
pop ebp
ret

Function at 0x421a4c
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
cmp dword [ebp + 0xc], 0
jne 0x421aba
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x6a09e667
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xbb67ae85
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xa54ff53a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x510e527f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x1f83d9ab
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0x5be0cd19
jmp 0x421b0a
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xc1059ed8
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x367cd507
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x3070dd17
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xf70e5939
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xffc00b31
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x68581511
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x64f98fa7
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0xbefa4fa4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x68], edx
nop
pop ebp
ret
Function at 0x423374
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
cmp dword [ebp + 0xc], 0
jne 0x42342f
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xf3bcc908
mov dword [eax + 0x14], 0x6a09e667
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x84caa73b
mov dword [eax + 0x1c], 0xbb67ae85
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0xfe94f82b
mov dword [eax + 0x24], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0x5f1d36f1
mov dword [eax + 0x2c], 0xa54ff53a
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0xade682d1
mov dword [eax + 0x34], 0x510e527f
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0x2b3e6c1f
mov dword [eax + 0x3c], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], 0xfb41bd6b
mov dword [eax + 0x44], 0x1f83d9ab
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0x137e2179
mov dword [eax + 0x4c], 0x5be0cd19
jmp 0x4234b7
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xc1059ed8
mov dword [eax + 0x14], 0xcbbb9d5d
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x367cd507
mov dword [eax + 0x1c], 0x629a292a
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x3070dd17
mov dword [eax + 0x24], 0x9159015a
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0xf70e5939
mov dword [eax + 0x2c], 0x152fecd8
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0xffc00b31
mov dword [eax + 0x34], 0x67332667
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0x68581511
mov dword [eax + 0x3c], 0x8eb44a87
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], 0x64f98fa7
mov dword [eax + 0x44], 0xdb0c2e0d
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0xbefa4fa4
mov dword [eax + 0x4c], 0x47b5481d
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xd0], edx
nop
pop ebp
ret
Function at 0x427f9a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x594
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x101
jbe 0x427fcc
mov eax, 0xffffd800
jmp 0x4281e1
mov dword [esp + 8], 0x208
mov dword [esp + 4], 0
lea eax, [ebp - 0x224]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
lea eax, [ebp - 0x328]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x328]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov byte [ebp + eax - 0x328], 0x5c
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov byte [ebp + eax - 0x328], 0x2a
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0x101
lea edx, [ebp - 0x224]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x328]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MultiByteToWideChar_24
sub esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4280a1
mov eax, 0xffffd800
jmp 0x4281e1
lea eax, [ebp - 0x578]
mov dword [esp + 4], eax
lea eax, [ebp - 0x224]
mov dword [esp], eax
call sym._FindFirstFileW_8
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4280cf
mov eax, 0xffffd700
jmp 0x4281e1
mov eax, 0x104
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x578]
and eax, 0x10
test eax, eax
jne 0x42819e
mov eax, dword [ebp - 0x10]
lea ebx, [eax - 1]
lea eax, [ebp - 0x578]
add eax, 0x2c
mov dword [esp], eax
call sym._lstrlenW_4
sub esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x578]
add eax, 0x2c
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._WideCharToMultiByte_32
sub esp, 0x20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x428172
mov eax, 0xffffd700
jmp 0x4281e1
lea eax, [ebp - 0x328]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_x509_crt_parse_file
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jns 0x428196
add dword [ebp - 0xc], 1
jmp 0x42819f
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], eax
jmp 0x42819f
nop
lea eax, [ebp - 0x578]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._FindNextFileW_8
sub esp, 8
test eax, eax
jne 0x4280da
call sym._GetLastError_0
cmp eax, 0x12
je 0x4281d0
mov dword [ebp - 0xc], 0xffffd700
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x429872
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x4298ff
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
xor eax, ecx
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4298f7
cmp byte [ebp - 0xd], 0x20
jne 0x4298f0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x60
jbe 0x4298d2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x7a
jbe 0x4298fa
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x40
jbe 0x4298f0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5a
jbe 0x4298fa
mov eax, 0xffffffff
jmp 0x42990c
nop
jmp 0x4298fb
nop
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jb 0x42988d
mov eax, 0
leave
ret

Function at 0x42acab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jmp 0x42ad64
mov eax, dword [ebp - 8]
add eax, 1
and eax, 0xff
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add eax, edx
and eax, 0xff
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov byte [eax], dl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov edx, dword [ebp - 0x18]
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx ebx, byte [eax]
mov eax, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx edx, al
mov eax, dword [ebp - 0x14]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jb 0x42acd8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, 0
add esp, 0x20
pop ebx
pop ebp
ret
Function at 0x42afc3
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x2c
cmp dword [ebp + 0x10], 0x1f
jbe 0x42afe3
cmp dword [ebp + 0x10], 0x1c0
ja 0x42afe3
mov eax, dword [ebp + 0x10]
and eax, 7
test eax, eax
je 0x42afed
mov eax, 0xffffffea
jmp 0x42b192
shr dword [ebp + 0x10], 3
mov dword [ebp - 8], 0
jmp 0x42b03f
mov dword [ebp - 0xc], 0
jmp 0x42b032
mov eax, dword [ebp - 8]
shl eax, 8
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov edx, dword [eax*4 + 0x449e60]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ebx, ecx
shl ebx, 8
mov ecx, dword [ebp - 0xc]
add ecx, ebx
add ecx, 0x10
mov dword [eax + ecx*4 + 8], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xff
jbe 0x42b003
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jbe 0x42affa
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x42b0bb
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x42b099
mov eax, dword [ebp - 0x14]
shl eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
or eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x42b095
mov dword [ebp - 0xc], 0
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 3
jbe 0x42b065
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x449e00]
xor eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + edx*4], ecx
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0x11
jbe 0x42b055
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x42b110
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.blowfish_enc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 8]
lea ecx, [eax + 1]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4], edx
add dword [ebp - 8], 2
cmp dword [ebp - 8], 0x11
jbe 0x42b0d8
mov dword [ebp - 8], 0
jmp 0x42b187
mov dword [ebp - 0xc], 0
jmp 0x42b17a
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.blowfish_enc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ebx, ecx
shl ebx, 8
mov ecx, dword [ebp - 0xc]
add ecx, ebx
add ecx, 0x10
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [ebp - 0xc]
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
shl ecx, 8
add ecx, ebx
add ecx, 0x10
mov dword [eax + ecx*4 + 8], edx
add dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 0xff
jbe 0x42b128
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jbe 0x42b11f
mov eax, 0
add esp, 0x2c
pop ebx
pop ebp
ret
Function at 0x42b52e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42b5d5
cmp dword [ebp - 8], 0
jne 0x42b598
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_blowfish_crypt_ecb
mov dword [ebp - 4], 8
jmp 0x42b58f
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
mov eax, dword [ebp + 0x14]
add eax, edx
movzx edx, byte [eax]
add edx, 1
mov byte [eax], dl
movzx eax, byte [eax]
test al, al
jne 0x42b597
sub dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jg 0x42b571
jmp 0x42b598
nop
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
mov dword [ebp + 0x1c], edx
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
xor ecx, eax
mov eax, dword [ebp + 0x20]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 1
and eax, 7
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
mov dword [ebp + 0xc], edx
test eax, eax
jne 0x42b541
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, 0
leave
ret
Function at 0x42b623
Capabilities:
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
xor eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
movzx eax, byte [eax + 0x44aea0]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x44afa0]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x44b0a0]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp - 4]
movzx eax, al
movzx eax, byte [eax + 0x44b1a0]
movzx eax, al
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
shr eax, 0x18
movzx eax, byte [eax + 0x44afa0]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x44b0a0]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x44b1a0]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp - 8]
movzx eax, al
movzx eax, byte [eax + 0x44aea0]
movzx eax, al
or eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
rol eax, 8
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
rol eax, 0x10
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
ror eax, 8
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
ror eax, 8
xor dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor eax, dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
add eax, 4
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
add edx, 4
xor eax, dword [ebp - 4]
mov dword [edx], eax
nop
leave
ret
Function at 0x42cc71
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42cd18
cmp dword [ebp - 8], 0
jne 0x42ccdb
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_camellia_crypt_ecb
mov dword [ebp - 4], 0x10
jmp 0x42ccd2
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
mov eax, dword [ebp + 0x14]
add eax, edx
movzx edx, byte [eax]
add edx, 1
mov byte [eax], dl
movzx eax, byte [eax]
test al, al
jne 0x42ccda
sub dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jg 0x42ccb4
jmp 0x42ccdb
nop
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
mov dword [ebp + 0x1c], edx
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
xor ecx, eax
mov eax, dword [ebp + 0x20]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 1
and eax, 0xf
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
mov dword [ebp + 0xc], edx
test eax, eax
jne 0x42cc84
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, 0
leave
ret

Function at 0x42d538
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.ccm_auth_crypt
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d59e
mov eax, dword [ebp - 0x14]
jmp 0x42d5ff
mov dword [ebp - 0x10], 0
mov byte [ebp - 9], 0
jmp 0x42d5d2
movzx edx, byte [ebp - 9]
mov eax, dword [ebp + 0x28]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 9]
movzx eax, byte [ebp + eax - 0x24]
xor eax, edx
movzx eax, al
or dword [ebp - 0x10], eax
movzx eax, byte [ebp - 9]
add eax, 1
mov byte [ebp - 9], al
movzx eax, byte [ebp - 9]
cmp dword [ebp + 0x2c], eax
ja 0x42d5ab
cmp dword [ebp - 0x10], 0
je 0x42d5fa
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call sym._mbedtls_zeroize_17
mov eax, 0xfffffff1
jmp 0x42d5ff
mov eax, 0
leave
ret
Function at 0x42dfa3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
cmp dword [ebp + 8], 0
je 0x42dfb9
cmp dword [ebp + 0x10], 0
jne 0x42dfc3
mov eax, 0xffff9f00
jmp 0x42e06c
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 6], al
movzx eax, byte [ebp - 6]
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
movzx eax, byte [ebp - 6]
cmp dword [ebp + 0xc], eax
setb al
mov edx, eax
movzx eax, byte [ebp - 5]
or eax, edx
mov byte [ebp - 5], al
cmp byte [ebp - 6], 0
sete al
mov edx, eax
movzx eax, byte [ebp - 5]
or eax, edx
mov byte [ebp - 5], al
movzx eax, byte [ebp - 6]
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x42e052
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
xor al, byte [ebp - 6]
mov edx, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
setae al
movzx eax, al
mov ecx, eax
mov eax, edx
imul eax, ecx
mov edx, eax
movzx eax, byte [ebp - 5]
or eax, edx
mov byte [ebp - 5], al
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x42e020
cmp byte [ebp - 5], 0
je 0x42e067
mov eax, 0xffff9e00
jmp 0x42e06c
mov eax, 0
leave
ret

Function at 0x42e0ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
cmp dword [ebp + 8], 0
je 0x42e0d0
cmp dword [ebp + 0x10], 0
jne 0x42e0da
mov eax, 0xffff9f00
jmp 0x42e17a
mov byte [ebp - 6], 0xff
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x42e162
movzx eax, byte [ebp - 5]
mov byte [ebp - 7], al
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
test al, al
setne al
mov edx, eax
movzx eax, byte [ebp - 5]
or eax, edx
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
lea ecx, [eax - 1]
movzx eax, byte [ebp - 5]
cmp al, byte [ebp - 7]
setne al
movzx eax, al
imul eax, ecx
or edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
xor eax, 0xffffff80
mov edx, eax
movzx eax, byte [ebp - 5]
cmp al, byte [ebp - 7]
sete al
or edx, eax
movzx eax, byte [ebp - 6]
and eax, edx
mov byte [ebp - 6], al
sub dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x42e0ef
cmp byte [ebp - 6], 0
je 0x42e175
mov eax, 0xffff9e00
jmp 0x42e17a
mov eax, 0
leave
ret