joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x401a5b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a5b
push esi
call fcn.00408750
add esp, 4
test eax, eax
je 0x401a3a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a41
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x401a20
jmp 0x401a43
mov ebp, 0x1505
jmp 0x401a43
mov ebp, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x401a67
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401a84
inc ebx
dec edi
je 0x401a5b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a5b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a80
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408750
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a80
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00408770
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a80
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a5b
cmp dword [eax + 4], 3
jne 0x401a5b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a5b

Function at 0x401b20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x401c21
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401c21
push ebx
call fcn.00408750
add esp, 4
test eax, eax
je 0x401b7a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401b81
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b60
jmp 0x401b83
mov esi, 0x1505
jmp 0x401b83
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x401c21
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401bb4
inc ebp
dec ebx
je 0x401c1f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401c1f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401bb0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408750
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401bb0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408770
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401bb0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401c1f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401c21
mov edi, dword [eax + 8]
jmp 0x401c21
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x401d54
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d54
push ebx
call fcn.00408750
add esp, 4
test eax, eax
je 0x401caa
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401cb1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401c90
jmp 0x401cb3
mov esi, 0x1505
jmp 0x401cb3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x401d54
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401ce4
inc ebp
dec ebx
je 0x401d4f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401d4f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ce0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408750
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ce0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408770
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ce0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401d4f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x401d54
mov edi, dword [eax + 8]
jmp 0x401d54
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d60
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0x2e
push ebp
call fcn.004087c0
add esp, 8
test eax, eax
je 0x401dc4
mov esi, eax
jmp 0x401da4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.004087c0
add esp, 8
mov esi, eax
test eax, eax
je 0x401dc4
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.004017d0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401d90
cmp dword [eax + 4], 4
jne 0x401d90
mov edi, dword [eax + 8]
jmp 0x401d90
xor eax, eax
test edi, edi
je 0x401e2b
test ebp, ebp
je 0x401e2b
push ebp
call fcn.00408750
add esp, 4
test eax, eax
je 0x401e0b
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x401e12
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x401df0
jmp 0x401e14
mov esi, 0x1505
jmp 0x401e14
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [edi + 0x20]
lea ebx, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x401e33
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, esi
mov dword [esp], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jmp 0x401e54
inc ebx
dec ecx
je 0x401e29
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401e29
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x401e50
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.00408750
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e50
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00408770
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x401e50
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401e2b
Function at 0x401f50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x401fbd
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401fbd
push esi
call fcn.00408750
add esp, 4
test eax, eax
je 0x401f9a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401fa1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401f80
jmp 0x401fa3
mov ebx, 0x1505
jmp 0x401fa3
mov ebx, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
lea ebp, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x401fc5
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401fd4
inc ebp
dec edi
je 0x401fbb
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401fbb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401fd0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408750
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401fd0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408770
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401fd0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401fbd
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401fbd
Function at 0x4021e0
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 0x4022f2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022f2
cmp dword [esp + 0x2c], 0
je 0x4022f2
push esi
call fcn.00408750
add esp, 4
test eax, eax
je 0x40224a
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 0x402251
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402230
jmp 0x402253
mov ebx, 0x1505
jmp 0x402253
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 8], edx
jae 0x4022fa
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4022b7
call fcn.004023f0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022f2
push ecx
call fcn.00408750
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 8], eax
jae 0x40236d
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 edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402318
inc edi
dec esi
je 0x40226c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402271
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402310
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408750
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402310
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408770
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402310
mov eax, 0xffffffff
jmp 0x4022f2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402388
inc edi
dec esi
je 0x4022b2
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4022b7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402380
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408750
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402380
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408770
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402380
jmp 0x4022b7
Function at 0x402b40
Capabilities:
Compute adler32 checksum
Encode data using xor
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 0x402cd6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x402ccf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x402bd5
mov eax, dword [esp]
sub eax, dword [esp + 0xc]
add ebp, eax
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x402ccf
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 4], esi
jb 0x402c55
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
mov esi, edi
xor esi, eax
and edi, eax
lea esi, [esi + edi*2]
movzx eax, byte [ebp + edx + 1]
add eax, esi
add ecx, esi
movzx esi, byte [ebp + edx + 2]
add esi, eax
add ecx, eax
movzx eax, byte [ebp + edx + 3]
add eax, esi
add ecx, esi
movzx esi, byte [ebp + edx + 4]
add esi, eax
add ecx, eax
movzx eax, byte [ebp + edx + 5]
add eax, esi
add ecx, esi
movzx esi, byte [ebp + edx + 6]
add esi, eax
add ecx, eax
add ecx, esi
movzx edi, byte [ebp + edx + 7]
add edi, esi
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402bf0
add ebp, eax
mov esi, dword [esp + 4]
mov eax, ebx
sub eax, edx
jae 0x402b9d
mov dword [esp + 8], eax
mov esi, edx
and esi, 3
mov dword [esp + 0xc], ebx
mov eax, ebx
mov edx, ebp
je 0x402c8c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
movzx ebx, byte [edx]
add edi, ebx
add ecx, edi
inc edx
dec esi
jne 0x402c80
cmp dword [esp + 8], 0xfffffffc
ja 0x402b90
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x402ca0
jmp 0x402b90
shl ecx, 0x10
or ecx, edi
jmp 0x402cdb
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402d51
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402d53
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
mov ebp, eax
xor ebp, 0x3ffffff0
or eax, 0xf
and eax, ebp
mov ebp, edi
and ebp, 0xf
xor ebp, eax
xor ebx, dword [ebp*4 + 0x43e80c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43e80c]
inc esi
cmp edx, esi
jne 0x402d10
not eax
jmp 0x402d53
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408be0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x4470f4], edx
mov eax, 0xfffffd92
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x26f
mov dword [eax*4 + 0x447ab0], edx
test eax, eax
je 0x408c6f
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x447ab4], edx
add eax, 2
jmp 0x408bf0
mov dword [0x4470f0], 0x270
pop esi
ret

