joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2a80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
movups xmm2, xmmword [eax]
mov ecx, dword [edx + 0xf0]
mov eax, dword [esp + 8]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
lea edx, [edx + 0x20]
xorps xmm2, xmm0
aesenc xmm2, xmm1
dec ecx
movups xmm1, xmmword [edx]
lea edx, [edx + 0x10]
jne 0x4d2aa2
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [eax], xmm2
pxor xmm2, xmm2
ret
Function at 0x4d4970
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x30]
push edi
movups xmm0, xmmword [eax]
movups xmmword [esp + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 8]
push eax
movups xmmword [esp + 0x1c], xmm0
call fcn.004d5550
xor edi, edi
add esp, 4
mov dword [esp + 0x34], edi
cmp dword [esp + 0x30], edi
jbe 0x4d4b54
mov eax, dword [esp + 0x2c]
push ebx
add eax, 8
push ebp
mov dword [esp + 0xc], eax
push esi
mov ecx, dword [esp + edi*4 + 0x2c]
mov eax, dword [esp + edi*4 + 0x24]
movzx eax, al
mov ebx, dword [esp + edi*4 + 0x1c]
movzx edx, cl
shl edx, 8
or edx, eax
mov esi, dword [esp + edi*4 + 0x24]
shl edx, 8
movzx eax, bl
or edx, eax
mov eax, dword [esp + edi*4 + 0x14]
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ebp, eax
shl ebp, 6
xor ebp, eax
mov eax, dword [esp + edi*4 + 0x2c]
shr eax, 8
xor ebp, edx
movzx edx, al
mov eax, esi
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esp + edi*4 + 0x14]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x40]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov edi, eax
shl edi, 6
xor edi, eax
mov eax, dword [esp + ecx*4 + 0x2c]
shr eax, 0x10
xor edi, edx
movzx edx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
mov eax, dword [esp + ecx*4 + 0x14]
shl edx, 8
shr eax, 0x10
and ebx, 0xff00ffff
movzx eax, al
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x40]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov esi, eax
shl esi, 6
xor esi, eax
mov eax, dword [esp + ecx*4 + 0x24]
xor esi, edx
and eax, 0xff0000ff
mov edx, dword [esp + ecx*4 + 0x14]
shr edx, 8
or edx, ebx
shr edx, 8
or edx, eax
mov eax, dword [esp + ecx*4 + 0x2c]
and eax, 0xff000000
shr edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ecx, eax
shl ecx, 6
xor ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, edx
mov dword [eax - 8], ebp
mov dword [eax - 4], edi
mov edi, dword [esp + 0x40]
mov dword [eax], esi
inc edi
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x3c]
jb 0x4d49b4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
Function at 0x4d4dc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0xfd5100]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x3c]
push edi
mov edi, dword [esp + 0x58]
push esi
push eax
mov dword [edi + 0xf0], 0xe
call fcn.004d44f0
movups xmm0, xmmword [esp + 0x48]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
movups xmmword [edi], xmm0
call fcn.004d44f0
movups xmm2, xmmword [esp + 0x40]
add esp, 0x10
lea ebp, [edi + 0x20]
mov ebx, 2
movups xmmword [edi + 0x10], xmm2
nop dword [eax]
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [esp + 0x10], xmm0
push eax
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm2
psrldq xmm0, 4
movd dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd dword [esp + 0x24], xmm0
movaps xmm0, xmm2
psrldq xmm0, 0xc
movd dword [esp + 0x2c], xmm0
call fcn.004d5550
lea eax, [esp + 0x14]
push eax
call fcn.004d4fd0
lea eax, [esp + 0x18]
push eax
call fcn.004d5550
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 1
mov cl, byte [eax + 0xfd19ab]
xor eax, eax
movzx edi, cl
nop dword [eax]
mov edx, dword [esp + eax*4 + 0x30]
mov cl, al
add cl, cl
mov esi, edi
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4d4eb0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp], xmm0
cmp ebx, 0xe
je 0x4d4fae
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.004d5550
lea eax, [esp + 0x14]
push eax
call fcn.004d4fd0
lea eax, [esp + 0x18]
push eax
call fcn.004d5550
mov eax, dword [esp + 0x1c]
add ebx, 2
mov dword [esp + 0x3c], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
movups xmm1, xmmword [esp + 0x30]
psrld xmm1, 0x18
xorps xmm1, xmm2
movaps xmm2, xmm1
movaps xmm0, xmm1
pslld xmm2, 8
pslld xmm0, 0x10
xorps xmm2, xmm1
pslld xmm1, 0x18
xorps xmm2, xmm0
xorps xmm2, xmm1
movups xmmword [ebp + 0x10], xmm2
add ebp, 0x20
cmp ebx, 0xe
jbe 0x4d4e20
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6105
add esp, 0x44
ret
Function at 0x4d55d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0xfd5100]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 0x258]
mov dword [esp], eax
mov eax, dword [esp + 0x25c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x264]
push esi
mov esi, dword [esp + 0x26c]
mov dword [esp + 0xc], eax
je 0x4d5745
push ebp
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004d4880
movups xmm0, xmmword [esi]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x224]
add esp, 8
lea edi, [esp + 0x23c]
movups xmmword [ecx], xmm0
mov eax, dword [ecx]
sub edi, esi
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x1c], eax
mov ebp, dword [esp + 0x228]
bswap ebp
push ebx
nop word [eax + eax]
xor ecx, ecx
lea edx, [esp + 0x22c]
nop dword [eax]
lea eax, [ecx + ebp]
inc ecx
lea edx, [edx + 0x10]
bswap eax
mov dword [edx - 0x10], eax
cmp ecx, 2
jb 0x4d5680
mov ebx, dword [esp + 0x270]
mov eax, 2
cmp ebx, 2
cmovae ebx, eax
lea eax, [esp + 0x220]
push ebx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ebx
push eax
call fcn.004d52c0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x54]
push eax
call fcn.004d4690
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x25c]
push ebx
push eax
call fcn.004d4970
add esp, 0x24
test ebx, ebx
je 0x4d5722
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub esi, eax
nop word [eax + eax]
mov edx, 4
mov ecx, dword [eax]
xor ecx, dword [eax + edi]
mov dword [esi + eax], ecx
add eax, 4
sub edx, 1
jne 0x4d5705
sub ebx, 1
jne 0x4d5700
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub dword [esp + 0x270], ebx
je 0x4d5742
add dword [esp + 0x14], 0x20
add esi, 0x20
sub edi, 0x20
mov dword [esp + 0x10], esi
add ebp, 2
jmp 0x4d5670
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x254]
pop esi
xor ecx, esp
call fcn.004e6105
add esp, 0x254
ret
Function at 0x4d57f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0xfd5100]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x54]
cmp eax, 0x80
je 0x4d584a
cmp eax, 0x100
je 0x4d582e
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e6105
add esp, 0x44
ret
push ecx
push ebx
call fcn.004d4dc0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e6105
add esp, 0x44
ret
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x44]
mov dword [ebx + 0xf0], 0xa
push eax
call fcn.004d44f0
movups xmm0, xmmword [esp + 0x48]
add esp, 8
mov edi, 1
movups xmmword [ebx], xmm0
add ebx, 0x10
nop word [eax + eax]
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call fcn.004d5550
lea eax, [esp + 0x24]
push eax
call fcn.004d4fd0
lea eax, [esp + 0x28]
push eax
call fcn.004d5550
mov eax, dword [esp + 0x2c]
add esp, 0xc
movzx ebp, byte [edi + 0xfd19ab]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
xor eax, eax
mov edx, dword [esp + eax*4 + 0x10]
mov cl, al
add cl, cl
mov esi, ebp
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4d58f7
movups xmm0, xmmword [esp + 0x40]
inc edi
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp edi, 0xa
jbe 0x4d5880
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6105
add esp, 0x44
ret
Function at 0x4d9190
Capabilities:
Encrypt data using curve25519

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
ret
Function at 0x4e0190
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x4e0247
mov eax, dword [esp + 0xc]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x4e0226
push edi
mov edi, edx
xorps xmm3, xmm3
and edi, 0xffffffe0
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
xorps xmm1, xmm0
orps xmm3, xmm1
movups xmm1, xmmword [esi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp ecx, edi
jb 0x4e01c3
orps xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x4e0240
mov eax, dword [esp + 0x10]
add eax, ecx
sub edx, ecx
nop word [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x4e0230
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x4e2170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push edi
push 0x60
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [esp + 0x10], edi
jbe 0x4e21cf
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
dec ecx
push esi
mov dword [esp + 0x20], ecx
nop word [eax + eax]
push ebp
mov esi, ecx
push ebx
xor esi, edi
push esi
push ebp
call fcn.004e0440
lea ecx, [ebp + 0x20]
push ecx
lea eax, [ebx + 0x20]
push eax
push esi
push ecx
call fcn.004e0440
mov ecx, dword [esp + 0x40]
inc edi
add esp, 0x20
add ebx, 0x40
cmp edi, dword [esp + 0x18]
jb 0x4e21a0
pop esi
pop ebx
lea eax, [ebp + 0x40]
push 0xfd2218
push eax
push dword [esp + 0x14]
push eax
call fcn.004e0440
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4e44a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
test edi, edi
je 0x4e44e1
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
sub ebx, esi
nop dword [eax + eax]
mov edx, dword [esi + ebx]
lea esi, [esi + 4]
xor edx, dword [esi - 4]
lea ecx, [edx - 1]
not edx
shr ecx, 0x1f
shr edx, 0x1f
and ecx, edx
neg ecx
and eax, ecx
sub edi, 1
jne 0x4e44c0
pop esi
pop ebx
pop edi
ret

Function at 0x4e5510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [0xfd5100]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0xa4]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0xa4]
xor ecx, ecx
push ebx
add edx, 0x60
push esi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0xc], edx
movups xmmword [esp + 0x24], xmm0
push edi
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x98], xmm0
inc ecx
mov edi, edx
mov dword [esp + 0x14], ecx
xor ecx, dword [esp + 0xb8]
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
xor esi, esi
mov ebx, eax
not ebx
mov edx, dword [edi - 0x60]
lea edi, [edi + 4]
and edx, eax
mov ecx, ebx
and ecx, dword [esp + esi + 0x18]
or edx, ecx
mov ecx, ebx
and ecx, dword [esp + esi + 0x48]
mov dword [esp + esi + 0x18], edx
mov edx, dword [edi - 0x34]
and edx, eax
or edx, ecx
mov ecx, dword [edi - 4]
mov dword [esp + esi + 0x48], edx
and ecx, eax
mov edx, dword [esp + esi + 0x78]
and edx, ebx
or edx, ecx
mov dword [esp + esi + 0x78], edx
add esi, 4
cmp esi, 0x30
jb 0x4e5598
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x90
mov dword [esp + 0x10], edx
cmp ecx, 0x10
jb 0x4e5575
pop edi
lea ecx, [esp + 0x40]
lea eax, [ebp + 0x2c]
pop esi
pop ebx
cmp ebp, ecx
ja 0x4e55ff
lea ecx, [esp + 0xc]
movups xmm0, xmmword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [ebp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ebp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [ebp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [ebp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebp + 0x50], xmm0
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [ebp + 0x60], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [ebp + 0x70], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [ebp + 0x80], xmm0
pop ebp
xor ecx, esp
call fcn.004e6105
add esp, 0x9c
ret
Function at 0x4e58f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push ebx
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40
push edi
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x4e5921
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x4e65d8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4e6617
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e6617
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e6617
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e6617
cmp dword [ecx + 0x74], 0xe
jbe 0x4e6617
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e80f0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push edi
push esi
sub esp, 0x54
xorps xmm0, xmm0
lea edi, [esp + 0x14]
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
push 2
push 0x20
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x4e812d
mov esi, eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4e82c4
movups xmm0, xmmword [esp + 0x14]
movups xmm1, xmmword [esp + 0x24]
xor ecx, ecx
mov edx, 0x158
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm1
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4e82db
mov dword [eax], 1
mov esi, eax
mov dword [eax + 4], 1
add eax, 8
push pe_nt_image_headers32
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movups xmm0, xmmword [esp + 0x44]
mov dword [esi + 0x108], 0x40
movaps xmm1, xmmword [0x4eb530]
movups xmmword [esi + 0x110], xmm0
movups xmm0, xmmword [esp + 0x34]
movups xmmword [esi + 0x120], xmm0
xorps xmm0, xmm0
movsd qword [esi + 0x130], xmm0
movsd qword [esi + 0x138], xmm0
movups xmmword [esi + 0x140], xmm1
mov dword [esi + 0x150], 0
mov eax, dword [0xfd5210]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], 1
mov dword [edx + 0x14], esi
cmp ecx, 1
je 0x4e82a6
test ecx, ecx
jne 0x4e82a0
mov eax, dword [0xfd5210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x28], 0
jne 0x4e82e7
mov eax, dword [0xfd5210]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov dword [ecx + 0x28], 0xffffffff
mov eax, dword [entry1]
mov esi, dword [ecx + 0x34]
xor eax, eax
cmp esi, dword [ecx + 0x2c]
jne 0x4e826c
call fcn.00484290
mov eax, dword [0xfd5210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [0xfd5210]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ecx + 0x30]
lea edi, [ecx + 0x10]
mov dword [edx + esi*8], edi
mov dword [edx + esi*8 + 4], 0x4268a0
inc esi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x34], esi
add esp, 0x54
pop esi
pop edi
ret
dec dword [eax]
jne 0x4e82a0
dec dword [eax + 4]
jne 0x4e82a0
push eax
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x54
pop esi
pop edi
ret
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 4
call fcn.00494530
test eax, eax
jne 0x4e82dd
ud2
and esi, 0x7fffffff
mov dword [eax], esi
ud2
mov eax, esp
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0xf95150
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov byte [esp + 8], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
push edi
call fcn.00483d50
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.00405000
mov ecx, 7
int 0x29
ud2
Function at 0x4e9a00
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
cmp ebp, 0xffffffff
je 0x4e9a7f
mov ebx, ebp
inc ebx
js 0x4e9a7f
movzx eax, byte [0xfd520d]
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov edx, ebx
call fcn.00494530
test eax, eax
je 0x4e9a7f
push ebp
push edi
mov dword [esp + 0xc], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + 3]
and eax, 0xfffffffc
sub eax, edi
je 0x4e9a75
cmp eax, ebp
cmovae eax, ebp
test eax, eax
je 0x4e9a75
mov ecx, edi
mov edx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ecx], 0
je 0x4e9b38
inc ecx
dec edx
jne 0x4e9a60
lea ecx, [ebp - 8]
mov dword [esp], esi
jmp 0x4e9a81
mov dword [esp], esi
lea ecx, [ebp - 8]
xor eax, eax
jmp 0x4e9a85
ud2
cmp eax, ecx
ja 0x4e9aaf
mov esi, dword [edi + eax + 4]
mov edx, dword [edi + eax]
mov ebp, 0x1010100
sub ebp, esi
or ebp, esi
mov esi, 0x1010100
sub esi, edx
or esi, edx
and esi, ebp
not esi
test esi, 0x80808080
jne 0x4e9aaf
add eax, 8
jmp 0x4e9a81
mov edx, dword [esp + 0x40]
mov esi, dword [esp]
mov ecx, edx
sub ecx, eax
je 0x4e9ac9
add edi, eax
nop
cmp byte [edi], 0
je 0x4e9b38
inc edi
dec ecx
jne 0x4e9ac0
mov eax, dword [esp + 4]
lea ebp, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ecx, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00415260
xorps xmm0, xmm0
mov edi, eax
mov ebx, edx
lea eax, [esp + 8]
mov dword [esp + 8], 0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x14], 1
push eax
push ebp
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4e9b55
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x4e9b77
jmp 0x4e9b86
mov eax, dword [0xf949b8]
mov ecx, dword [0xf949bc]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
push dword [esp + 4]
jmp 0x4e9b78
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 8]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4e9b86
push edi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405960
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d95
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x466124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x46732c
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004251b0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x466cb4
push eax
call fcn.004251b0
mov esi, dword [0x46733c]
xor ebx, ebx
mov edi, dword [0x467340]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x469ac8], bl
mov eax, ebx
mov ecx, 0x46732c
cmovae ecx, dword [0x46732c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x469bd8], al
inc ebx
cmp ebx, 0x100
jl 0x4059e0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x469ac8]
movzx eax, byte [esi + 0x469bd8]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x405a34
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x469ac8]
mov byte [esi + 0x469ac8], al
inc esi
mov byte [edi + 0x469ac8], dl
cmp esi, 0x100
jl 0x405a10
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00405640
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x405a89
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405adf
push edx
push ecx
call fcn.0042af96
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x405acb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ac1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405adf
push edx
push ecx
call fcn.0042af96
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042fca5
int3