joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485f90
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x826afe
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x93cf44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x13c], ebx
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 7
mov word [ebx + 0xc], ax
mov dword [ebp - 4], eax
push 0x80000001
mov byte [ebx + 0x24], al
mov dword [ebx + 0x2c], eax
call fcn.00485940
cmp byte [0x181dbf0], 0
mov dword [ebx + 0x28], 0xf003f
mov byte [ebx + 8], 1
jne 0x486189
mov eax, dword fs:[0x30]
mov dword [ebp - 0x124], 0x114
mov byte [0x181dbf0], 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor edi, edi
mov esi, dword [eax + 0x30]
and edx, 0xfffffffe
mov dword [ebp - 0x128], eax
mov ebx, 0x811c9dc5
lea ecx, [edx + esi]
inc edx
shr edx, 1
cmp esi, ecx
cmova edx, edi
mov dword [ebp - 0x12c], edx
test edx, edx
je 0x486090
mov eax, edx
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x486072
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x486062
mov eax, dword [ebp - 0x128]
cmp ebx, 0xa3e6f6c3
je 0x486094
mov eax, dword [eax]
jmp 0x486034
mov esi, dword [eax + 0x18]
mov eax, dword [0x181e114]
mov dword [ebp - 0x128], esi
test eax, eax
jne 0x486178
test esi, esi
je 0x486171
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x130], ecx
cmp ecx, esi
je 0x486171
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x486171
mov edi, dword [ecx + 0x20]
add edi, esi
nop dword [eax + eax]
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x48612a
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x48610d
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x486100
cmp esi, 0x7cebab29
je 0x48613a
mov eax, dword [ebp - 0x12c]
inc ebx
add edi, 4
cmp ebx, eax
je 0x486171
mov esi, dword [ebp - 0x128]
jmp 0x4860f0
mov esi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov eax, dword [esi + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x124]
add eax, edx
push ecx
mov dword [0x181e114], eax
call eax
mov eax, dword [ebp - 0x138]
jmp 0x48618b
xor eax, eax
mov dword [0x181e114], eax
lea ecx, [ebp - 0x124]
push ecx
call eax
mov eax, dword [ebp - 0x138]
jmp 0x48618b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c3e3a
mov esp, ebp
pop ebp
ret
Function at 0x4861b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push ebx
push esi
movq qword [eax], xmm0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x1c], ecx
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx ebx, word [eax + 0x2c]
xor esi, esi
mov ecx, dword [eax + 0x30]
xor edi, edi
shr ebx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x811c9dc5
lea edx, [ecx + ebx*2]
cmp ecx, edx
cmova ebx, esi
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x486233
mov eax, ebx
mov bl, byte [ecx]
lea ecx, [ecx + 2]
movsx esi, bl
sub bl, 0x41
mov edx, esi
or edx, 0x20
cmp bl, 0x19
cmova edx, esi
inc edi
xor edx, dword [ebp - 4]
imul edx, edx, 0x1000193
mov dword [ebp - 4], edx
cmp edi, eax
jne 0x486201
mov eax, dword [ebp - 8]
cmp edx, 0x39794115
je 0x486237
mov eax, dword [eax]
jmp 0x4861d9
mov ecx, dword [0x181e110]
mov ebx, dword [eax + 0x18]
mov dword [ebp - 8], ebx
test ecx, ecx
jne 0x4862fb
test ebx, ebx
je 0x4862f3
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x10], edx
cmp edx, ebx
je 0x4862f3
mov ecx, dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4862f3
mov edi, dword [edx + 0x20]
add edi, ebx
mov edx, dword [edi]
mov esi, 0x811c9dc5
add edx, ebx
mov bl, byte [edx]
inc edx
test bl, bl
je 0x4862c3
movsx ecx, bl
lea edx, [edx + 1]
sub bl, 0x41
mov eax, ecx
or eax, 0x20
cmp bl, 0x19
mov bl, byte [edx - 1]
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
test bl, bl
jne 0x486292
cmp esi, 0xef3e6846
je 0x4862d3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add edi, 4
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x4862f3
mov ebx, dword [ebp - 8]
jmp 0x486282
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
jmp 0x4862f5
xor ecx, ecx
mov dword [0x181e110], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x900eb8
push dword [esi]
call ecx
pop edi
mov dword [esi + 0x2c], eax
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x604bf9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x604c27
cmp eax, edi
jge 0x604c1b
push esi
call fcn.0060026b
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x604c4a
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x604c30
mov dword [esi + 8], edx
jmp 0x604c5f
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x604c55
xor dl, dl
jmp 0x604c5a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x604c4a
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x604c97
push str.zlib_corrupt
call fcn.00600190
pop ecx
jmp 0x604cd7
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x604ca7
push str.read_past_buffer
jmp 0x604c8f
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x604cc1
push edi
push ecx
push esi
call fcn.00607eca
add esp, 0xc
test eax, eax
je 0x604cd7
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.006cfac0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x62cf6d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x1817a9b], 0
jne 0x62d01c
push esi
push 0x876bb8
call fcn.0063747f
mov dword [esp], 0x876a34
call fcn.0063747f
mov dword [esp], 0x876cb0
call fcn.0063747f
mov dword [esp], 0x876cd4
call fcn.0063747f
mov dword [esp], 0x876bdc
call fcn.0063747f
mov esi, 0x876a98
push esi
call fcn.00641617
push esi
call fcn.00641617
push 0x876ab8
call fcn.00641617
push 0x876ad8
call fcn.00641617
push 0x876c00
call fcn.00641617
push 0x876a58
call fcn.00641617
push 0x876a78
call fcn.00641617
push 0x876c58
call fcn.00641617
push 0x876c78
call fcn.00641617
add esp, 0x28
mov byte [0x1817a9b], 1
pop esi
jmp 0x649967
ret
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x64996f
mov dword [edx*4 + 0x181e180], ecx
inc edx
cmp edx, 0x100
jb 0x64996a
mov esi, 0x800
jmp 0x6499b7
mov ecx, dword [edx*4 + 0x181dd80]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x181e180]
mov dword [edx*4 + 0x181e180], ecx
inc edx
cmp edx, esi
jb 0x64999b
mov eax, 0x821700
mov esi, 0x821620
mov dword [0x181e17c], eax
mov dword [0x181e174], eax
mov dword [0x181e178], esi
call fcn.00661375
mov ecx, dword [0x181e174]
test eax, eax
cmove ecx, esi
mov dword [0x181e174], ecx
pop esi
ret
Function at 0x63d2a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8280cd
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x93cf44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], 0x878128
push 0x93d084
push eax
mov dword [esi + 4], 0x878140
mov dword [esi + 8], 0x878154
mov dword [esi + 0xc], 0x878168
mov dword [esi + 0x10], 0x878180
mov dword [esi + 0x14], 0x878198
mov dword [esi + 0x18], 0x8781ac
call fcn.0065a85e
push dword [esi + 0x24]
call fcn.00426510
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x63d31f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x6441e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
and dword [edi + 0x2cb0], 0
cmp dword [edi + 0x2cb8], 2
jne 0x64422f
push 1
lea ecx, [edi + 0x38]
call fcn.00644163
test eax, eax
je 0x644228
push dword [edi + 0x80]
mov ecx, edi
push dword [edi + 0x7c]
call fcn.006439d6
jmp 0x6443ed
and dword [edi + 0x2cb8], 0
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
push ebx
push 8
pop ecx
sub ecx, edx
mov dword [ebp - 0x10], edx
shr eax, cl
shr eax, 0x10
cmp dword [edi + 0x2ca0], 0x25
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x2cac]
jae 0x64426b
test eax, eax
mov ebx, 0x878560
mov ecx, 0x878550
mov eax, 0x878590
jmp 0x64427c
test eax, eax
mov ebx, 0x878580
mov ecx, 0x878570
mov eax, 0x8785cc
cmove ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov edx, 0xff
xor eax, dword [ebp - 8]
push esi
mov cl, byte [ebx]
xor esi, esi
sar edx, cl
not edx
test eax, edx
je 0x6442b6
mov edi, dword [ebp - 4]
inc esi
mov edx, 0xff
mov cl, byte [esi + ebx]
mov eax, dword [edi + esi*4]
xor eax, dword [ebp - 8]
sar edx, cl
not edx
test eax, edx
jne 0x64429c
mov edi, dword [ebp - 0xc]
movzx eax, byte [esi + ebx]
lea ebx, [edi + 0x38]
add eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebx], eax
call fcn.006440d8
cmp esi, 9
jb 0x64436c
jne 0x6442e8
push dword [edi + 0x80]
inc dword [edi + 0x2cb8]
push dword [edi + 0x7c]
jmp 0x6443e4
and dword [edi + 0x2cb8], 0
mov ecx, edi
cmp esi, 0xe
jne 0x64431b
push 0x87840c
call fcn.00643a6e
push 0xf
mov ecx, ebx
lea esi, [eax + 5]
call fcn.00644163
add eax, 0x7fff
push esi
mov dword [edi + 0x7c], eax
push eax
jmp 0x6443de
mov eax, dword [edi + 0x78]
sub eax, esi
inc eax
and eax, 3
push 0x8783d4
mov ebx, dword [edi + eax*4 + 0x68]
call fcn.00643a6e
add eax, 2
cmp eax, 0x101
jne 0x64434f
cmp esi, 0xa
jne 0x64434f
xor dword [edi + 0x2cac], 1
xor eax, eax
jmp 0x6443eb
cmp ebx, 0x100
lea ecx, [eax + 1]
cmovb ecx, eax
mov eax, dword [edi + 0x2cc8]
dec eax
cmp ebx, eax
lea esi, [ecx + 1]
cmovb esi, ecx
jmp 0x6443c8
mov ecx, dword [edi + 0x2ca0]
and dword [edi + 0x2cb8], 0
add ecx, esi
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [edi + 0x2ca0], ecx
mov ecx, edi
push 0x8784b4
call fcn.00643a6e
movzx ecx, al
mov ebx, dword [edi + ecx*4 + 0x494]
test al, al
je 0x6443c5
dec dword [edi + ebx*4 + 0x1494]
mov eax, dword [edi + ecx*4 + 0x490]
inc dword [edi + eax*4 + 0x1494]
mov dword [edi + ecx*4 + 0x494], eax
mov dword [edi + ecx*4 + 0x490], ebx
add esi, 2
mov eax, dword [edi + 0x78]
push esi
push ebx
mov dword [edi + eax*4 + 0x68], ebx
mov eax, dword [edi + 0x78]
inc eax
mov dword [edi + 0x7c], ebx
and eax, 3
mov dword [edi + 0x78], eax
mov dword [edi + 0x80], esi
mov ecx, edi
call fcn.006439d6
pop esi
pop ebx
pop edi
leave
ret
Function at 0x649ac8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
or dword [edi], 0xffffffff
cmp dword [eax], 0x23170f69
jne 0x649ba3
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x649ba3
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x649b0c
mov byte [ebx], 0
jmp 0x649b1a
mov edx, 0x2791
cmp cx, dx
jne 0x649ba3
mov ecx, dword [eax + 8]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp dword [0x1817ed8], esi
jbe 0x649ba3
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x1817ee0]
cmp eax, dword [edx + 8]
jne 0x649b79
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x649b79
xor eax, eax
cmp byte [ebx], al
je 0x649b58
cmp dword [edx + 4], eax
jmp 0x649b5a
cmp dword [edx], eax
sete al
test eax, eax
jne 0x649b76
mov cl, byte [edx + 0x18]
test ch, ch
je 0x649b6f
test cl, cl
sete al
jmp 0x649b72
movzx eax, cl
test eax, eax
je 0x649b84
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x1817ed8]
jb 0x649b36
jmp 0x649ba3
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xc]
xor eax, 1
cmp dword [edx + 0x14], 1
cmove eax, ecx
test eax, eax
je 0x649ba1
mov eax, 0x80004002
jmp 0x649ba5
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x64ba5b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 8
jb 0x64ba85
push edi
mov edi, esi
shr edi, 3
mov eax, dword [ecx + 4]
sub esi, 8
xor eax, dword [ecx]
add ecx, 8
xor edx, eax
sub edi, 1
jne 0x64ba72
pop edi
cmp esi, 4
jb 0x64ba8f
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x64baa0
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
cmp esi, 1
jbe 0x64baae
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
test esi, esi
pop esi
je 0x64bab8
movzx ecx, byte [ecx]
xor edx, ecx
mov eax, edx
pop ebp
ret

Function at 0x64d0de
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
cmp eax, 3
jae 0x64d0fd
push edi
call fcn.0064de51
jmp 0x64d155
mov ecx, dword [edi]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [edi + 0x24]
xor edx, dword [edi + eax*4 + 0x60]
mov eax, dword [edi + 4]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
push dword [edi + 0x30]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x28]
push dword [edi]
push dword [edi + 4]
push esi
push dword [ebp + 8]
call fcn.0064dfd0
add esp, 0x20
inc dword [edi + 0x14]
inc dword [edi]
inc dword [edi + 4]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x64d156
push edi
call fcn.0064dada
pop ecx
sub ebx, 1
jne 0x64d0ea
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x64db54
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x34], ecx
lea esi, [eax + 0x60]
mov word [eax + 0x1e], cx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
push 8
mov edx, ecx
pop edi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub edi, 1
jne 0x64db82
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x64db7d
pop edi
pop esi
pop ebp
ret

Function at 0x64e2af
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x64e2e5
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x64e2d8
cmp esi, ecx
jae 0x64e3c8
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x64e35e
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x878ac0]
xor ecx, eax
or ecx, edx
jmp 0x64e3ae
cmp edi, 6
jbe 0x64e3ae
cmp edx, 4
jne 0x64e3ae
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x64e2f7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x64eef7
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
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
pop ebp
ret

