joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5207e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, ecx
push ebx
push esi
push edi
mov ebx, dword [eax + 0x34]
cmp ebx, 0xa
jae 0x520841
nop dword [eax]
mov esi, dword [eax]
cmp esi, 8
jae 0x52081b
mov edi, dword [eax + 8]
cmp edi, dword [eax + 0xc]
je 0x520906
movzx edx, byte [edi]
mov ecx, 0x18
sub ecx, esi
shl edx, cl
lea ecx, [edi + 1]
or dword [eax + 4], edx
add esi, 8
mov dword [eax + 8], ecx
mov edx, dword [eax + 4]
mov ecx, edx
shl ecx, 8
mov dword [eax + 4], ecx
lea ecx, [esi - 8]
shr edx, 0x18
mov dword [eax], ecx
mov byte [ebx + eax + 0x7a96], dl
mov ebx, dword [eax + 0x34]
inc ebx
mov dword [eax + 0x34], ebx
cmp ebx, 0xa
jb 0x5207f0
movzx edx, byte [eax + 0x7a9c]
movzx ecx, byte [eax + 0x7a9d]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x7a9e]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x7a9f]
shl edx, 8
or edx, ecx
mov dword [eax + 0x7aa0], edx
mov cl, byte [eax + 0x7a96]
cmp cl, 0x31
jne 0x52090c
cmp byte [eax + 0x7a97], 0x41
jne 0x5209a2
cmp byte [eax + 0x7a98], 0x59
jne 0x5209a2
cmp byte [eax + 0x7a99], 0x26
jne 0x5209a2
cmp byte [eax + 0x7a9a], 0x53
jne 0x5209a2
cmp byte [eax + 0x7a9b], 0x59
jne 0x5209a2
cmp byte [eax + 0x7aa8], 0
jne 0x5208d9
add dword [eax + 0x7ab0], 1
adc dword [eax + 0x7ab4], 0
add dword [eax + 0x7ab8], 1
mov byte [eax + 0x7aa8], 1
mov ecx, dword [eax + 0x7aa4]
adc dword [eax + 0x7abc], 0
ror ecx, 0x1f
xor ecx, edx
mov dword [eax + 0x7aa4], ecx
mov dword [eax + 0x30], 2
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp cl, 0x17
jne 0x5209a2
cmp byte [eax + 0x7a97], 0x72
jne 0x5209a2
cmp byte [eax + 0x7a98], 0x45
jne 0x5209a2
cmp byte [eax + 0x7a99], 0x38
jne 0x5209a2
cmp byte [eax + 0x7a9a], 0x50
jne 0x5209a2
cmp byte [eax + 0x7a9b], 0x90
jne 0x5209a2
cmp byte [eax + 0x7aa8], 0
jne 0x52095d
add dword [eax + 0x7ab0], 1
adc dword [eax + 0x7ab4], 0
mov esi, dword [eax + 4]
mov byte [eax + 0x7aa8], 1
test esi, esi
je 0x520972
mov byte [eax + 0x7aaa], 1
mov edx, dword [eax]
mov ecx, edx
and ecx, 7
mov dword [eax + 0x30], 0xb
sub edx, ecx
shl esi, cl
mov ecx, dword [eax + 0x7aa0]
mov dword [eax], edx
mov dword [eax + 4], esi
cmp ecx, dword [eax + 0x7aa4]
je 0x520906
mov byte [eax + 0x7aa9], 1
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x533a20
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xb0], 2
mov dword [esi + 0xac], 0
jne 0x533a5c
push 1
call fcn.00533940
test eax, eax
je 0x533a52
push dword [esi + 0x74]
mov ecx, esi
push dword [esi + 0x70]
call fcn.00532fc0
pop esi
pop ecx
ret
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x3c]
mov ecx, 8
sub ecx, dword [esi + 0x38]
shr eax, cl
mov ecx, 8
shr eax, 0x10
cmp dword [esi + 0x9c], 0x25
push ebx
push ebp
movzx ebp, al
mov ebx, 0x58d3e0
mov eax, 0x58d410
cmovae ebx, eax
mov eax, dword [esi + 0xa8]
add eax, 0x10
add eax, ebx
mov dword [esp + 0xc], eax
movzx edx, byte [ebx]
xor edx, ebp
movzx eax, byte [eax]
sub ecx, eax
push edi
shr edx, cl
xor edi, edi
test edx, edx
je 0x533acd
mov edx, dword [esp + 0x10]
sub edx, ebx
movzx eax, byte [ebx + edx + 1]
lea ebx, [ebx + 1]
mov ecx, 8
inc edi
sub ecx, eax
movzx eax, byte [ebx]
xor eax, ebp
shr eax, cl
test eax, eax
jne 0x533ab2
mov eax, dword [esp + 0x10]
movzx eax, byte [edi + eax]
add eax, dword [esi + 0x38]
mov dword [esi + 0x38], eax
cmp eax, 8
jb 0x533b12
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
jb 0x533af4
lea ecx, [esi + 0x40]
call fcn.0040ffef
mov dl, al
jmp 0x533afa
mov dl, byte [eax]
inc eax
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x3c]
add dword [esi + 0x38], 0xfffffff8
shl ecx, 8
movzx eax, dl
or ecx, eax
cmp dword [esi + 0x38], 8
mov dword [esi + 0x3c], ecx
jae 0x533ae0
cmp edi, 9
jb 0x533bc5
jne 0x533b36
push dword [esi + 0x74]
inc dword [esi + 0xb0]
mov ecx, esi
push dword [esi + 0x70]
call fcn.00532fc0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov dword [esi + 0xb0], 0
mov ecx, esi
cmp edi, 0xe
jne 0x533b77
push 0x58d450
call fcn.00533170
push 0xf
mov ecx, esi
lea edi, [eax + 5]
call fcn.00533940
add eax, 0x7fff
mov dword [esi + 0x74], edi
push edi
push eax
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.00532fc0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esi + 0x78]
mov ebp, edi
sub eax, edi
inc eax
and eax, 3
push 0x58d440
mov ebx, dword [esi + eax*4 + 0x7c]
call fcn.00533170
mov edi, eax
cmp edi, 0xff
jne 0x533bae
cmp ebp, 0xa
jne 0x533bae
xor dword [esi + 0xa8], 0x10
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
cmp ebx, 0x100
jb 0x533c21
mov eax, dword [esi + 0xbc]
inc edi
dec eax
cmp ebx, eax
jb 0x533c21
inc edi
jmp 0x533c21
mov ecx, dword [esi + 0x9c]
add ecx, edi
mov dword [esi + 0xb0], 0
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [esi + 0x9c], ecx
mov ecx, esi
push 0x58d480
call fcn.00533170
movzx ecx, al
mov ebx, dword [esi + ecx*4 + 0x4c0]
test al, al
je 0x533c21
dec dword [esi + ebx*4 + 0x14c0]
mov eax, dword [esi + ecx*4 + 0x4bc]
inc dword [esi + eax*4 + 0x14c0]
mov dword [esi + ecx*4 + 0x4c0], eax
mov dword [esi + ecx*4 + 0x4bc], ebx
mov eax, dword [esi + 0x78]
add edi, 2
push edi
push ebx
mov ecx, esi
mov dword [esi + eax*4 + 0x7c], ebx
mov eax, dword [esi + 0x78]
inc eax
mov dword [esi + 0x70], ebx
and eax, 3
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], eax
call fcn.00532fc0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x539190
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
xor dl, dl
push esi
mov esi, dword [esp + 0x10]
xor cl, cl
xor eax, eax
mov byte [ebx + 4], 0
mov dword [ebx], 0xffffffff
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x539274
cmp esi, 0x20
jb 0x539220
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm1, xmm1
nop word [eax + eax]
movups xmm0, xmmword [eax + edi]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + eax + 0x10]
add eax, 0x20
xorps xmm1, xmm0
cmp eax, ecx
jb 0x5391d0
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
xorps xmm1, xmm0
movd ecx, xmm1
cmp eax, esi
jae 0x539228
nop dword [eax]
xor cl, byte [edi + eax]
inc eax
cmp eax, esi
jb 0x539220
test cl, cl
jne 0x539274
test esi, esi
je 0x539274
mov edx, esi
mov byte [ebx + 4], 1
mov ecx, edi
mov byte [esp + 0x10], 1
call fcn.00564c30
mov edx, eax
xor ecx, ecx
xor eax, eax
mov edi, 0x58d674
nop dword [eax]
cmp dword [eax + edi], edx
jne 0x53925d
cmp dword [eax + 0x58d670], esi
je 0x53927c
add eax, 0xc
inc ecx
cmp eax, 0x48
jb 0x539250
mov dword [ebx], 0xffffffff
mov dl, byte [esp + 0x10]
mov byte [ebx + 4], 0
pop edi
pop esi
mov al, dl
pop ebx
ret 8
mov dword [ebx], ecx
test ecx, ecx
js 0x53926c
pop edi
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x53ff40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov esi, ecx
lea edx, [esp + 0x20]
push 0x14
mov dword [esp + 0x1c], esi
call fcn.00565c90
lea eax, [esi + 0x80]
push 0x14
lea edx, [esp + 0x64]
mov dword [esp + 0x20], eax
mov ecx, eax
call fcn.00565c90
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
jbe 0x540006
nop dword [eax]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x24]
call fcn.00565ba0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x64]
call fcn.00565ba0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
xor eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
xor edi, dword [esp + 0x20]
xor esi, dword [esp + 0x30]
sub dword [ebp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
jne 0x53ffb0
mov edx, dword [ebp + 8]
mov dword [edx], edi
mov edi, edx
mov edx, dword [esp + 0xc]
mov dword [edi + 0x10], esi
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x540850
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57830d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xc8
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x24], 0x5b5fa8
push 0x5b5fa8
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x20], 0
mov dword [ebp - 4], 0
je 0x5409c3
lea ecx, [ebp - 0xb0]
call fcn.00566430
mov eax, 0x3e8
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xb0]
call fcn.00565d20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xb0]
call fcn.00565d20
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x540942
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54093b
push 0x20
lea ecx, [ebp - 0xd0]
push ecx
call eax
test al, al
je 0x54093b
push 0x20
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x18], 0x64
lea ecx, [ebp - 0xb0]
call fcn.00565d20
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x540960
push 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xb0]
call fcn.00565d20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xb0]
call fcn.00565d20
mov edi, 0x64
nop
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.00566340
lea ecx, [ebp - 0xb0]
call fcn.00566430
push 0x20
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.00565d20
sub edi, 1
jne 0x540980
sub dword [ebp - 0x18], 1
jne 0x540942
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.00566340
mov byte [esi + 0x20], 0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x540a5d
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0xb0]
call fcn.00566430
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 0x20
call fcn.00565d20
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00566340
lea ecx, [ebp - 0xb0]
call fcn.00566430
push 4
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xf672abd1
lea ecx, [ebp - 0xb0]
call fcn.00565d20
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 0x20
call fcn.00565d20
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xb0]
call fcn.00566340
xor eax, eax
nop
test esi, esi
je 0x540a5d
mov cl, byte [ebp + eax - 0xd0]
dec esi
mov byte [edi], cl
inc eax
inc edi
cmp eax, 0x20
jb 0x540a40
test esi, esi
jne 0x5409d1
push 0x5b5fa8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x540a80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [ecx + 0x108]
push esi
mov eax, dword [ebx]
xor eax, dword [ecx + 0x100]
xor ebp, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x104]
xor eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [ecx + 0x10c]
cmp byte [esp + 0x38], 0
push edi
jne 0x540ac5
movups xmm0, xmmword [ebx]
movups xmmword [esp + 0x24], xmm0
xor edx, edx
mov ebx, eax
mov dword [esp + 0x18], edx
nop dword [eax]
mov eax, 0x1f
sub eax, edx
cmp byte [esp + 0x3c], 0
cmove edx, eax
and edx, 3
mov esi, dword [ecx + edx*4 + 0x100]
mov edx, ebx
rol edx, 0xb
add edx, ebp
xor edx, esi
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + ecx]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx]
shl eax, 8
or edi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + ecx]
or edi, eax
movzx eax, dl
mov edx, ebp
shl edi, 8
rol edx, 0x11
xor edx, ebx
movzx eax, byte [eax + ecx]
add edx, esi
or edi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
xor edi, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, edi
movzx esi, byte [eax + ecx]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx]
shl eax, 8
or esi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + ecx]
or esi, eax
movzx eax, dl
mov edx, dword [esp + 0x18]
shl esi, 8
inc edx
mov dword [esp + 0x18], edx
movzx eax, byte [eax + ecx]
or esi, eax
xor esi, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ebx, esi
cmp edx, 0x20
jb 0x540ad0
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x24]
mov eax, dword [ecx + 0x100]
xor eax, edi
mov dword [ebx], eax
mov eax, dword [ecx + 0x104]
xor eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x108]
xor eax, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0x10c]
xor eax, dword [esp + 0x14]
cmp byte [esp + 0x3c], 0
mov dword [ebx + 0xc], eax
cmovne edx, dword [esp + 0x38]
mov esi, dword [ecx + 0x100]
add edx, 2
mov edi, dword [ecx + 0x104]
mov ebx, dword [ecx + 0x108]
mov ebp, dword [ecx + 0x10c]
mov dword [esp + 0x3c], 4
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor esi, dword [eax*4 + 0x5b8100]
mov dword [ecx + 0x100], esi
movzx eax, byte [edx - 5]
xor edi, dword [eax*4 + 0x5b8100]
mov dword [ecx + 0x104], edi
movzx eax, byte [edx - 4]
xor ebx, dword [eax*4 + 0x5b8100]
mov dword [ecx + 0x108], ebx
movzx eax, byte [edx - 3]
xor ebp, dword [eax*4 + 0x5b8100]
sub dword [esp + 0x3c], 1
mov dword [ecx + 0x10c], ebp
jne 0x540c00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x542070
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 0x12345678
push ebp
mov ebp, dword [esp + 0x10]
mov edx, 0x34567890
push esi
push edi
xor edi, edi
mov esi, 0x23456789
test ebx, ebx
je 0x5420c9
movzx ecx, byte [edi + ebp]
inc edi
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5b8100]
movzx ecx, al
add ecx, esi
imul esi, ecx, 0x8088405
inc esi
mov ecx, esi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5b8100]
cmp edi, ebx
jb 0x542091
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx + 0x18], esi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
mov dword [ecx + 0x1c], edx
pop ebx
ret 0xc

