joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
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 0x401f7d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401f7d
push esi
call fcn.00408880
add esp, 4
test eax, eax
je 0x401f5a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401f61
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401f40
jmp 0x401f63
mov ebx, 0x1505
jmp 0x401f63
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 0x401f85
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 0x401f94
inc ebp
dec edi
je 0x401f7b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401f7b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401f90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408880
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401f90
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004088a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401f90
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401f7d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401f7d

Function at 0x402070
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402199
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x40218d
cmp ecx, 5
je 0x402149
cmp ecx, 4
jne 0x402199
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x4020d3
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [section..data]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.00402070
add esp, 4
inc edi
cmp edi, dword [esi + 0x18]
jb 0x4020b0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [section..data]
add esp, 4
push dword [esi + 0xc]
call dword [section..data]
add esp, 4
push dword [esi + 0x10]
call dword [section..data]
add esp, 4
push dword [esi + 0x14]
call dword [section..data]
add esp, 4
push dword [esi + 8]
call dword [section..data]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x40218a
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x40217e
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.00402070
add esp, 4
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, dword [esi + 8]
jb 0x402160
push dword [esi + 4]
call dword [section..data]
add esp, 4
push esi
jmp 0x402190
push dword [eax + 8]
call dword [section..data]
add esp, 4
pop esi
pop edi
jmp dword [section..data]
Function at 0x4021b0
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 0x4022c2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022c2
cmp dword [esp + 0x2c], 0
je 0x4022c2
push esi
call fcn.00408880
add esp, 4
test eax, eax
je 0x40221a
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 0x402221
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402200
jmp 0x402223
mov ebx, 0x1505
jmp 0x402223
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 0x4022ca
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402287
call fcn.004023c0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022c2
push ecx
call fcn.00408880
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 0x40233d
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 0x4022e8
inc edi
dec esi
je 0x40223c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402241
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4022e0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408880
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4022e0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.004088a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4022e0
mov eax, 0xffffffff
jmp 0x4022c2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402358
inc edi
dec esi
je 0x402282
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402287
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402350
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408880
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402350
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.004088a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402350
jmp 0x402287
Function at 0x402af0
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 0x402ca6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x402c9f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x402b85
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
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 0x402c9f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x402c05
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
mov edi, eax
xor edi, esi
and eax, esi
lea eax, [edi + eax*2]
add ecx, eax
movzx esi, byte [ebp + edx + 4]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 5]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 6]
add esi, eax
add ecx, esi
movzx edi, byte [ebp + edx + 7]
add edi, esi
lea eax, [edx + 8]
add ecx, edi
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402ba0
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x402b4d
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x402c50
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x402c30
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402b40
jmp 0x402c5f
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402b40
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
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 0x402c70
jmp 0x402b40
shl ecx, 0x10
or ecx, edi
jmp 0x402cab
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc0
Capabilities:
Encode data using xor

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

Disassembly:
push edi
push esi
mov edx, dword [esp + 0xc]
mov dword [0x44a77c], edx
mov eax, 1
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edx
shr esi, 0x1e
mov edi, esi
and edi, edx
add esi, edx
add edi, edi
sub esi, edi
imul edx, esi, 0x6c078965
lea esi, [ecx + edx]
inc esi
mov dword [ecx*4 + 0x44a780], esi
cmp ecx, 0x26e
je 0x408e96
mov edi, esi
shr edi, 0x1e
and edi, esi
add edi, edi
add edx, eax
mov esi, edx
shr esi, 0x1e
add esi, edx
sub esi, edi
imul edx, esi, 0x6c078965
add edx, ecx
add edx, 2
mov dword [ecx*4 + 0x44a784], edx
add eax, 2
add ecx, 2
jmp 0x408e40
mov dword [0x44a778], 0x270
pop esi
pop edi
ret

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

Disassembly:
push esi
mov eax, dword [0x44a778]
cmp eax, 0x270
jne 0x408f0f
mov eax, 0xfffff640
mov edx, dword [0x44a77c]
nop
nop
nop
nop
nop
nop
nop
nop
and edx, 0x80000000
mov esi, dword [eax + 0x44b140]
mov ecx, esi
and ecx, 0x7ffffffe
or ecx, edx
mov edx, esi
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x44b770]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x44bafc], esi
add eax, 4
jne 0x408ed0
mov eax, 0x270
jmp 0x408f25
cmp eax, 0x4e0
jb 0x408f25
mov ecx, 0x44a778
call fcn.004092b0
mov eax, dword [0x44a778]
lea ecx, [eax + 1]
mov dword [0x44a778], ecx
mov eax, dword [eax*4 + 0x44a77c]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0x44bafc]
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 0x4092b0
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 esi, eax
and esi, 0x70
mov edi, eax
xor edi, 0x270
lea edi, [edi + esi*2]
mov ebx, dword [ecx + edi*4 + 4]
mov esi, ebx
xor esi, 0x7fffffff
or ebx, 0x80000000
and ebx, esi
mov esi, dword [ecx + edi*4 + 8]
and esi, edx
or esi, ebx
mov ebx, esi
shr ebx, 1
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, ebx
mov edi, dword [ecx + edi*4 + 0x638]
mov ebx, esi
and ebx, edi
add esi, edi
add ebx, ebx
sub esi, ebx
mov dword [ecx + eax*4 + 4], esi
inc eax
cmp eax, 0xe3
jne 0x4092c0
mov esi, dword [ecx + 0xd50]
mov eax, 0x355
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 0x409330
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 0x409450
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, ecx
mov dword [ecx + 4], 0
lea eax, [ecx + 8]
mov dword [esp + 4], eax
mov dword [ecx + 8], 0
lea edi, [ecx + 0x10]
xor ebx, ebx
xor eax, eax
mov ecx, 0x13
mov dword [esp + 8], edi
rep stosd dword es:[edi], eax
mov dword [edx + 0x80], 0
mov dword [esp + 0xc], edx
lea esi, [edx + 0x60]
call fcn.00408eb0
mov ecx, eax
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
and edx, 0xfffffffc
lea eax, [edx + edx*2]
neg eax
lea edi, [ecx + eax]
add edi, 8
mov ebp, 0x38e38e39
mov dword [esp], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.00408eb0
mov ecx, eax
imul ebp
mov eax, edx
shr eax, 0x1f
sar edx, 3
add edx, eax
shl edx, 2
lea eax, [edx + edx*8]
neg eax
movzx eax, byte [ecx + eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esi], al
inc esi
mov eax, ebx
and eax, 1
xor ebx, 1
lea ebx, [ebx + eax*2]
cmp ebx, edi
jb 0x4094c0
mov byte [esi], 0
mov esi, dword [esp + 0xc]
movzx eax, byte [esp + 0x24]
mov byte [esi], al
xor eax, eax
mov edi, dword [esp + 4]
mov ecx, 0x16
rep stosd dword es:[edi], eax
xor eax, eax
mov edi, dword [esp]
xor ecx, ecx
rep stosw word es:[edi], ax
mov dword [esi + 8], 9
push 0x400
push 0
push dword [esp + 0x10]
call fcn.00404b50
add esp, 0xc
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40b250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
movzx ebx, byte [edx]
test bl, bl
je 0x40b4a5
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
dec edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test esi, esi
je 0x40b28c
cmp edx, esi
jae 0x40b4a5
test edi, edi
je 0x40b4a5
movzx ebp, bl
test bl, bl
js 0x40b2c0
inc edx
lea ecx, [eax + 2]
mov word [eax], bp
mov esi, ecx
sub esi, eax
sar esi, 1
sub edi, esi
mov eax, ecx
mov esi, dword [esp + 0x24]
mov bh, byte [edx]
mov bl, bh
test bh, bh
jne 0x40b280
jmp 0x40b4a5
mov ecx, ebp
and ecx, 0xffffffe0
cmp ecx, 0xc0
jne 0x40b305
cmp bl, 0xc2
jb 0x40b2b0
movzx esi, byte [edx + 1]
mov ecx, esi
xor ecx, 0xffffff3f
mov ebx, esi
or ebx, 0xc0
and ebx, ecx
cmp ebx, 0x80
jne 0x40b480
and ebp, 0x1f
shl ebp, 6
add edx, 2
and esi, 0x3f
jmp 0x40b3b1
mov ecx, ebp
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x40b333
movzx ecx, byte [edx + 1]
cmp bl, 0xed
je 0x40b36b
cmp ebp, 0xe0
jne 0x40b374
mov ebx, ecx
add bl, 0x40
cmp bl, 0xe0
jb 0x40b2ac
jmp 0x40b374
mov ecx, ebp
and ecx, 0xfffffff8
cmp ecx, 0xf0
jne 0x40b486
cmp bl, 0xf4
ja 0x40b2b0
movzx ecx, byte [edx + 1]
je 0x40b3be
cmp ebp, 0xf0
jne 0x40b3c7
mov bh, cl
add bh, 0x40
cmp bh, 0xd0
jb 0x40b2ac
jmp 0x40b3c7
cmp cl, 0x9f
ja 0x40b2ac
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40b480
mov bh, byte [edx + 2]
movzx esi, bh
mov dword [esp], esi
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40b48d
shl ebp, 0xc
and ecx, 0x3f
shl ecx, 6
add edx, 3
mov esi, dword [esp]
and esi, 0x3f
or esi, ecx
or esi, ebp
lea ecx, [eax + 2]
mov word [eax], si
jmp 0x40b2a2
cmp cl, 0x8f
ja 0x40b2ac
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40b480
mov bh, byte [edx + 2]
movzx ebp, bh
mov esi, ebp
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40b48d
mov bh, byte [edx + 3]
movzx esi, bh
mov dword [esp], esi
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40b499
and bl, 7
movzx esi, bl
shl esi, 0x12
and ecx, 0x3f
shl ecx, 0xc
or ecx, esi
and ebp, 0x3f
shl ebp, 6
or ebp, ecx
add edx, 4
mov ecx, ebp
and ecx, 0x1ff800
cmp ecx, 0xd800
je 0x40b2ac
mov esi, dword [esp]
and esi, 0x3f
or esi, ebp
cmp esi, 0x10000
jb 0x40b2ac
cmp edi, 2
jb 0x40b486
add ebp, 0xf0000
shr ebp, 0xa
and ebp, 0x3ff
or ebp, 0xd800
mov word [eax], bp
and esi, 0x3ff
or esi, 0xdc00
lea ecx, [eax + 4]
mov word [eax + 2], si
jmp 0x40b2a2
inc edx
jmp 0x40b2ac
mov ecx, eax
jmp 0x40b2a2
add edx, 2
mov esi, dword [esp + 0x24]
jmp 0x40b2b2
add edx, 3
mov esi, dword [esp + 0x24]
jmp 0x40b2b2
mov word [eax], 0
sub eax, dword [esp + 0x18]
sar eax, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cc80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x240
mov edi, dword [esp + 0x254]
mov dword [esp + 0x40], 0x219727f3
mov dword [esp + 0x44], 0x3d9923aa
mov dword [esp + 0x48], 0x398a3f88
mov dword [esp + 0x4c], 0x35cb3b9b
mov dword [esp + 0x50], 0x31c037fb
mov dword [esp + 0x54], 0xdd233c0
mov dword [esp + 0x58], 0x9a70ff4
mov dword [esp + 0x5c], 0x5bc0bb3
mov dword [esp + 0x60], 0x1b707b8
mov dword [esp + 0x64], 0x1d8f0389
mov dword [esp + 0x68], 0x19c81ffc
mov dword [esp + 0x6c], 0x15fa1bb4
mov dword [esp + 0x70], 0x11e617e7
mov dword [esp + 0x74], 0xede213e6
mov dword [esp + 0x78], 0xe90eef29
mov dword [esp + 0x7c], 0xe551eb41
mov dword [esp + 0x80], 0xe128e752
mov dword [esp + 0x84], 0xfd27e32c
mov dword [esp + 0x88], 0xf976ff1c
mov dword [esp + 0x8c], 0xf536fb36
mov dword [esp + 0x90], 0xf116f70f
mov dword [esp + 0x94], 0xcd42f333
mov dword [esp + 0x98], 0xc97acf7c
mov dword [esp + 0x9c], 0xc563cb77
mov dword [esp + 0xa0], 0xc164c77b
mov dword [esp + 0xa4], 0xdd79c315
mov dword [esp + 0xa8], 0xd92fdf50
mov dword [esp + 0xac], 0xd517db17
mov dword [esp + 0xb0], 0xd120d71d
mov dword [esp + 0xb4], 0xad1cd31d
mov dword [esp + 0xb8], 0xa956af4c
mov dword [esp + 0xbc], 0xa572ab7d
mov dword [esp + 0xc0], 0xa171a708
mov dword [esp + 0xc4], 0xbd56a374
mov dword [esp + 0xc8], 0xb90abf5c
mov dword [esp + 0xcc], 0xb50fbb03
mov dword [esp + 0xd0], 0xb156b70b
mov dword [esp + 0xd4], 0x8d0db369
mov dword [esp + 0xd8], 0x893b8f31
mov dword [esp + 0xdc], 0x85718b39
mov dword [esp + 0xe0], 0x815b8764
mov dword [esp + 0xe4], 0x9d308338
mov dword [esp + 0xe8], 0x99299f2d
mov dword [esp + 0xec], 0x956b9b27
mov dword [esp + 0xf0], 0x91659767
mov dword [esp + 0xf4], 0x6d64935b
mov dword [esp + 0xf8], 0x69986f9c
mov dword [esp + 0xfc], 0x659c6b98
mov dword [esp + 0x100], 0x61866794
mov dword [esp + 0x104], 0x7dc163cd
mov dword [esp + 0x108], 0x79dd7fc2
mov dword [esp + 0x10c], 0x75c17bca
mov dword [esp + 0x110], 0x71b97785
mov dword [esp + 0x114], 0x4dbb73bd
mov dword [esp + 0x118], 0x49834fba
mov dword [esp + 0x11c], 0x454a4b86
mov byte [esp + 0x122], 0
mov word [esp + 0x120], 0
mov eax, dword [0x44bb30]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x40]
lea edx, [ecx + esi]
lea ebx, [ecx + 0x49]
and ebx, esi
add ebx, ebx
sub edx, ebx
add dl, 0xdc
mov byte [esp + ecx + 0x40], dl
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
cmp ecx, 0xe3
jb 0x40cef0
lea esi, [esp + 0x40]
push 0
push 0
push 0
push 0
push esi
call eax
xor ecx, ecx
mov dword [esp + 8], eax
test eax, eax
setne cl
mov eax, dword [ecx*4 + 0x44527c]
mov ecx, 0x308fa885
xor ecx, dword [0x445284]
add eax, ecx
inc eax
jmp eax
Function at 0x413be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + edi + 2], 0
lea edi, [edi + 2]
jne 0x413c00
mov esi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x413c20
sar edi, 1
sar eax, 1
add eax, edi
inc eax
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
test eax, eax
jns 0x413c48
mov eax, 0xffffffff
jmp 0x413c4a
add eax, eax
push eax
call fcn.00408770
add esp, 4
movzx ecx, word [esi]
mov ebx, eax
test cx, cx
je 0x413c81
add esi, 2
mov ebx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x413c70
mov word [ebx], 0x5c
add ebx, 2
movzx ecx, word [ebp]
test cx, cx
je 0x413cb1
lea edx, [ebp + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x413ca0
mov word [ebx], 0
lea ecx, [esp + 8]
push 0x60
push 3
push 0x120089
push ecx
mov dword [esp + 0x20], eax
push eax
call fcn.0043f4c0
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x4456f8]
Function at 0x413f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x1278
call fcn.00408740
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 0x413f50
sar esi, 1
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push esi
push eax
push 0
call dword [0x44ce7c]
mov ebx, dword [esp + 0x30]
mov edi, 0xffffffff
test ebx, ebx
jns 0x413f84
mov eax, 0xffffffff
jmp 0x413f87
lea eax, [ebx + ebx]
push eax
call fcn.00408770
add esp, 4
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x2c], eax
push eax
push esi
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push 0
call dword [0x44ce7c]
mov eax, dword [esp + 0x30]
mov ecx, eax
add ecx, 0xd
js 0x413fbc
lea edi, [eax*2 + 0x1a]
push edi
call fcn.00408770
add esp, 4
mov dword [esp + 0x274], 0x17e219fc
mov dword [esp + 0x278], 0x139d15f5
mov dword [esp + 0x27c], 0xf2e119c
mov dword [esp + 0x280], 0xb970de6
mov dword [esp + 0x284], 0x7890986
mov dword [esp + 0x288], 0x391059d
mov dword [esp + 0x28c], 0x3f3e0192
xor edi, edi
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edi
and esi, 0xc
mov edx, ecx
xor edx, 0xc6
add edx, esi
xor dl, byte [esp + ecx + 0x274]
add dl, 0x22
mov byte [esp + ecx + 0x274], dl
inc ecx
add edi, 2
cmp ecx, 0x1c
jne 0x414020
mov edi, dword [esp + 0x24]
movzx ecx, word [edi]
mov esi, eax
test cx, cx
je 0x414071
lea edx, [edi + 2]
mov esi, eax
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x414060
mov word [esi], 0
movzx ecx, word [esp + 0x274]
test cx, cx
je 0x4140a1
lea edx, [esp + 0x276]
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x414090
mov word [esi], 0
lea ecx, [esp + 0x138]
push 0x60
push 3
push 0x120089
push ecx
mov dword [esp + 0x14], eax
push eax
call fcn.0043f4c0
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x445ba4]