Function at 0x656cbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx + 4]
mov ecx, dword [edx]
add esi, 2
lea esi, [edx + esi*4]
mov dword [ebp - 8], esi
test edi, edi
je 0x656d59
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x656cf7
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x656cf4
cmp ecx, 0x10
jne 0x656ce3
mov dword [ebp + 0x10], edi
lea eax, [esi + 0x10]
mov dword [ebp - 4], eax
cmp edi, 0x10
jb 0x656d24
mov esi, edi
mov edx, ebx
shr esi, 4
mov ecx, eax
push esi
call dword [0x181e168]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 8]
push 0x10
mov dword [ebp + 0x10], edi
pop ecx
jmp 0x656d27
mov dword [ebp - 4], eax
test edi, edi
je 0x656d53
mov ecx, dword [ebp - 4]
xor eax, eax
mov edi, esi
mov edx, esi
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x181e168]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x656d47
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret

Function at 0x6572e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x93cf44]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.006d0040
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
add esp, 0xc
xor edx, edx
sub esi, eax
lea ecx, [ebp - 0x44]
add ecx, edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 0x14
jb 0x657316
lea eax, [ebp - 0xa4]
push eax
call fcn.0066ac55
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0066ac87
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0066a33d
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
call fcn.005c3e3a
leave
ret
Function at 0x658c45
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x658c63
xor eax, eax
jmp 0x658d89
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
push ebx
mov ebx, dword [ebp + 8]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x658c82
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x658c86
inc esi
cmp esi, ecx
jb 0x658c79
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x658d76
cmp ecx, 2
jbe 0x658d10
xor edx, edx
movzx ecx, byte [esi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x658d6a
movzx eax, byte [esi + 3]
mov ebx, dword [ebp + 0x10]
shl ecx, 8
add ebx, edi
or ecx, eax
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, ebx
sub eax, ebx
cmp dword [ebp + 0x18], 0
cmove ecx, eax
mov dword [ebp - 4], ecx
mov ebx, ecx
test edx, edx
je 0x658d44
and edx, 6
mov eax, ecx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x658d42
mov eax, dword [ebp + 0x10]
mov ebx, 0x100
shl ebx, cl
add eax, edi
dec ebx
xor ebx, dword [ebp - 4]
cmp dword [ebp + 0x18], 0
je 0x658d40
add ebx, eax
jmp 0x658d42
shr edx, cl
test edx, edx
je 0x658ca0
cmp edx, 4
ja 0x658d32
cmp edx, 3
je 0x658d32
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x658ca0
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x658c74
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
mov ebx, dword [ebp + 8]
pop eax
jmp 0x658d72
or edx, 8
xor eax, eax
shr edx, 1
inc eax
add edi, eax
jmp 0x658d38
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
leave
ret