Function at 0x408c80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov eax, dword [0x4470f0]
cmp eax, 0x270
jne 0x408cdf
mov eax, 0xfffff640
mov edx, dword [0x4470f4]
nop
nop
nop
nop
nop
nop
nop
nop
and edx, 0x80000000
mov esi, dword [eax + 0x447ab8]
mov ecx, esi
and ecx, 0x7ffffffe
or ecx, edx
mov edx, esi
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x4480e8]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x448474], esi
add eax, 4
jne 0x408ca0
mov eax, 0x270
jmp 0x408cf5
cmp eax, 0x4e0
jb 0x408cf5
mov ecx, 0x4470f0
call fcn.00409090
mov eax, dword [0x4470f0]
lea ecx, [eax + 1]
mov dword [0x4470f0], ecx
mov eax, dword [eax*4 + 0x4470f4]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0x448474]
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
ret
Function at 0x409090
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push edi
push esi
mov edi, dword [ecx + 0x9c4]
mov eax, 0x3fe
nop
nop
and edi, 0x80000000
mov edx, dword [ecx + eax*4 - 0x630]
mov ebx, edx
and ebx, 0x7ffffffe
or ebx, edi
shr ebx, 1
mov esi, edx
and esi, 1
neg esi
and esi, 0x9908b0df
mov edi, esi
and edi, ebx
add esi, ebx
add edi, edi
sub esi, edi
xor esi, dword [ecx + eax*4]
mov edi, edx
mov dword [ecx + eax*4 - 0xff4], esi
inc eax
cmp eax, 0x4e1
jne 0x4090a0
mov edx, dword [ecx + 0xd50]
mov eax, 0x355
jmp 0x40911a
shr esi, 1
xor esi, dword [ecx + eax*4 - 0xd50]
xor esi, edi
mov dword [ecx + eax*4 - 0x9c4], esi
inc eax
cmp eax, 0x4e1
je 0x409144
mov edi, edx
and edi, 0x80000000
mov edx, dword [ecx + eax*4]
mov esi, edx
and esi, 0x7fffffff
or esi, edi
mov ebx, esi
xor ebx, 0xfffffffe
mov edi, esi
or edi, 1
and edi, ebx
je 0x409100
mov edi, 0x9908b0df
jmp 0x409100
mov esi, SysReAllocString
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
mov dword [ecx], 0
pop esi
pop edi
pop ebx
ret
Function at 0x409320
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 0x409460
mov edx, 0x1ff
nop
nop
nop
nop
nop
nop
nop
movzx ebx, ax
lea edi, [esi + 2]
cmp bx, 0x7f
ja 0x409370
lea eax, [ebp + 1]
mov byte [ebp], bl
jmp 0x409400
cmp ebx, 0x7ff
ja 0x4093a0
cmp edx, 2
jb 0x4093a0
mov eax, ebx
shr eax, 6
add al, 0xc0
mov byte [ebp], al
and bl, 0x3f
or bl, 0x80
lea eax, [ebp + 2]
mov byte [ebp + 1], bl
jmp 0x409400
mov eax, ebx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x40941a
cmp edx, 4
jb 0x40941a
movzx ecx, word [esi + 2]
add esi, 4
shl ebx, 0xa
lea eax, [ebx + ecx]
add eax, 0xfca02400
mov ebx, eax
shr ebx, 0x12
or 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 0x409460
test edx, edx
jne 0x409350
jmp 0x409460
movzx eax, ax
cmp eax, 0xdc00
jne 0x409428
mov esi, edi
jmp 0x409408
cmp edx, 3
jb 0x40945c
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [ebp], al
mov eax, ebx
shr eax, 6
mov ecx, eax
xor ecx, 0xc0
or eax, 0x3f
and eax, ecx
add al, 0x80
mov byte [ebp + 1], al
and bl, 0x3f
or bl, 0x80
lea eax, [ebp + 3]
mov byte [ebp + 2], bl
jmp 0x409400
mov eax, ebp
jmp 0x409400
mov esi, dword [esp + 0x420]
mov edx, dword [esp + 0x41c]
mov byte [ebp], 0
xor eax, eax
jmp 0x409488
mov byte [esp + eax + 0x204], bl
inc eax
movzx ecx, byte [esp + eax + 4]
mov bl, 0x2f
cmp ecx, 0x5c
je 0x409480
test ecx, ecx
je 0x40949c
mov ebx, ecx
jmp 0x409480
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.00404d60
add esp, 0x28
test eax, eax
setne al
add esp, 0x404
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40b6f0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov esi, esp
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0x3c
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov edx, 0xfffffffe
mov ecx, dword [0x4484ac]
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne case.default.0x40b79e
sar edx, 1
lea edi, [esi + 0x20]
push edi
push 0
push edx
push eax
call ecx
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x442168]
xor eax, eax
jmp 0x40bd85
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cb70
Capabilities:
Contain obfuscated stackstrings
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x244
mov dword [esp + 0x44], 0x719f0f43
mov dword [esp + 0x48], 0x75d973ea
mov dword [esp + 0x4c], 0x79da77d8
mov dword [esp + 0x50], 0x7d2b7bdb
mov dword [esp + 0x54], 0x61107f2b
mov dword [esp + 0x58], 0x65026330
mov dword [esp + 0x5c], 0x69df670c
mov dword [esp + 0x60], 0x6dc46bc3
mov dword [esp + 0x64], 0x51ff6fc8
mov dword [esp + 0x68], 0x55c753c9
mov dword [esp + 0x6c], 0x59185734
mov dword [esp + 0x70], 0x5d3a5bec
mov dword [esp + 0x74], 0x410e5f0f
mov dword [esp + 0x78], 0x4512432e
mov dword [esp + 0x7c], 0x49264719
mov dword [esp + 0x80], 0x4de14bf1
mov dword [esp + 0x84], 0xb1184fe2
mov dword [esp + 0x88], 0xb5efb3e4
mov dword [esp + 0x8c], 0xb92eb7d4
mov dword [esp + 0x90], 0xbdeebbee
mov dword [esp + 0x94], 0xa1debfd7
mov dword [esp + 0x98], 0xa532a3e3
mov dword [esp + 0x9c], 0xa90aa734
mov dword [esp + 0xa0], 0xad13ab0f
mov dword [esp + 0xa4], 0x910caf0b
mov dword [esp + 0xa8], 0x953993dd
mov dword [esp + 0xac], 0x99c79700
mov dword [esp + 0xb0], 0x9dcf9bcf
mov dword [esp + 0xb4], 0x81f09fc5
mov dword [esp + 0xb8], 0x85d483d5
mov dword [esp + 0xbc], 0x89ee87e4
mov dword [esp + 0xc0], 0x8dc28bc5
mov dword [esp + 0xc4], 0xf1c18f38
mov dword [esp + 0xc8], 0xf59ef3bc
mov dword [esp + 0xcc], 0xf95af794
mov dword [esp + 0xd0], 0xfd57fb53
mov dword [esp + 0xd4], 0xe19eff5b
mov dword [esp + 0xd8], 0xe545e3a9
mov dword [esp + 0xdc], 0xe94be741
mov dword [esp + 0xe0], 0xed81eb79
mov dword [esp + 0xe4], 0xd1abef8c
mov dword [esp + 0xe8], 0xd540d378
mov dword [esp + 0xec], 0xd979d745
mov dword [esp + 0xf0], 0xdd8bdb7f
mov dword [esp + 0xf4], 0xc18ddf8f
mov dword [esp + 0xf8], 0xc5acc39b
mov dword [esp + 0xfc], 0xc9a8c794
mov dword [esp + 0x100], 0xcda4cb98
mov dword [esp + 0x104], 0x31aecf9c
mov dword [esp + 0x108], 0x35913385
mov dword [esp + 0x10c], 0x39953792
mov dword [esp + 0x110], 0x3d913baa
mov dword [esp + 0x114], 0x21693f6d
mov dword [esp + 0x118], 0x257b2375
mov dword [esp + 0x11c], 0x2973274a
mov dword [esp + 0x120], 0x2d2a2b7e
mov eax, dword [0x4484a0]
xor ecx, ecx
xor edx, edx
nop
nop
movzx esi, byte [esp + edx + 0x44]
mov edi, edx
xor edi, 0xda1e09c3
mov ebx, ecx
and ebx, 0x78
sub ebx, edi
xor ebx, esi
mov esi, ebx
and esi, 0x4e
xor ebx, 0xce
lea ebx, [ebx + esi*2]
inc bl
mov byte [esp + edx + 0x44], bl
inc edx
add ecx, 2
cmp edx, 0xe0
jne 0x40cdc0
lea ecx, [esp + 0x44]
push 0
push 0
push 0
push 0
push ecx
call eax
mov ebp, eax
xor eax, eax
test ebp, ebp
setne al
mov eax, dword [eax*4 + 0x44245c]
mov ecx, dword [0x442464]
mov edx, ecx
and edx, 0x15bdaf5
add edx, edx
sub edx, ecx
add eax, edx
add eax, 0xfea4250b
jmp eax