joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db69c
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x46c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x468], eax
mov eax, dword [esp + 0x470]
push ebx
push ebp
push esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x488]
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x490]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x494]
cmp dword [edi + 0xa4], 1
mov dword [esp + 0x34], eax
jne 0x4db8b5
mov ebx, dword [edi + 4]
mov dword [esp + 0x2c], ebx
lea eax, [ebx - 0x10]
cmp eax, 0x3f0
ja 0x4db8b5
mov ecx, dword [edi + 0xa8]
call fcn.004c72c4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4db8b5
movzx ebp, byte [eax + 8]
lea eax, [ebp*2]
lea esi, [eax + 2]
mov dword [esp + 0x14], eax
cmp esi, ebx
ja 0x4db8b5
lea eax, [esp + 0x78]
mov ecx, edi
push eax
push dword [esp + 0x2c]
push dword [esp + 0x18]
call fcn.004daf61
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4db88b
push 0xc
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0051c010
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push edi
call fcn.004c73bc
mov edi, eax
lea ecx, [esp + 0x2c]
add esp, 0x10
test edi, edi
jne 0x4db886
mov eax, ebx
lea esi, [esp + 0x79]
sub eax, ebp
add esi, ebp
push ecx
dec eax
lea ecx, [esp + 0x7d]
push eax
push esi
mov edx, ebp
mov dword [esp + 0x1c], eax
call fcn.004db353
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4db882
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x7d]
mov ecx, esi
push ebp
push eax
call fcn.004db353
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4db882
lea ecx, [esp + 0x1c]
call fcn.004c7322
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
push edi
xor edx, edx
call fcn.004c7670
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4db88b
mov cl, byte [esp + 0x78]
xor edx, edx
test ebp, ebp
je 0x4db80d
mov al, byte [esp + edx + 0x38]
xor al, byte [esi]
or cl, al
inc esi
inc edx
cmp edx, ebp
jb 0x4db7ff
mov eax, ebx
xor ebp, ebp
sub eax, dword [esp + 0x14]
xor dl, dl
xor edi, edi
add eax, 0xfffffffe
je 0x4db83c
mov ebx, eax
or dl, byte [esi + edi]
mov al, dl
neg al
or al, dl
not al
movzx eax, al
shr eax, 7
add ebp, eax
inc edi
cmp edi, ebx
jb 0x4db820
mov ebx, dword [esp + 0x2c]
add esi, ebp
mov al, byte [esi]
xor al, 1
inc esi
or cl, al
je 0x4db84e
mov edi, 0xffffbf00
jmp 0x4db88b
sub ebx, esi
lea eax, [esp + 0x78]
add eax, ebx
cmp eax, dword [esp + 0x498]
jbe 0x4db866
mov edi, 0xffffbc00
jmp 0x4db88b
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
test eax, eax
je 0x4db87e
push eax
push esi
push dword [esp + 0x3c]
call fcn.0051c650
add esp, 0xc
xor edi, edi
jmp 0x4db88b
lea ecx, [esp + 0x1c]
call fcn.004c7322
push 0x400
lea eax, [esp + 0x7c]
push 0
push eax
mov eax, dword [fcn.0051c010]
call eax
push 0x40
lea eax, [esp + 0x48]
push 0
push eax
mov eax, dword [fcn.0051c010]
call eax
add esp, 0x18
mov eax, edi
jmp 0x4db8ba
mov eax, 0xffffbf80
mov ecx, dword [esp + 0x478]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x46c
ret
Function at 0x4dbe6f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x470
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x46c], eax
mov eax, dword [esp + 0x478]
push ebx
push ebp
mov ebp, dword [esp + 0x484]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], eax
mov esi, edx
mov edx, dword [esp + 0x494]
mov ebx, dword [edi + 4]
mov dword [esp + 0x24], ebx
lea eax, [ebx - 0x10]
cmp eax, 0x3f0
ja 0x4dc0a5
lea eax, [esp + 0x78]
push eax
call fcn.004dad40
pop ecx
test eax, eax
jne 0x4dc0aa
cmp byte [esp + ebx + 0x77], 0xbc
je 0x4dbedd
mov eax, 0xffffbf00
jmp 0x4dc0aa
test esi, esi
je 0x4dbf01
mov ecx, esi
call fcn.004c72c4
test eax, eax
je 0x4dc0a5
movzx eax, byte [eax + 8]
cmp dword [esp + 0x484], eax
jne 0x4dc0a5
mov ecx, ebp
call fcn.004c72c4
mov esi, eax
test esi, esi
je 0x4dc0a5
movzx ebp, byte [esi + 8]
lea eax, [esp + 0x30]
push 8
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0051c010
add esp, 0xc
lea ecx, [edi + 8]
call fcn.004cea88
mov dl, byte [esp + 0x78]
mov cl, 1
sub cl, bl
dec eax
shl cl, 3
add cl, al
mov dword [esp + 0x28], eax
shr dl, cl
test dl, dl
jne 0x4dc0a5
test eax, 7
lea edi, [esp + 0x78]
lea ecx, [esp + 0x79]
cmove edi, ecx
dec ebx
test eax, 7
lea eax, [ebp + 2]
cmovne ebx, dword [esp + 0x24]
cmp ebx, eax
jb 0x4dc0a5
mov eax, ebx
sub eax, ebp
push 0xc
push 0
lea ebp, [eax - 1]
lea eax, [esp + 0x20]
add ebp, edi
push eax
call fcn.0051c010
add esp, 0xc
lea ecx, [esp + 0x18]
mov edx, esi
push 0
call fcn.004c73bc
mov esi, eax
pop ecx
test esi, esi
jne 0x4dc098
lea eax, [esp + 0x18]
mov edx, ebx
push eax
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
sub edx, eax
push ebp
dec edx
call fcn.004db353
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4dc098
mov ecx, ebx
mov eax, 0xff
shl ecx, 3
sub ecx, dword [esp + 0x28]
sar eax, cl
and byte [esp + 0x78], al
lea eax, [ebp - 1]
jmp 0x4dbfea
cmp byte [edi], 0
jne 0x4dbfee
inc edi
cmp edi, eax
jb 0x4dbfe4
mov al, byte [edi]
inc edi
cmp al, 1
je 0x4dbfff
mov esi, 0xffffbf00
jmp 0x4dc098
mov ebx, ebp
sub ebx, edi
cmp dword [esp + 0x490], 0xffffffff
je 0x4dc016
cmp ebx, dword [esp + 0x490]
jne 0x4dbff5
lea ecx, [esp + 0x18]
call fcn.004c7499
mov esi, eax
test esi, esi
jne 0x4dc098
push 8
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.004c7598
mov esi, eax
pop ecx
test esi, esi
jne 0x4dc098
push dword [esp + 0x484]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
call fcn.004c7598
mov esi, eax
pop ecx
test esi, esi
jne 0x4dc098
push ebx
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.004c7598
mov esi, eax
pop ecx
test esi, esi
jne 0x4dc098
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.004c75ff
mov esi, eax
test esi, esi
jne 0x4dc098
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.0051cbd0
add esp, 0xc
mov ecx, 0xffffbc80
test eax, eax
cmovne esi, ecx
lea ecx, [esp + 0x18]
call fcn.004c7322
mov eax, esi
jmp 0x4dc0aa
mov eax, 0xffffbf80
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x470
ret
Function at 0x4ddb14
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xcc]
mov esi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
test eax, eax
jne 0x4ddb50
xor bl, bl
jmp 0x4ddb53
mov bl, byte [eax + 8]
push 4
lea eax, [esp + 0x18]
mov byte [esp + 0x17], bl
push 0
push eax
call fcn.0051c010
add esp, 0xc
mov byte [esp + 0x17], 1
mov edx, esi
mov ecx, edi
push dword [esp + 0xb8]
call fcn.004c7707
mov esi, eax
pop ecx
test esi, esi
jne 0x4ddcf0
mov ebp, dword [esp + 0xc8]
jmp 0x4ddcb9
push dword [esp + 0xc0]
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.004c781f
mov esi, eax
pop ecx
test esi, esi
jne 0x4ddcc8
cmp dword [edi], eax
je 0x4ddcc3
cmp dword [edi + 8], eax
je 0x4ddcc3
push 4
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.004c7598
mov esi, eax
pop ecx
test esi, esi
jne 0x4ddcc8
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.004c7838
mov esi, eax
test esi, esi
jne 0x4ddcc8
mov ecx, edi
call fcn.004c78c7
mov esi, eax
test esi, esi
jne 0x4ddcc8
movzx ebx, bl
lea eax, [esp + 0x28]
push ebx
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0051c650
xor eax, eax
add esp, 0xc
inc eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0xc4], eax
jbe 0x4ddc80
push ebx
lea edx, [esp + 0x6c]
mov ecx, edi
call fcn.004c781f
mov esi, eax
pop ecx
test esi, esi
jne 0x4ddcc8
lea edx, [esp + 0x68]
mov ecx, edi
call fcn.004c7838
mov esi, eax
test esi, esi
jne 0x4ddcc8
mov ecx, edi
call fcn.004c78c7
mov esi, eax
test esi, esi
jne 0x4ddcc8
xor ecx, ecx
test ebx, ebx
je 0x4ddc6e
mov al, byte [esp + ecx + 0x68]
xor byte [esp + ecx + 0x28], al
inc ecx
cmp ecx, ebx
jl 0x4ddc61
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0xc4]
jb 0x4ddc26
cmp ebp, ebx
lea eax, [esp + 0x28]
cmovb ebx, ebp
push ebx
push eax
push dword [esp + 0x24]
call fcn.0051c650
add dword [esp + 0x28], ebx
lea ecx, [esp + 0x23]
add esp, 0xc
mov eax, ecx
sub ebp, ebx
push 4
pop edx
sub edx, eax
add byte [ecx], 1
jne 0x4ddcb5
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x4ddca8
mov bl, byte [esp + 0x13]
test ebp, ebp
jne 0x4ddb94
jmp 0x4ddcc8
mov esi, 0xffffaf00
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
mov eax, dword [fcn.0051c010]
call eax
add esp, 0xc
lea eax, [esp + 0x68]
push 0x40
push 0
push eax
mov eax, dword [fcn.0051c010]
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0xa4
ret