Function at 0x542210
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
nop word [eax + eax]
mov ecx, eax
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esi + ebp + 0x24]
movzx ecx, dl
xor ecx, ebx
shr ebx, 8
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x5b8100]
movzx ecx, bl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5b8100]
mov byte [esi + ebp + 0x24], dl
inc ebp
cmp ebp, 0xc
jb 0x542230
mov dword [esi + 0x10], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x5422b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xb
lea eax, [esp + 0x14]
mov edi, ecx
push eax
mov ecx, 0x5b3070
call fcn.00540850
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0x1c]
shr eax, 8
xor ebp, ebp
mov byte [esp + 0x1b], al
mov eax, dword [edi + 0x18]
mov dword [esp + 0x24], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
nop dword [eax]
mov bl, byte [esp + ebp + 0x10]
mov ecx, eax
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
movzx ecx, bl
shr edx, 8
xor dl, bl
mov byte [esp + ebp + 0x10], dl
inc ebp
mov edx, dword [esp + 0x24]
xor ecx, edx
movzx ecx, cl
shr edx, 8
xor edx, dword [ecx*4 + 0x5b8100]
movzx ecx, dl
add ecx, esi
mov dword [esp + 0x24], edx
imul esi, ecx, 0x8088405
inc esi
mov ecx, esi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5b8100]
cmp ebp, 0xc
jb 0x5422f0
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], edx
lea edx, [esp + 0x10]
push 0xc
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
call fcn.00414a90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x5424c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xcc
push esi
movzx eax, dl
mov esi, ecx
push 0x40
push eax
lea eax, [esp + 0x18]
push eax
call sub.msvcrt.dll_memset
movups xmm0, xmmword [esi]
add esp, 0xc
mov eax, 0x10
xorps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
mov cl, byte [esi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x14
jb 0x5424f4
lea ecx, [esp + 0x50]
call fcn.00565c10
push 0x40
lea edx, [esp + 0x14]
lea ecx, [esp + 0x54]
call fcn.00565d20
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x50]
call fcn.00565ab0
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5471a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x5471d1
call fcn.00547430
test eax, eax
je 0x5471d1
mov edx, 1
lea ecx, [esp]
call fcn.00547410
mov eax, dword [esp + 8]
shr eax, 0x19
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 0x19
and eax, 1
add esp, 0x10
ret

