joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa2af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa69726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0xa82014]
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 - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00a58b63
push eax
call fcn.00a56660
add esp, 8
call fcn.00a5663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.00a5663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.00a5663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00a245b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0xa2afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xa2afe6
push 0x40
push 0
push 0xa88560
sub esi, ecx
call fcn.00a540f0
add esp, 0xc
mov dword [0xa88554], 0
mov edx, esi
mov dword [0xa88550], 0
lea ecx, [ebp - 0x410]
mov dword [0xa88540], 0x67452301
mov dword [0xa88544], 0xefcdab89
mov dword [0xa88548], 0x98badcfe
mov dword [0xa8854c], 0x10325476
call fcn.00a25530
call fcn.00a255f0
mov ecx, 0xa865a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa2b071
sub ecx, edx
push ecx
push 0xa865a0
lea ecx, [ebp - 0x42c]
call fcn.00a380c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0xa2b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xa2b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xa2b18c
push edx
push ecx
call fcn.00a3d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0xa2b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.00a380c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0xa2b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xa2b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xa2b18c
push edx
push ecx
call fcn.00a3d663
add esp, 8
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.00a3cff1
mov esp, ebp
pop ebp
ret
call fcn.00a38200
call fcn.00a56c6a
int3
Function at 0xa3dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x4860c4a
nop
test eax, eax
je 0xa3dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa3dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa3dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xa3dd07
cmp dword [ecx + 0x74], 0xe
jbe 0xa3dd07
cmp dword [ecx + 0xe8], 0
je 0xa3dd07
mov al, 1
ret
xor al, al
ret
Function at 0xc68b9e
Capabilities:
Execute anti-debugging instructions

Disassembly:
jae 0xc68bb2
pushal
push eax
push edx
rdtsc
pop edx
pop eax
je 0xc68bb1
popal
push eax
push ecx
jmp 0xc68bc4
pop ecx
mov eax, dword [esp + 4]
push ebx
ja 0xc68bd2
push esi
pop esi
pop ebx
mov eax, dword [eax]
je 0xc68be3
jl 0xc68be3
push edx
pop edx
mov dword [esp + 4], eax
push ecx
jmp 0xc68c01
pop ecx
pop eax
pushal
pushal
mov dx, ax
mov edi, 0x425c8ee4
popal
add eax, 0x6b41d825
popal
jge 0xc68c27
jmp 0xc68c27
push dword [ebp + 0x122d078d]
pushal
jmp 0xc68c45
movzx edi, dx
popal
lea eax, [ebp + 0x12479e01]
cld
call eax
jb 0xc68c66
jmp 0xc68c66
mov dword [ebp + 0x122d2587], eax
pushal
mov si, bx
call 0xc68c7e
out dx, al
mov dl, 0x1e
arpl word [esi], si
xchg esi, eax
rol byte [eax], 0x5a
popal
mov byte [ebp + 0x122d1dc8], 0x50
pushal
sub eax, 0x4a4902ed
popal
push 0x4399efc8
push ebx
push eax
push edx
jmp 0xc68ca5
rdtsc
jg 0xc68cad
pop edx
pop eax
pop ebx
add dword [esp], 0x6513bd8e
cmc
jae 0xc68cbf
clc
push dword [ebp + 0x122d078d]
jmp 0xc68cd4
lea eax, [ebp + 0x12479e01]
pushal
mov ch, 0xdf
stc
popal
pushal
mov dh, 0xa9
stc
popal
call eax
pushal
xor ecx, 0x36daff7f
push ebx
and ecx, 0x9dde972
pop edi
popal
mov dword [ebp + 0x122d5db1], eax
stc
push 0xc6415090
pushal
push eax
push edx
jnp 0xc68d0b
rdtsc
push eax
push edx
rdtsc
pop edx
pop eax
pop edx
pop eax
jb 0xc68d21
js 0xc68d21
popal
add dword [esp], 0x2a4e579f
cmc
push dword [ebp + 0x122d078d]
pushal
jmp 0xc68d48
call 0xc68d54
mov esp, 0x4e2d8577
and dword [0x12e9615f], 0x82000000
sub eax, dword [eax + 0x7c]
mov al, bh
inc edx
adc al, 0xe3
cmp eax, dword [eax]
inc edi
in al, dx
sti
scasd eax, dword es:[edi]
out dx, al
pop ds
ror dword [ebp + 0x479e0185], 0x12
jmp 0xc68d82
call eax
jo 0xc68d96
jp 0xc68d96
jle 0xc68d96
pushal
mov di, 0x4845
mov ecx, edi
popal
mov dword [ebp + 0x122d22a5], eax
pushal
movsx ecx, si
je 0xc68db4
sbb esi, 0x7d30ae5b
popal
mov byte [ebp + 0x122d1dc8], 0x50
push 0
push ebx
call 0xc68dc7
and byte [ebx - 0x3d], bl
pop ebx
mov dword [esp + 4], ebx
add dword [esp + 4], 0x14
inc ebx
push ebx
ret
Function at 0xc68c7e
Capabilities:
Execute anti-debugging instructions

Disassembly:
jae 0xc68bb2
pushal
push eax
push edx
rdtsc
pop edx
pop eax
je 0xc68bb1
popal
push eax
push ecx
jmp 0xc68bc4
pop ecx
mov eax, dword [esp + 4]
push ebx
ja 0xc68bd2
push esi
pop esi
pop ebx
mov eax, dword [eax]
je 0xc68be3
jl 0xc68be3
push edx
pop edx
mov dword [esp + 4], eax
push ecx
jmp 0xc68c01
pop ecx
pop eax
pushal
pushal
mov dx, ax
mov edi, 0x425c8ee4
popal
add eax, 0x6b41d825
popal
jge 0xc68c27
jmp 0xc68c27
push dword [ebp + 0x122d078d]
pushal
jmp 0xc68c45
movzx edi, dx
popal
lea eax, [ebp + 0x12479e01]
cld
call eax
jb 0xc68c66
jmp 0xc68c66
mov dword [ebp + 0x122d2587], eax
pushal
mov si, bx
call 0xc68c7e
out dx, al
mov dl, 0x1e
arpl word [esi], si
xchg esi, eax
rol byte [eax], 0x5a
popal
mov byte [ebp + 0x122d1dc8], 0x50
pushal
sub eax, 0x4a4902ed
popal
push 0x4399efc8
push ebx
push eax
push edx
jmp 0xc68ca5
rdtsc
jg 0xc68cad
pop edx
pop eax
pop ebx
add dword [esp], 0x6513bd8e
cmc
jae 0xc68cbf
clc
push dword [ebp + 0x122d078d]
jmp 0xc68cd4
lea eax, [ebp + 0x12479e01]
pushal
mov ch, 0xdf
stc
popal
pushal
mov dh, 0xa9
stc
popal
call eax
pushal
xor ecx, 0x36daff7f
push ebx
and ecx, 0x9dde972
pop edi
popal
mov dword [ebp + 0x122d5db1], eax
stc
push 0xc6415090
pushal
push eax
push edx
jnp 0xc68d0b
rdtsc
push eax
push edx
rdtsc
pop edx
pop eax
pop edx
pop eax
jb 0xc68d21
js 0xc68d21
popal
add dword [esp], 0x2a4e579f
cmc
push dword [ebp + 0x122d078d]
pushal
jmp 0xc68d48
call 0xc68d54
mov esp, 0x4e2d8577
and dword [0x12e9615f], 0x82000000
sub eax, dword [eax + 0x7c]
mov al, bh
inc edx
adc al, 0xe3
cmp eax, dword [eax]
inc edi
in al, dx
sti
scasd eax, dword es:[edi]
out dx, al
pop ds
ror dword [ebp + 0x479e0185], 0x12
jmp 0xc68d82
call eax
jo 0xc68d96
jp 0xc68d96
jle 0xc68d96
pushal
mov di, 0x4845
mov ecx, edi
popal
mov dword [ebp + 0x122d22a5], eax
pushal
movsx ecx, si
je 0xc68db4
sbb esi, 0x7d30ae5b
popal
mov byte [ebp + 0x122d1dc8], 0x50
push 0
push ebx
call 0xc68dc7
and byte [ebx - 0x3d], bl
pop ebx
mov dword [esp + 4], ebx
add dword [esp + 4], 0x14
inc ebx
push ebx
ret
Function at 0x401790
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x401870
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401870
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017da
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4017e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017c0
jmp 0x4017e3
mov esi, 0x1505
jmp 0x4017e3
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
mov ebx, edi
sub ebx, 1
jb 0x401870
and ebx, esi
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401814
inc ebx
dec edi
je 0x40186e
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40186e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401810
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00408570
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401810
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408590
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401810
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401870
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401cd0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x401dd4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401dd4
cmp dword [esp + 0x2c], 0
je 0x401dd4
push esi
call fcn.00408570
add esp, 4
test eax, eax
je 0x401d3a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401d41
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401d20
jmp 0x401d43
mov ebx, 0x1505
jmp 0x401d43
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401ddc
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x401d99
call fcn.00401ef0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x401dd4
push ecx
call fcn.00408570
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401e60
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and esi, ebx
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401e08
inc esi
dec edi
je 0x401d55
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401d5a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401e00
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408570
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401e00
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408590
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401e00
mov eax, 0xffffffff
jmp 0x401dd4
and esi, ebx
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401e88
inc esi
dec edi
je 0x401d94
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401d99
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401e80
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408570
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401e80
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408590
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401e80
jmp 0x401d99
Function at 0x402630
Capabilities:
Compute adler32 checksum
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4027e6
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, esi
or eax, 0xffff
mov edi, esi
xor edi, 0xffff0000
and edi, eax
shr esi, 0x10
test ebx, ebx
je 0x4027df
mov ecx, 0x5e6ea9af
mov eax, ebx
mul ecx
mov ecx, ebx
shr edx, 0xb
imul eax, edx, 0x15b0
sub ebx, eax
jmp 0x4026c6
mov eax, dword [esp + 4]
sub eax, dword [esp]
add ebp, eax
mov ecx, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, esi
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
sub ecx, dword [esp + 4]
mov ebx, 0x15b0
je 0x4027df
xor edx, edx
cmp ebx, 8
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
jb 0x402743
and ebx, 0x1ff8
mov dword [esp], ebx
xor eax, eax
mov edx, eax
movzx ebx, byte [ebp + eax]
add ebx, edi
movzx eax, byte [ebp + eax + 1]
add eax, ebx
add ebx, esi
movzx ecx, byte [ebp + edx + 2]
add ecx, eax
add ebx, eax
movzx eax, byte [ebp + edx + 3]
add eax, ecx
add ebx, ecx
movzx ecx, byte [ebp + edx + 4]
add ecx, eax
add ebx, eax
movzx eax, byte [ebp + edx + 5]
add eax, ecx
add ebx, ecx
movzx ecx, byte [ebp + edx + 6]
add ecx, eax
add ebx, eax
movzx edi, byte [ebp + edx + 7]
add edi, ecx
add ebx, ecx
mov esi, ebx
mov ebx, dword [esp + 4]
add esi, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, ebx
jb 0x4026e0
add ebp, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp]
mov eax, edx
sub eax, ebx
jae 0x40268d
mov dword [esp + 0xc], eax
mov eax, ebx
and eax, 3
mov dword [esp], edx
je 0x40278f
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx]
inc edx
add edi, ecx
add esi, edi
dec ebx
cmp eax, ebx
jne 0x402770
mov eax, dword [esp]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402680
jmp 0x40279e
mov eax, edx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402680
mov ebx, dword [esp + 4]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + eax]
add ecx, edi
add esi, ecx
movzx edi, byte [edx + eax + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [edx + eax + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [edx + eax + 3]
add edi, ecx
add esi, edi
add eax, 4
cmp ebx, eax
jne 0x4027b0
jmp 0x402680
shl esi, 0x10
add esi, edi
jmp 0x4027eb
mov esi, 1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408b40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4481e0], eax
mov ecx, 1
nop
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [ecx*4 + 0x4481e0], eax
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
cmp ecx, 0x270
jb 0x408b50
mov dword [0x4481dc], 0x270
ret

Function at 0x408b90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov eax, dword [0x4481dc]
cmp eax, 0x270
jne 0x408bf0
mov eax, 0xfffff640
mov edx, dword [0x4481e0]
jmp 0x408bcf
and edx, 0x80000000
or esi, edx
shr esi, 1
xor esi, dword [eax + 0x4491d4]
xor esi, edi
mov dword [eax + 0x449560], esi
mov edx, ecx
add eax, 4
je 0x408c08
mov ecx, dword [eax + 0x448ba4]
mov edi, ecx
xor edi, 0x7ffffffe
mov esi, ecx
and esi, 0x7fffffff
and edi, esi
je 0x408bb0
mov edi, 0x9908b0df
jmp 0x408bb0
cmp eax, 0x4e0
jb 0x408c0d
mov ecx, 0x4481dc
call fcn.00408fa0
mov eax, dword [0x4481dc]
jmp 0x408c0d
mov eax, 0x270
lea ecx, [eax + 1]
mov dword [0x4481dc], ecx
mov eax, dword [eax*4 + 0x4481e0]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0x449560]
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc40000
xor ecx, eax
shr ecx, 0x12
and eax, 0x7fff
xor eax, ecx
pop esi
pop edi
ret
Function at 0x408fa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push edi
push esi
xor eax, eax
mov edx, SysReAllocString
nop
nop
nop
nop
nop
nop
mov ebx, dword [ecx + eax*4 + 0x9c4]
and ebx, edx
mov esi, dword [ecx + eax*4 + 0x9c8]
mov edi, esi
and edi, 0x7ffffffe
or edi, ebx
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [ecx + eax*4 + 0xff8]
shr edi, 1
xor esi, edi
mov dword [ecx + eax*4 + 4], esi
mov esi, eax
and esi, 1
xor eax, 1
lea eax, [eax + esi*2]
cmp eax, 0xe3
jb 0x408fb0
mov esi, dword [ecx + 0xd50]
mov eax, 0x355
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 - 0xd50]
xor edi, edx
mov dword [ecx + eax*4 - 0x9c4], edi
inc eax
cmp eax, 0x4e1
jne 0x409010
mov edx, dword [ecx + 0x1380]
mov esi, edx
not esi
or esi, 0x80000000
mov eax, SysReAllocString
and eax, dword [ecx + 4]
add edx, esi
inc edx
or eax, edx
mov edx, eax
shr edx, 1
and eax, 1
neg eax
xor edx, dword [ecx + 0x634]
and eax, 0x9908b0df
xor edx, eax
mov dword [ecx + 0x9c0], edx
mov dword [ecx], 0
pop esi
pop edi
pop ebx
ret
Function at 0x4091e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x404
mov dword [esp], ecx
mov esi, dword [esp + 0x418]
movzx eax, word [esi]
lea ebp, [esp + 4]
test ax, ax
je 0x409315
mov edx, 0x1ff
nop
nop
nop
nop
nop
nop
nop
movzx ebx, ax
lea edi, [esi + 2]
cmp bx, 0x7f
ja 0x409230
lea eax, [ebp + 1]
mov byte [ebp], bl
jmp 0x4092c0
cmp ebx, 0x7ff
ja 0x409260
cmp edx, 2
jb 0x409260
mov eax, ebx
shr eax, 6
add al, 0xc0
mov byte [ebp], al
mov eax, ebx
xor eax, 0xc0
or ebx, 0x3f
and ebx, eax
add bl, 0x80
lea eax, [ebp + 2]
mov byte [ebp + 1], bl
jmp 0x4092c0
mov eax, ebx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x4092da
cmp edx, 4
jb 0x4092da
movzx ecx, word [esi + 2]
add esi, 4
shl ebx, 0xa
lea eax, [ebx + ecx]
add eax, 0xfca02400
mov ebx, eax
shr ebx, 0x12
add bl, 0xf0
mov byte [ebp], bl
mov ebx, eax
shr ebx, 0xc
and bl, 0x3f
or bl, 0x80
mov byte [ebp + 1], bl
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebp + 2], al
and cl, 0x3f
or cl, 0x80
lea eax, [ebp + 4]
mov byte [ebp + 3], cl
mov edi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, ebp
sub edx, eax
mov esi, edi
mov ebp, eax
movzx eax, word [esi]
test ax, ax
je 0x409315
test edx, edx
jne 0x409210
jmp 0x409315
movzx eax, ax
cmp eax, 0xdc00
jne 0x4092e8
mov esi, edi
jmp 0x4092c8
cmp edx, 3
jb 0x409311
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [ebp], al
mov eax, ebx
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebp + 1], al
and bl, 0x3f
or bl, 0x80
lea eax, [ebp + 3]
mov byte [ebp + 2], bl
jmp 0x4092c0
mov eax, ebp
jmp 0x4092c0
mov esi, dword [esp + 0x420]
mov edx, dword [esp + 0x41c]
mov byte [ebp], 0
xor eax, eax
jmp 0x409338
mov byte [esp + eax + 0x204], bl
inc eax
movzx ecx, byte [esp + eax + 4]
mov bl, 0x2f
cmp ecx, 0x5c
je 0x409330
test ecx, ecx
je 0x40934c
mov ebx, ecx
jmp 0x409330
mov byte [esp + eax + 0x204], 0
lea eax, [esp + 0x204]
push 0
push 0
push 0
mov ecx, dword [esp + 0xc]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push esi
push edx
push eax
push ecx
call fcn.00404850
add esp, 0x28
test eax, eax
setne al
add esp, 0x404
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4137a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x11b8
call fcn.00408320
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov esi, 0xfffffffe
nop
nop
cmp word [eax + esi + 2], 0
lea esi, [esi + 2]
jne 0x4137c0
sar esi, 1
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push esi
push eax
push 0
call dword [0x44a8e0]
mov ebx, dword [esp + 0x2c]
mov edi, 0xffffffff
test ebx, ebx
jns 0x4137f4
mov eax, 0xffffffff
jmp 0x4137f7
lea eax, [ebx + ebx]
push eax
call fcn.00408350
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov dword [esp + 0x1c], eax
push eax
push esi
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push 0
call dword [0x44a8e0]
mov eax, dword [esp + 0x2c]
mov ecx, eax
add ecx, 0xd
js 0x41382c
lea edi, [eax*2 + 0x1a]
push edi
call fcn.00408350
add esp, 4
mov dword [esp + 0x1b4], 0x430e41fc
mov dword [esp + 0x1b8], 0x47d545e5
mov dword [esp + 0x1bc], 0x4b2a49dc
mov dword [esp + 0x1c0], 0x4feb4dfa
mov dword [esp + 0x1c4], 0xb321b122
mov dword [esp + 0x1c8], 0xb719b51d
mov dword [esp + 0x1cc], 0xbbbab916
mov dword [esp + 0x1d0], 0
xor edi, edi
nop
movzx edx, byte [esp + edi + 0x1b4]
lea ecx, [edi + 0x65812a70]
mov esi, 0x1a7ed58f
sub esi, edi
and esi, 0x10605594
and ecx, 0x6081286b
or ecx, esi
xor ecx, edx
xor ecx, 0x95605794
add ecx, 0x847a2bcf
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + edi + 0x1b4], cl
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
cmp edi, 0x20
jb 0x413890
mov edx, dword [esp + 0x14]
movzx ecx, word [edx]
mov esi, eax
test cx, cx
je 0x413911
add edx, 2
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x413900
mov word [esi], 0
movzx ecx, word [esp + 0x1b4]
test cx, cx
je 0x413941
lea edx, [esp + 0x1b6]
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x413930
mov word [esi], 0
lea ecx, [esp + 0x98]
push 0x60
push 3
push 0x120089
push ecx
mov dword [esp + 0x1c], eax
push eax
call fcn.0043cb50
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x44399c]
Function at 0x416510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41661f
mov ebp, dword [esp + 0x18]
xor esi, esi
mov edi, 2
jmp 0x416548
mov ebp, ebx
mov esi, ebp
lea eax, [edi + 4]
add edi, 2
cmp edi, ecx
mov edi, eax
mov ebp, dword [esp + 0x18]
jae 0x416621
movzx eax, byte [ebp + edi - 2]
push eax
call fcn.00418600
add esp, 4
mov bh, al
movzx eax, byte [ebp + edi - 1]
push eax
call fcn.00418600
add esp, 4
shl bh, 2
mov ah, al
shr ah, 4
and ah, 3
or ah, bh
mov ecx, esi
and ecx, 1
mov edx, esi
xor edx, 1
lea ebx, [edx + ecx*2]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov byte [edx + esi], ah
cmp edi, ecx
jae 0x416530
mov byte [esp + 3], al
movzx eax, byte [ebp + edi]
push eax
call fcn.00418600
add esp, 4
cmp al, 0x40
jne 0x4165b0
mov ebp, ebx
mov ecx, dword [esp + 0x1c]
jmp 0x416532
movzx ecx, al
mov edx, ecx
not edx
or edx, 0x3c
add ecx, edx
inc ecx
movzx edx, byte [esp + 3]
shl edx, 4
shr ecx, 2
add ecx, edx
lea ebp, [ebx + 1]
mov edx, dword [esp + 0x20]
mov byte [edx + ebx], cl
lea ecx, [edi + 1]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jae 0x416618
mov esi, ebx
mov ebx, eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + edi + 1]
push eax
call fcn.00418600
mov ecx, dword [esp + 0x20]
add esp, 4
cmp al, 0x40
je 0x416532
shl bl, 6
add al, bl
mov edx, dword [esp + 0x20]
mov byte [edx + esi + 1], al
add esi, 2
mov ebp, esi
jmp 0x416532
mov ecx, edx
jmp 0x416532
xor esi, esi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret