joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b551
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
lea edi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, esi
ror eax, 8
mov esi, dword [esp + 0x28]
add eax, edx
ror esi, 8
xor eax, edi
add esi, edi
rol edx, 3
xor esi, ebx
rol edi, 3
xor edx, eax
mov dword [esp + 0x28], ebp
xor edi, esi
mov ebp, ecx
inc ebx
cmp ebx, 0x1b
jb 0x41b582
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x41b5b4
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov edx, dword [esp + 0x10]
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
test edx, edx
je 0x41b6b9
xor eax, eax
lea ecx, [ebx + 0xf]
inc eax
mov dword [esp + 0x2c], ecx
sub eax, ebx
push esi
mov dword [esp + 0xc], eax
push edi
lea eax, [esp + 0x14]
cmp eax, ecx
ja 0x41b5eb
lea eax, [esp + 0x23]
mov esi, ebx
lea edi, [esp + 0x14]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + ecx*4]
xor dword [esp + ecx*4 + 0x14], eax
inc ecx
cmp ecx, 4
jb 0x41b5fb
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], 0x10
add ecx, edi
add eax, esi
rol edi, 5
xor edi, ecx
rol esi, 8
xor esi, eax
rol ecx, 0x10
add eax, edi
add ecx, esi
rol edi, 7
rol esi, 0xd
xor edi, eax
xor esi, ecx
rol eax, 0x10
sub dword [esp + 0x30], 1
jne 0x41b620
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + ecx*4]
xor dword [esp + ecx*4 + 0x14], eax
inc ecx
cmp ecx, 4
jb 0x41b65f
push 0x10
pop esi
cmp edx, esi
mov ecx, edx
cmova ecx, esi
test ecx, ecx
je 0x41b68f
lea edi, [esp + 0x14]
mov esi, ebp
sub edi, ebp
mov ebx, ecx
mov al, byte [edi + esi]
xor byte [esi], al
inc esi
sub ebx, 1
jne 0x41b684
mov ebx, dword [esp + 0x10]
sub edx, ecx
add ebp, ecx
mov ecx, dword [esp + 0x34]
add byte [ecx], 1
jne 0x41b6a8
dec ecx
lea eax, [ebx + ecx]
test eax, eax
jg 0x41b69b
mov ebx, dword [esp + 0x2c]
lea ecx, [ebx + 0xf]
test edx, edx
jne 0x41b5df
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x41b6bf
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
and dword [esp + 0x10], 0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov al, byte [ecx]
push esi
push edi
mov byte [ebp], al
or edi, 0xffffffff
lea eax, [ebp + 1]
xor esi, esi
mov dword [esp + 0x18], eax
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.0041b862
pop ecx
test eax, eax
je 0x41b836
lea eax, [esp + 0x14]
push eax
call fcn.0041b862
test eax, eax
lea eax, [esp + 0x18]
pop ecx
push eax
je 0x41b795
call fcn.0041b862
pop ecx
test eax, eax
je 0x41b759
push 4
xor esi, esi
pop ebx
lea eax, [esp + 0x14]
push eax
call fcn.0041b862
pop ecx
lea esi, [eax + esi*2]
sub ebx, 1
jne 0x41b727
mov edx, dword [esp + 0x18]
test esi, esi
je 0x41b74c
mov eax, edx
sub eax, esi
mov al, byte [eax]
mov byte [edx], al
jmp 0x41b74f
mov byte [edx], 0
mov ebx, dword [esp + 0x10]
inc edx
jmp 0x41b848
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx edi, byte [eax]
inc eax
mov ecx, edi
mov dword [esp + 0x14], eax
and ecx, 1
add ecx, 2
shr edi, 1
je 0x41b789
mov esi, edx
sub esi, edi
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
sub ecx, 1
jne 0x41b779
jmp 0x41b82d
xor ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x41b831
call fcn.0041b899
mov edx, eax
pop ecx
test esi, esi
jne 0x41b7cc
cmp edx, 2
jne 0x41b7cc
lea eax, [esp + 0x14]
push eax
call fcn.0041b899
mov edx, dword [esp + 0x1c]
mov esi, eax
pop ecx
test esi, esi
je 0x41b831
mov ecx, edx
sub ecx, edi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
sub esi, 1
jne 0x41b7bf
jmp 0x41b82d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
xor esi, 1
sub edx, esi
shl edx, 8
movzx edi, byte [ecx]
add edi, 0xfffffe00
add edi, edx
inc ecx
push eax
mov dword [esp + 0x18], ecx
call fcn.0041b899
pop ecx
mov ecx, eax
cmp edi, 0x7d00
jb 0x41b7fe
inc ecx
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
cmp edi, 0x500
cmovb eax, ecx
cmp edi, 0x80
lea esi, [eax + 2]
cmovae esi, eax
test esi, esi
je 0x41b831
mov ecx, edx
sub ecx, edi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
sub esi, 1
jne 0x41b822
mov dword [esp + 0x18], edx
xor esi, esi
inc esi
jmp 0x41b84e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x41b6f1
pop edi
pop esi
sub edx, ebp
pop ebp
mov eax, edx
pop ebx
add esp, 0x14
ret
Function at 0x68201efb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x10
test edx, edx
je 0x68201f15
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fflush
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x6820352f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
sub esp, 0x1c
mov dword [esp], 2
call dword [0x6820f0b4]
mov dword [esp + 8], edi
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x68207d9c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.6820e70c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x682109fc
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.6820e70c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x68208690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x682086af
mov eax, 0
jmp 0x682086f3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x682086d2
mov eax, 0
jmp 0x682086f3
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x682086ee
mov eax, 0
jmp 0x682086f3
mov eax, 1
leave
ret

Function at 0x682086f5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x68208754
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x6820874c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x6820874c
mov eax, dword [ebp - 4]
jmp 0x68208768
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x68208729
mov eax, 0
leave
ret
Function at 0x45ca00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x435015
lea edi, [esi - 0x34015]
push edi
jmp 0x45ca1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45ca21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ca10
mov eax, 1
add ebx, ebx
jne 0x45ca33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45ca28
jne 0x45ca44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ca28
xor ecx, ecx
sub eax, 3
jb 0x45ca58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45caca
mov ebp, eax
add ebx, ebx
jne 0x45ca63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45ca70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ca94
inc ecx
add ebx, ebx
jne 0x45ca80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45ca75
jne 0x45ca91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ca75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45caa5
jmp 0x45ca16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cab4
add edi, ecx
jmp 0x45ca16
pop esi
mov edi, esi
mov ecx, 0x17
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45cad2
cmp byte [edi], 0xe
jne 0x45cad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45cad7
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cb46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c244]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c318]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45cb04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c320]
or eax, eax
je 0x45cb40
mov dword [ebx], eax
add ebx, 4
jmp 0x45cb21
call dword [esi + 0x5c31c]
mov ebp, dword [esi + 0x5c324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45cb7a
sub esp, 0xffffff80
jmp 0x433fa0
Function at 0x10001400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov si, word [ebp + 0x14]
xor ecx, ecx
xor al, al
cmp cx, si
jae 0x1000143e
push ebx
push edi
movzx edi, word [ebp + 0xc]
add edi, dword [ebp + 8]
nop word [eax + eax]
mov ebx, dword [ebp + 0x10]
movzx edx, al
inc al
mov cl, byte [edi + edx]
xor cl, byte [edx + ebx]
mov ebx, dword [ebp + 0x18]
mov byte [edx + ebx], cl
movzx ecx, al
cmp cx, si
jb 0x10001420
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x10001450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
movzx eax, byte [esi + 0xf]
mov cl, byte [esi]
mov byte [esi], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xf], cl
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xc]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xc], cl
mov cl, byte [esi + 4]
mov byte [esi + 4], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xb], cl
mov cl, byte [esi + 5]
mov byte [esi + 5], al
movzx eax, byte [esi + 9]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 8]
mov byte [esi + 9], cl
mov cl, byte [esi + 7]
mov byte [esi + 7], al
push esi
mov byte [esi + 8], cl
call fcn.10001000
movzx eax, byte [esi + 0xf]
add esp, 0xc
mov cl, byte [esi]
mov byte [esi], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xf], cl
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xc]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xc], cl
mov cl, byte [esi + 4]
mov byte [esi + 4], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xb], cl
mov cl, byte [esi + 5]
mov byte [esi + 5], al
movzx eax, byte [esi + 9]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 8]
mov byte [esi + 9], cl
mov cl, byte [esi + 7]
mov byte [esi + 7], al
mov byte [esi + 8], cl
mov cl, byte [ebp + 0x14]
test cl, cl
je 0x10001558
mov eax, dword [ebp + 0x10]
sub esi, eax
push edi
mov edi, dword [ebp + 0x18]
sub edi, eax
movzx edx, cl
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [edi + eax - 1], cl
sub edx, 1
jne 0x10001545
pop edi
pop esi
pop ebp
ret
Function at 0x100016c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov eax, 0
push ebx
mov ebx, ecx
push esi
shr ebx, 1
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ebx
je 0x100016f8
lea esi, [ecx - 1]
add esi, edi
mov cl, byte [esi]
lea esi, [esi - 1]
mov dl, byte [eax + edi]
mov byte [eax + edi], cl
inc eax
mov byte [esi + 1], dl
cmp eax, ebx
jb 0x100016e2
mov ecx, dword [ebp + 0xc]
lea esi, [ecx*8]
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
jle 0x10001771
dec esi
nop dword [eax]
mov ecx, esi
and ecx, 0x80000007
jns 0x1000171f
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, esi
mov bl, 1
cdq
and edx, 7
shl bl, cl
add eax, edx
mov edx, dword [ebp - 4]
sar eax, 3
movzx eax, al
lea ecx, [edx + edx]
test byte [eax + edi], bl
mov ebx, 0
mov edi, dword [ebp - 4]
movzx eax, cx
setne bl
mov edx, eax
xor al, 7
movzx ecx, al
shr edx, 8
lea eax, [edi + edi]
mov edi, dword [ebp + 8]
cmp ebx, edx
movzx eax, al
cmove ecx, eax
sub esi, 1
movzx eax, cl
mov dword [ebp - 4], eax
jns 0x10001710
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
je 0x10001796
mov eax, dword [ebp + 8]
dec edi
add edi, ecx
nop dword [eax]
mov cl, byte [edi]
lea edi, [edi - 1]
mov dl, byte [esi + eax]
mov byte [esi + eax], cl
inc esi
mov byte [edi + 1], dl
cmp esi, ebx
jb 0x10001780
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001a028]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1001a7b0], 2
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x9000
mov dword [ebp - 0x28], 0
je 0x10002291
push 0
push 1
push 1
push edi
call dword [0x1003c83c]
add esp, 0x10
cmp ax, bx
jne 0x100022bb
mov esi, dword [section..rdata]
push 0x3e8
call esi
push 1
push 1
push 1
push edi
call dword [0x1003c83c]
add esp, 0x10
cmp ax, bx
jne 0x100022bb
push 0x1f4
call esi
push 0
push 1
push 8
push 0xc0
push edi
call dword [0x1003c844]
add esp, 0x14
cmp ax, bx
jne 0x100022bb
push 0x3e8
lea eax, [ebp - 0x28]
mov byte [ebp - 0x1c], 1
push eax
push 5
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10002730
add esp, 0x1c
cmp ax, 1
jne 0x100022a5
cmp byte [ebp - 0x14], al
jne 0x100022a5
mov eax, dword [str.NNYH]
lea edx, [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov al, byte [0x1001379c]
mov byte [ebp - 8], al
lea esi, [ecx + 4]
mov al, byte [ebp + ecx - 0x13]
lea edx, [edx + 1]
xor al, byte [edx - 1]
ror al, 2
mov byte [ebp + ecx - 0x2c], al
inc ecx
sub esi, 1
jne 0x10002230
lea eax, [ebp - 0x2c]
xor cl, cl
mov edx, 4
xor cl, byte [eax]
lea eax, [eax + 1]
sub edx, 1
jne 0x10002251
push 0x3e8
lea eax, [ebp - 0x28]
rol cl, 1
push eax
push 2
lea eax, [ebp - 0x24]
mov byte [0x1003b7e0], cl
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.10002730
add esp, 0x1c
cmp ax, 1
jne 0x100022a5
mov dword [0x1001a7b0], 2
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe022
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008251
mov esp, ebp
pop ebp
ret
Function at 0x100022e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, ecx
mov edx, dword [ebp + 0x14]
push ebx
mov bl, byte [ebp + 0x18]
mov bh, dl
push esi
mov esi, dword [ebp + 0xc]
add bh, 4
shr eax, 0x10
push edi
movzx edi, dx
mov byte [esi + 2], al
mov eax, ecx
shr eax, 8
mov byte [esi + 3], al
lea eax, [esi + 4]
mov byte [esi], 0xac
mov byte [esi + 1], bh
mov byte [eax], cl
mov dword [ebp + 0xc], edi
push edi
push dword [ebp + 0x10]
test bl, bl
jne 0x10002337
lea eax, [esi + 5]
push eax
call fcn.10008f00
movzx eax, byte [esi + 1]
add esp, 0xc
inc ax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp bl, 4
jae 0x1000239d
lea eax, [esi + 5]
push eax
call fcn.10008f00
add esp, 0xc
cmp bl, 3
je 0x1000236d
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 4]
push ecx
inc al
movzx eax, al
push eax
push ecx
push 0x1003b7f4
push 0x1003b7e4
call fcn.10001450
add esp, 0x14
cmp bl, 2
je 0x1000237b
cmp bl, 3
jne 0x10002417
inc byte [esi + 1]
lea eax, [edi + 1]
push eax
lea ebx, [esi + 4]
push ebx
call fcn.100016c0
add esp, 8
mov byte [edi + esi + 5], al
movzx eax, byte [esi + 1]
inc ax
pop edi
pop esi
pop ebx
pop ebp
ret
dec bh
push eax
mov byte [esi + 1], bh
call fcn.10008f00
add esp, 0xc
cmp bl, 0x10
jne 0x10002417
mov eax, dword [ebp + 0x14]
inc byte [esi + 1]
inc eax
movzx ecx, ax
mov eax, 0xffff
test cx, cx
je 0x10002413
xor edi, edi
mov dword [ebp + 0x14], ecx
nop dword [eax]
mov byte [ebp + 0x19], al
shr eax, 8
mov byte [ebp + 0x18], al
movzx eax, byte [esi + edi + 4]
inc edi
xor ax, word [ebp + 0x18]
movzx ecx, ax
mov eax, ecx
shr eax, 4
and eax, 0xf
xor ecx, eax
mov eax, ecx
shl eax, 0xc
xor ecx, eax
movzx edx, cl
shl edx, 5
movzx eax, dx
xor edx, ecx
mov dword [ebp + 0x18], eax
movzx eax, dx
cmp edi, dword [ebp + 0x14]
jb 0x100023d0
mov edi, dword [ebp + 0xc]
movzx eax, dx
mov byte [edi + esi + 5], al
movzx eax, byte [esi + 1]
pop edi
pop esi
inc ax
pop ebx
pop ebp
ret
Function at 0x10002730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, word [ebp + 0x18]
push ebx
mov ebx, dword [0x1001a020]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
xor eax, eax
push edi
movzx edi, word [ebp + 0x20]
mov word [esi], ax
mov eax, dword [ebp + 0x10]
movzx eax, ax
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebx + 0x1003b830]
push eax
call fcn.10008f00
mov eax, dword [ebp - 8]
add esp, 0xc
mov dl, byte [0x1003b7e0]
add ebx, eax
cmp dword [0x1001a7b0], 2
mov dword [0x1001a020], ebx
jne 0x100027a9
xor ecx, ecx
test eax, eax
je 0x100027a9
mov edi, dword [ebp + 0xc]
mov esi, eax
mov al, byte [ecx + edi]
rol al, 1
xor al, dl
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x10002793
mov esi, dword [ebp + 0x1c]
movzx edi, word [ebp + 0x20]
test edi, edi
je 0x10002829
movzx edx, word [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov cx, word [ebp - 4]
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x18], 3
cmp edi, 3
movzx eax, di
cmovg eax, dword [ebp + 0x18]
movzx eax, ax
push eax
lea eax, [ebp + 0x20]
push eax
push dword [ebp - 4]
movzx eax, cx
mov ecx, edx
sub ecx, eax
add ecx, ebx
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1003c84c]
mov ax, word [ebp + 0x20]
add esp, 0x1c
mov cx, word [ebp - 4]
sub edi, 3
add word [esi], ax
sub cx, ax
mov word [ebp - 4], cx
mov dword [ebp + 0x10], 0
test cx, cx
je 0x1000281d
test edi, edi
jle 0x1000281d
mov edx, dword [ebp + 0x1c]
jmp 0x100027c2
mov ebx, dword [0x1001a020]
mov dl, byte [0x1003b7e0]
cmp dword [0x1001a7b0], 2
mov edi, dword [ebp + 0x14]
jne 0x10002854
test esi, esi
je 0x10002854
xor eax, eax
xor ecx, ecx
cmp ax, word [esi]
jae 0x10002854
mov al, byte [ecx + edi]
ror al, 1
xor al, dl
mov byte [ecx + edi], al
inc ecx
movzx eax, word [esi]
cmp ecx, eax
jl 0x10002842
movzx eax, word [esi]
push eax
lea eax, [ebx + 0x1003b830]
push edi
push eax
call fcn.10008f00
movzx eax, word [esi]
add esp, 0xc
add ebx, eax
mov eax, 1
mov dword [0x1001a020], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100032e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001a028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor al, al
nop word [eax + eax]
movzx ecx, al
cmp ecx, 0x1a
jae 0x100033a2
inc al
mov byte [ebp + ecx - 0x28], 0
cmp al, 0x19
jb 0x10003300
mov ecx, dword [ebp + 0xc]
mov edx, 0xe
mov byte [ebp - 0x28], 0x13
mov eax, dword [ecx + 4]
mov dword [ebp - 0x27], eax
movzx eax, word [ecx + 2]
mov word [ebp - 0x21], ax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1f], eax
movzx eax, word [ecx]
xor cl, cl
mov word [ebp - 0x1b], ax
lea eax, [ebp - 0x27]
xor cl, byte [eax]
lea eax, [eax + 1]
sub edx, 1
jne 0x10003343
push 0x3e8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x10], cl
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 0x19
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.10002730
add esp, 0x1c
cmp word [ebp - 0x2c], 1
pop esi
jne 0x1000338f
cmp byte [ebp - 0xc], 0x13
jne 0x1000338f
mov eax, 0x9000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xe026
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
call fcn.10008383
int3

Function at 0x100035b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001a028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x25], 0
call fcn.10002150
movzx ebx, ax
add esp, 4
cmp ebx, 0x9000
jne 0x100036aa
push esi
call fcn.10001d70
mov ebx, eax
add esp, 4
cmp ebx, 0x9000
jne 0x100036aa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x25]
push eax
push esi
call fcn.10002510
mov ebx, eax
add esp, 0xc
cmp ebx, 0x9000
je 0x1000362d
mov ebx, 0xe025
jmp 0x100036aa
movzx ecx, byte [ebp - 0x25]
lea edx, [ebp - 0xb]
mov eax, dword [0x1001a7cc]
mov esi, 3
lea ecx, [ecx*4 + 0x1002a7e1]
add ecx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor byte [edx], al
lea edx, [edx + 1]
sub esi, 1
jne 0x10003647
xor al, al
push edi
nop dword [eax]
xor esi, esi
lea edi, [ebp - 9]
cmp al, 0x10
jae 0x1000367f
mov cl, byte [edi]
inc esi
movzx edx, al
dec edi
inc al
mov byte [ebp + edx - 0x24], cl
cmp esi, 3
jl 0x10003665
cmp al, 0x10
jb 0x10003660
mov eax, dword [0x1001a7dc]
movups xmm1, xmmword [ebp - 0x24]
pop edi
movups xmm2, xmmword [eax + 0x1002a7e0]
mov eax, 5
movaps xmm0, xmm2
pxor xmm1, xmm0
sub eax, 1
jne 0x10003695
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
movups xmmword [eax], xmm1
push 0x1f4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 1
lea eax, [ebp - 0xc]
mov dword [0x1001a7b0], 0
push eax
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 2
push eax
push esi
call fcn.10002730
push 0
push 1
push 1
push esi
call dword [0x1003c83c]
mov ecx, dword [ebp - 4]
add esp, 0x2c
mov eax, ebx
xor ecx, ebp
pop esi
pop ebx
call fcn.10008251
mov esp, ebp
pop ebp
ret