Function at 0x4de4cb
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx], 0
xor eax, eax
and dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret
Function at 0x4e223e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x34]
lea edi, [esp + 0x14]
and dword [esp + 0x10], 0
xor eax, eax
stosd dword es:[edi], eax
mov esi, ecx
mov ebp, edx
stosd dword es:[edi], eax
lea edx, [esi + 0x10]
lea ecx, [esi + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0x10
call fcn.004c86a7
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e228d
or dword [esi + 0x78], 0x10
jmp 0x4e22b5
xor edx, edx
cmp dword [esp + 0x2c], edx
jbe 0x4e22b3
mov esi, dword [esp + 0x30]
lea edi, [esp + 0x14]
add edi, ebp
sub esi, ebx
lea ecx, [ebx + edx]
mov al, byte [esi + ecx]
xor al, byte [edi + edx]
inc edx
mov byte [ecx], al
cmp edx, dword [esp + 0x2c]
jb 0x4e22a1
xor edi, edi
push 0x10
lea eax, [esp + 0x18]
push 0
push eax
mov eax, dword [fcn.0051c010]
call eax
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x18
ret

Function at 0x4e2442
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov ecx, dword [esi + 0x78]
test cl, 0x10
jne 0x4e2525
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4e251b
test cl, 8
jne 0x4e2525
test cl, 4
jne 0x4e248e
cmp edi, dword [esi + 0x68]
ja 0x4e2525
mov al, byte [esi + 0x69]
xor byte [esi], al
mov al, byte [esi + 0x68]
xor byte [esi + 1], al
or ecx, 4
mov dword [esi + 0x78], ecx
jmp 0x4e249c
mov eax, dword [esi + 0x70]
add eax, edi
cmp eax, dword [esi + 0x68]
ja 0x4e2525
mov ebx, dword [esi + 0x70]
mov edx, edi
add ebx, 2
mov byte [esp + 0x13], 0
and ebx, 0xf
push 0x10
pop eax
sub eax, ebx
cmp eax, edi
cmovbe edx, eax
test edx, edx
je 0x4e24d6
xor eax, eax
lea ecx, [eax + ebx]
mov al, byte [eax + ebp]
xor byte [ecx + esi], al
mov al, byte [esp + 0x13]
inc al
mov byte [esp + 0x13], al
movzx eax, al
cmp eax, edx
jb 0x4e24bc
mov ecx, dword [esi + 0x70]
lea eax, [edx + ebx]
add ecx, edx
sub edi, edx
add ebp, edx
mov dword [esi + 0x70], ecx
cmp eax, 0x10
je 0x4e24ef
cmp ecx, dword [esi + 0x68]
jne 0x4e2508
lea eax, [esp + 0x14]
mov edx, esi
push eax
push esi
push 0x10
lea ecx, [esi + 0x20]
call fcn.004c86a7
add esp, 0xc
test eax, eax
jne 0x4e251f
test edi, edi
jne 0x4e249c
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x68]
jne 0x4e251b
or dword [esi + 0x78], 8
and dword [esi + 0x70], edi
xor eax, eax
jmp 0x4e2528
or dword [esi + 0x78], 0x10
jmp 0x4e2528
push 0xfffffffffffffff3
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4e2848
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
lea ebx, [esp + 8]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
push ebx
push ebp
push eax
push dword [esp + 0x44]
push edx
push dword [esp + 0x44]
xor edx, edx
push esi
push dword [esp + 0x44]
call fcn.004e27d8
add esp, 0x24
test eax, eax
jne 0x4e28ce
xor edx, edx
mov bl, dl
cmp dword [esp + 0x44], edx
jbe 0x4e28cc
mov esi, dword [esp + 0x40]
mov eax, edx
movzx ecx, byte [eax + esi]
movzx eax, byte [esp + eax + 0xc]
xor ecx, eax
or edx, ecx
inc bl
movzx eax, bl
cmp eax, dword [esp + 0x44]
jb 0x4e28a0
test edx, edx
je 0x4e28cc
mov edx, dword [esp + 0x24]
mov ecx, ebp
call fcn.004c8483
push 0xfffffffffffffff1
pop eax
jmp 0x4e28ce
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x14
ret

Function at 0x4e2cdc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp + 0x1c]
mov esi, edx
xor edx, edx
push dword [ebp + 0x18]
inc edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.004e2c91
add esp, 0x1c
test eax, eax
jne 0x4e2d73
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
xor edx, edx
xorps xmm3, xmm3
sub ecx, eax
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
add eax, edx
add edx, 4
movd xmm2, dword [ecx + eax]
movd xmm1, dword [eax]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp edx, 0x10
jb 0x4e2d15
movaps xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x4e2d71
mov ecx, dword [ebp + 0x1c]
mov edx, esi
call fcn.004c8483
push 0xffffffffffffffaa
pop eax
jmp 0x4e2d73
xor eax, eax
pop esi
leave
ret

Function at 0x4e2fb8
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, edx
mov esi, ecx
mov edx, dword [esp + 0xc]
push edi
push ecx
mov ecx, eax
call fcn.004c84b8
mov edi, eax
add esp, 4
test edi, edi
je 0x4e300d
cmp dword [edi + 0x18], 0x10
jne 0x4e300d
mov ecx, esi
call fcn.004c84ed
mov edx, edi
mov ecx, esi
call fcn.004c8536
test eax, eax
jne 0x4e3010
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
push dword [esp + 0x14]
call fcn.004c8578
pop ecx
pop ecx
test eax, eax
jne 0x4e3010
pop edi
mov ecx, esi
pop esi
jmp fcn.004e2d87
push 0xffffffffffffffec
pop eax
pop edi
pop esi
ret
Function at 0x4e31ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x20], eax
and dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x4e336d
push 0x10
lea edi, [esi + 0x168]
push 0
push edi
call fcn.0051c010
add esp, 0xc
lea eax, [esi + 0x178]
push 0x10
push 0
push eax
call fcn.0051c010
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0x188], eax
xor eax, eax
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], eax
cmp ebx, 0xc
jne 0x4e3289
push ebx
push dword [esp + 0x14]
push edi
call fcn.0051c650
add esp, 0xc
mov byte [esi + 0x177], 1
jmp 0x4e3351
push 0x10
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0051c010
add esp, 0xc
mov eax, ebx
push 8
pop ecx
mul ecx
mov ecx, edx
mov byte [esp + 0x27], dl
shr ecx, 0x18
mov ebx, eax
mov byte [esp + 0x24], cl
mov eax, edx
mov ecx, edx
mov byte [esp + 0x2b], bl
shr ecx, 0x10
mov byte [esp + 0x25], cl
mov ecx, edx
shr ecx, 8
mov byte [esp + 0x26], cl
mov ecx, ebx
shrd ecx, eax, 0x18
mov eax, edx
mov byte [esp + 0x28], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov eax, ebx
mov ebx, dword [ebp + 0xc]
shrd eax, edx, 8
mov byte [esp + 0x29], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x2a], al
push 0x10
pop eax
cmp ebx, eax
cmovb eax, ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e3315
mov edx, ecx
mov ecx, edi
mov edi, eax
mov al, byte [edx]
xor byte [ecx], al
inc edx
inc ecx
sub edi, 1
jne 0x4e3304
lea edi, [esi + 0x168]
push edi
mov edx, edi
mov ecx, esi
call fcn.004e3013
pop ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
sub ebx, dword [esp + 0x14]
jne 0x4e32ee
push 0x10
lea edx, [esp + 0x20]
mov ecx, edi
pop ebx
mov al, byte [edx]
xor byte [ecx], al
inc edx
inc ecx
sub ebx, 1
jne 0x4e333b
push edi
mov edx, edi
mov ecx, esi
call fcn.004e3013
pop ecx
lea eax, [esp + 0x18]
mov edx, edi
push eax
lea eax, [esi + 0x158]
mov ecx, esi
push eax
push 0x10
call fcn.004c86a7
add esp, 0xc
jmp 0x4e3370
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret
Function at 0x4e3382
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x150]
and ecx, 0xf
je 0x4e33f1
push 0x10
pop ebp
sub ebp, ecx
cmp ebp, edi
cmova ebp, edi
and dword [esp + 0x14], 0
test ebp, ebp
je 0x4e33c9
mov edi, dword [esp + 0x14]
lea edx, [esi + 0x178]
add edx, ecx
mov al, byte [ebx + edi]
xor byte [edx], al
inc edi
inc edx
cmp edi, ebp
jb 0x4e33ba
mov edi, dword [esp + 0x1c]
lea eax, [ecx + ebp]
cmp eax, 0x10
jne 0x4e33e0
lea edx, [esi + 0x178]
mov ecx, esi
push edx
call fcn.004e3013
pop ecx
add dword [esi + 0x150], ebp
adc dword [esi + 0x154], 0
sub edi, ebp
add ebx, ebp
xor ecx, ecx
mov eax, edi
add dword [esi + 0x150], eax
adc ecx, dword [esi + 0x154]
mov dword [esi + 0x154], ecx
cmp edi, 0x10
jb 0x4e3444
mov ebp, edi
lea edx, [esi + 0x178]
shr ebp, 4
push 0x10
mov ecx, edx
pop edx
mov al, byte [ebx]
xor byte [ecx], al
inc ebx
inc ecx
sub edx, 1
jne 0x4e341c
lea edx, [esi + 0x178]
mov ecx, esi
push edx
call fcn.004e3013
sub edi, 0x10
lea edx, [esi + 0x178]
pop ecx
sub ebp, 1
jne 0x4e3417
test edi, edi
je 0x4e3459
add esi, 0x178
mov al, byte [ebx]
xor byte [esi], al
inc ebx
inc esi
sub edi, 1
jne 0x4e344e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x4e36f3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x44]
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [eax], edi
mov ecx, dword [esi + 0x148]
mov ebx, ecx
mov eax, dword [esi + 0x14c]
mov edx, eax
mov ebp, dword [esi + 0x154]
shld edx, ebx, 3
shl ebx, 3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x150]
mov ebx, edx
shld ebp, ebx, 3
shl ebx, 3
or ecx, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebx
jne 0x4e376d
and edx, 0xf
or edx, edi
je 0x4e376d
lea edx, [esi + 0x178]
mov ecx, esi
push edx
call fcn.004e3013
pop ecx
mov ebx, dword [esp + 0x4c]
lea eax, [ebx - 4]
cmp eax, 0xc
ja 0x4e38b7
mov eax, dword [esi + 0x148]
and eax, 0xf
or eax, edi
je 0x4e3799
lea edx, [esi + 0x178]
mov ecx, esi
push edx
call fcn.004e3013
pop ecx
push ebx
lea eax, [esi + 0x158]
push eax
push dword [esp + 0x24]
call fcn.0051c650
mov eax, dword [esp + 0x20]
add esp, 0xc
or eax, dword [esp + 0x18]
jne 0x4e37c3
mov eax, dword [esp + 0x10]
or eax, ebp
je 0x4e38b3
push 0x10
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0051c010
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x24], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x26], al
mov eax, edx
shrd ecx, eax, 0x18
mov eax, edx
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], cl
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 0x10
push 0x10
mov byte [esp + 0x2d], cl
mov ecx, dword [esp + 0x14]
mov eax, ecx
shrd eax, edx, 8
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x2f], cl
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x32], al
mov eax, edx
shrd ecx, eax, 0x18
mov eax, edx
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x18]
shrd ecx, eax, 0x10
pop ebp
mov byte [esp + 0x31], cl
mov ecx, dword [esp + 0x14]
mov eax, ecx
shrd eax, edx, 8
mov byte [esp + 0x33], cl
lea edx, [esp + 0x24]
mov byte [esp + 0x32], al
lea ecx, [esi + 0x178]
mov al, byte [edx]
xor byte [ecx], al
inc edx
inc ecx
sub ebp, 1
jne 0x4e3882
lea edx, [esi + 0x178]
mov ecx, esi
push edx
call fcn.004e3013
pop ecx
test ebx, ebx
je 0x4e38b3
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + edi + 0x178]
xor byte [ecx + edi], al
inc edi
cmp edi, ebx
jb 0x4e38a4
xor eax, eax
jmp 0x4e38ba
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x2c
ret
Function at 0x4e3934
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
lea ebx, [esp + 0x10]
push edi
mov edi, dword [esp + 0x30]
mov ebp, edx
mov edx, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x48]
push ebx
push edx
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x24], edx
xor edx, edx
push esi
push dword [esp + 0x4c]
push edi
push ebp
call fcn.004e38cd
add esp, 0x24
test eax, eax
jne 0x4e39bf
xor edx, edx
mov esi, edx
test ebx, ebx
je 0x4e39bd
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x14]
sub edi, eax
lea eax, [esp + 0x14]
add eax, esi
movzx ecx, byte [eax + edi]
movzx eax, byte [eax]
xor ecx, eax
or edx, ecx
inc esi
cmp esi, ebx
jb 0x4e3993
test edx, edx
je 0x4e39bd
mov ecx, dword [esp + 0x10]
mov edx, ebp
call fcn.004c8483
push 0xffffffffffffffee
pop eax
jmp 0x4e39bf
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x1c
ret

Function at 0x4e4295
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx esi, byte [edx + 3]
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx]
shl esi, 8
or esi, eax
mov dword [edi + 0x10], esi
movzx ecx, byte [edx + 7]
shl ecx, 8
movzx eax, byte [edx + 6]
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x18]
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [edi + 0x2c], ecx
pop edi
pop esi
ret