Function at 0x547220
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push 0x11
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x547272
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x547272
call fcn.00547430
test eax, eax
je 0x547272
mov edx, 1
lea ecx, [esp]
call fcn.00547410
mov eax, dword [esp + 8]
and eax, 0x18000000
cmp eax, 0x18000000
jne 0x547272
xor ecx, ecx
xgetbv
and eax, 6
cmp al, 6
sete cl
mov eax, ecx
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x5472d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x547302
call fcn.00547430
cmp eax, 7
jb 0x547302
mov edx, 7
lea ecx, [esp]
call fcn.00547410
mov eax, dword [esp + 4]
shr eax, 0x1d
and eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x547310
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x547341
call fcn.00547430
test eax, eax
je 0x547341
mov edx, 1
lea ecx, [esp]
call fcn.00547410
mov eax, dword [esp + 0xc]
shr eax, 0x1a
and eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x547350
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x547381
call fcn.00547430
test eax, eax
je 0x547381
mov edx, 1
lea ecx, [esp]
call fcn.00547410
mov eax, dword [esp + 8]
shr eax, 0x13
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 0x13
and eax, 1
add esp, 0x10
ret

Function at 0x547390
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x5473c1
call fcn.00547430
test eax, eax
je 0x5473c1
mov edx, 1
lea ecx, [esp]
call fcn.00547410
mov eax, dword [esp + 8]
shr eax, 9
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 9
and eax, 1
add esp, 0x10
ret
Function at 0x547ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x34], edx
push edi
mov dword [esp + 0x34], esi
mov edi, dword [esi + 0x10]
cmp edi, 3
jae 0x547ee5
mov ecx, esi
call fcn.00549fa0
jmp 0x54805e
mov ecx, dword [esi]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
movzx eax, word [esi + eax*4 + 0x60]
xor edx, eax
mov eax, dword [esi + 0x24]
mov ebx, dword [eax + edx*4]
lea ecx, [eax + edx*4]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea edx, [edx + eax*8]
mov eax, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
lea ebp, [edx + 4]
sub eax, ecx
mov dword [esp + 0x18], ebp
cmp ecx, dword [esp + 0x20]
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x30], ecx
cmp ecx, ebx
mov ecx, dword [esp + 0x10]
jae 0x548039
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
sub esi, ebx
cmp dword [esp + 0x3c], esi
sbb eax, eax
and eax, dword [esp + 0x24]
sub eax, esi
neg esi
add eax, dword [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x44], ecx
lea ebp, [edx + eax*8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp edx, eax
cmovb eax, edx
mov edx, dword [esp + 0x10]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + edx]
mov edx, dword [esp + 0x14]
jne 0x547fe9
inc eax
cmp eax, edi
je 0x547fd1
mov edx, dword [esp + 0x10]
add edx, eax
mov cl, byte [edx + esi]
cmp cl, byte [edx]
jne 0x547fe5
inc eax
inc edx
cmp eax, edi
jne 0x547fc0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [ebp + 4]
mov dword [ecx], eax
jmp 0x548046
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + esi]
jae 0x54800e
mov dword [edx], ebx
lea edx, [ebp + 4]
mov ebx, dword [edx]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jmp 0x54801f
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov dword [ecx], ebx
mov ebx, dword [ebp]
sub dword [esp + 0x2c], 1
je 0x548035
cmp dword [esp + 0x30], ebx
jae 0x548035
mov ecx, dword [esp + 0x10]
jmp 0x547f73
mov esi, dword [esp + 0x34]
mov dword [edx], 0
mov dword [ebp], 0
mov eax, dword [esi + 4]
inc dword [esi + 0x14]
inc eax
inc dword [esi]
mov dword [esi + 4], eax
cmp eax, dword [esi + 8]
jne 0x54805e
mov ecx, esi
call fcn.00549820
sub dword [esp + 0x38], 1
jne 0x547ed1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret