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

Disassembly:
xor ax, ax
sub esp, 8
mov al, byte [esp + 0xc]
push ebx
and ax, 0xf
push esi
mov word [esp + 0xa], ax
push edi
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
lea ecx, [eax + ebp - 1]
mov dword [esp + 0x14], ecx
xor cl, cl
mov edi, dword [esp + 0x14]
test bp, bp
lea esi, [ebp - 1]
je 0x460dc1
mov bl, byte [edi]
mov eax, edi
dec edi
mov dl, cl
mov cl, bl
add bl, bl
shr cl, 7
or bl, dl
mov byte [eax], bl
mov ax, si
dec si
test ax, ax
jne 0x460da5
test cl, cl
je 0x460dcc
mov eax, dword [esp + 0x14]
or byte [eax], 1
mov ax, word [esp + 0x12]
dec word [esp + 0x12]
test ax, ax
jne 0x460d97
xor si, si
test ebp, ebp
je 0x460df9
mov dl, byte [esp + 0x1c]
mov eax, dword [esp + 0x20]
movzx ecx, si
inc si
xor byte [ecx + eax], dl
movzx ecx, si
cmp ecx, ebp
jb 0x460de2
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x461320
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
push ebx
push esi
mov si, word [esp + 0x14]
push edi
test si, si
mov ebx, dword [esp + 0x14]
je 0x46138c
mov di, 0x10
mov eax, dword [ebx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
and eax, 0xf
push eax
push ecx
call fcn.004613a0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x24]
xor dword [esp + 0x14], ecx
add esp, 8
mov edx, dword [ebx]
push 2
xor dword [esp + 0x10], edx
push eax
call fcn.004613d0
add esp, 8
mov ecx, dword [ebx + 4]
dec di
mov dword [ebx], ecx
mov edx, dword [esp + 0xc]
mov dword [ebx + 4], edx
jne 0x461338
add ebx, 8
inc dword [esp + 0x1c]
dec si
jne 0x461334
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x4616a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov cl, byte [esp + 8]
push ebx
mov edx, dword [esp + 0x10]
push esi
xor si, si
push edi
cmp dword [esp + 0x1c], 0
push ebp
je 0x4616ca
movzx eax, si
inc si
xor byte [eax + edx], cl
movzx ebx, si
cmp ebx, dword [esp + 0x20]
jb 0x4616b9
xor ax, ax
mov al, cl
and ax, 0xf
mov word [esp + 0x12], ax
mov di, word [esp + 0x20]
xor cl, cl
dec di
mov esi, edx
cmp word [esp + 0x20], 0
je 0x46170c
mov bl, byte [esi]
mov ebp, esi
inc esi
mov al, cl
shl al, 7
mov cl, bl
shr bl, 1
and cl, 1
or al, bl
mov byte [ebp], al
mov bp, di
dec di
test bp, bp
jne 0x4616eb
test cl, cl
je 0x461713
or byte [edx], 0x80
mov ax, word [esp + 0x12]
dec word [esp + 0x12]
test ax, ax
jne 0x4616d8
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x466b70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x88
push ebx
lea ecx, [eax + 7]
shr ecx, 3
push esi
push edi
and eax, 7
mov esi, dword [esp + 0x98]
push ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jne 0x466ba0
mov dword [esp + 0x18], 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x24], eax
je 0x466c92
mov eax, dword [esp + 0x10]
xor dword [esi], eax
mov ecx, dword [esp + 0x14]
xor dword [esi + 4], ecx
cmp dword [esp + 0x20], 0
jne 0x466c62
cmp dword [esp + 0x1c], 2
push 0
jbe 0x466c43
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00466d40
add esp, 0xc
cmp dword [0x49351c], 0
jne 0x466d2d
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x30]
mov edi, 0x19
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov cl, 0x20
add eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [ebx + 4], eax
add ebx, 4
mov eax, dword [esp + 0x28]
mov edx, dword [ebx - 4]
and dl, 0x1f
sub cl, dl
shl eax, cl
mov cl, dl
shr ebp, cl
or eax, ebp
xor dword [esp + 0x34], eax
dec edi
jne 0x466c14
jmp 0x466c70
push 0
push esi
call fcn.00466d40
add esp, 0xc
cmp dword [0x49351c], 0
je 0x466c70
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00466df0
add esp, 8
mov eax, dword [esi]
add esi, 8
mov dword [esp + 0x10], eax
inc dword [esp + 0x20]
mov ecx, dword [esi - 4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x24]
jb 0x466bc7
xor eax, eax
cmp dword [esp + 0x18], eax
je 0x466ca8
mov cl, byte [eax + esi]
xor byte [esp + eax + 0x10], cl
inc eax
cmp dword [esp + 0x18], eax
ja 0x466c9a
cmp dword [esp + 0x1c], 2
jbe 0x466cc3
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00466df0
add esp, 8
jmp 0x466ce8
cmp dword [esp + 0x1c], 1
jne 0x466cd7
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x10]
push 0
push 0
push eax
call fcn.00466d40
add esp, 0xc
cmp dword [esp + 0x1c], 1
jbe 0x466d20
xor ecx, ecx
cmp dword [esp + 0x18], ecx
je 0x466d07
mov dl, byte [ecx + esi - 8]
lea eax, [ecx + esi]
inc ecx
mov byte [eax], dl
cmp dword [esp + 0x18], ecx
ja 0x466cf7
mov eax, dword [esp + 0x10]
mov dword [esi - 8], eax
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi - 4], ecx
pop esi
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], ecx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
Function at 0x466df0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
push ebp
mov eax, dword [esi]
add esi, 8
mov ebp, 0xc
add dword [edx + 4], eax
mov ecx, dword [esi - 4]
add dword [edx], ecx
mov ebx, dword [edx]
mov edi, dword [edx + 4]
xor edi, ebx
mov cl, 0x20
shr ebx, 4
mov eax, edi
and bl, 0x1f
add esi, 8
sub cl, bl
shr eax, cl
mov cl, bl
shl edi, cl
or eax, edi
mov cl, 0x20
sub eax, dword [esi - 8]
mov dword [edx + 4], eax
mov edi, dword [edx]
xor edi, eax
shr eax, 7
mov ebx, edi
and al, 0x1f
sub cl, al
shr ebx, cl
mov cl, al
shl edi, cl
or ebx, edi
add ebx, dword [esi - 4]
dec ebp
mov dword [edx], ebx
jne 0x466e0e
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x466e60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x90
push ebx
lea ecx, [eax + 7]
shr ecx, 3
push esi
push edi
and eax, 7
mov ebx, dword [esp + 0xa0]
push ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x466e90
mov dword [esp + 0x10], 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
cmp dword [esp + 0x14], 1
jbe 0x466f85
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
sub eax, 2
mov dword [esp + 0x2c], eax
je 0x466f85
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x28], 0
jne 0x466f45
lea eax, [esp + 0x30]
push 0
push eax
push ebx
call fcn.00466d40
add esp, 0xc
cmp dword [0x49351c], 0
jne 0x467082
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x38]
mov esi, 0x19
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov cl, 0x20
add eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov dword [edi + 4], eax
add edi, 4
mov eax, dword [esp + 0x30]
mov edx, dword [edi - 4]
and dl, 0x1f
sub cl, dl
shl eax, cl
mov cl, dl
shr ebp, cl
or eax, ebp
xor dword [esp + 0x3c], eax
dec esi
jne 0x466f16
jmp 0x466f53
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00467090
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor dword [ebx], eax
mov edx, dword [esp + 0x20]
xor dword [ebx + 4], ecx
mov eax, dword [esp + 0x24]
add ebx, 8
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
inc dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
jb 0x466ed4
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], eax
je 0x466fae
mov eax, dword [esp + 0x10]
lea esi, [ebx + 8]
lea edi, [esp + 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x14], 1
jne 0x466fd6
push 0
push 0
push ebx
call fcn.00466d40
add esp, 0xc
cmp dword [0x49351c], 0
je 0x46700c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret
cmp dword [esp + 0x14], 2
jne 0x466ffe
push 0
push 0
push ebx
call fcn.00466d40
add esp, 0xc
cmp dword [0x49351c], 0
je 0x46700c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00467090
add esp, 8
cmp dword [esp + 0x14], 1
jbe 0x467075
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor dword [esp + 0x18], eax
xor dword [esp + 0x1c], ecx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
je 0x46703f
mov dl, byte [ecx + ebx + 8]
lea eax, [ecx + ebx]
inc ecx
mov byte [eax], dl
cmp dword [esp + 0x10], ecx
mov dl, byte [esp + ecx + 0x17]
mov byte [eax + 8], dl
ja 0x467028
cmp dword [esp + 0x14], 2
jne 0x467067
push 0
push 0
push ebx
call fcn.00466d40
add esp, 0xc
cmp dword [0x49351c], 0
je 0x467075
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00467090
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
xor dword [ebx], eax
xor dword [ebx + 4], ecx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret
Function at 0x467090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0xc
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebp
add edi, 0x64
mov ebp, dword [esi]
mov eax, dword [esi + 4]
sub ebp, dword [edi]
mov edx, eax
shr edx, 7
mov ebx, ebp
and dl, 0x1f
mov cl, 0x20
sub cl, dl
sub edi, 8
shl ebx, cl
mov cl, dl
shr ebp, cl
or ebx, ebp
mov cl, 0x20
xor ebx, eax
mov eax, ebx
mov dword [esi], ebx
shr eax, 4
mov edx, dword [edi + 4]
add edx, dword [esi + 4]
and al, 0x1f
mov ebp, edx
sub cl, al
shl ebp, cl
mov cl, al
shr edx, cl
or ebp, edx
xor ebp, ebx
dec dword [esp + 0x10]
mov dword [esi + 4], ebp
jne 0x4670aa
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
mov ecx, dword [eax + 4]
sub dword [esi], ecx
mov edx, dword [eax]
sub dword [esi + 4], edx
pop esi
pop ebx
add esp, 4
ret

Function at 0x468650
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x468679
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
inc esi
push esi
call fcn.0045ea70
mov dword [esp + 0x10], eax
add esp, 4
test eax, eax
jne 0x468694
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push ebx
call edi
test eax, eax
jne 0x4686aa
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x46acb0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x24
push ebx
add edx, 0xfffffffa
push ebp
lea eax, [edx - 1]
test eax, eax
push esi
push edi
jl 0x46acde
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x14]
sub ecx, esi
nop
lea esi, [ecx + eax*4]
dec eax
mov esi, dword [esp + esi + 0x14]
mov dword [esp + eax*4 + 0x18], esi
jns 0x46acd0
mov ebp, dword [esp + 0x3c]
xor esi, esi
xor ecx, ecx
xor eax, eax
test edx, edx
jle 0x46ad22
lea esp, [esp]
mov edi, dword [esp + 0x40]
inc edi
cmp esi, edi
jge 0x46ad22
cmp eax, edx
jge 0x46ad16
lea ecx, [ecx]
cmp ecx, 4
jge 0x46ad19
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4], ebx
jl 0x46ad00
cmp ecx, 4
jne 0x46ad1e
inc esi
xor ecx, ecx
cmp eax, edx
jl 0x46acf0
mov eax, dword [esp + 0x40]
inc eax
cmp esi, eax
mov dword [esp + 0x10], eax
jge 0x46ae8c
mov dword [esp + 0x40], 0x49d920
jmp 0x46ad40
movzx edi, byte [esp + edx*4 + 0x11]
mov bl, byte [edi + str.cw]
mov al, byte [esp + 0x14]
xor al, bl
mov byte [esp + 0x14], al
movzx edi, byte [esp + edx*4 + 0x12]
mov bl, byte [edi + str.cw]
xor byte [esp + 0x15], bl
movzx edi, byte [esp + edx*4 + 0x13]
mov bl, byte [edi + str.cw]
xor byte [esp + 0x16], bl
movzx edi, byte [esp + edx*4 + 0x10]
mov bl, byte [edi + str.cw]
mov edi, dword [esp + 0x40]
xor byte [esp + 0x17], bl
xor al, byte [edi]
add edi, 4
cmp edx, 8
mov byte [esp + 0x14], al
mov dword [esp + 0x40], edi
mov eax, 1
je 0x46adc0
cmp edx, eax
jle 0x46ae44
mov ebx, dword [esp + eax*4 + 0x14]
mov edi, dword [esp + eax*4 + 0x10]
xor ebx, edi
mov dword [esp + eax*4 + 0x14], ebx
inc eax
cmp eax, edx
jl 0x46ada5
jmp 0x46ae44
mov ebx, dword [esp + eax*4 + 0x14]
mov edi, dword [esp + eax*4 + 0x10]
xor ebx, edi
mov dword [esp + eax*4 + 0x14], ebx
inc eax
cmp eax, 4
jl 0x46adc0
movzx eax, byte [esp + 0x20]
mov al, byte [eax + str.cw]
mov bl, byte [esp + 0x24]
xor bl, al
movzx eax, byte [esp + 0x21]
mov al, byte [eax + str.cw]
mov byte [esp + 0x24], bl
mov bl, byte [esp + 0x25]
xor bl, al
movzx eax, byte [esp + 0x22]
mov al, byte [eax + str.cw]
mov byte [esp + 0x25], bl
mov bl, byte [esp + 0x26]
xor bl, al
movzx eax, byte [esp + 0x23]
mov al, byte [eax + str.cw]
mov byte [esp + 0x26], bl
xor byte [esp + 0x27], al
mov eax, 5
jmp 0x46ae30
mov ebx, dword [esp + eax*4 + 0x14]
mov edi, dword [esp + eax*4 + 0x10]
xor ebx, edi
mov dword [esp + eax*4 + 0x14], ebx
inc eax
cmp eax, 8
jl 0x46ae30
xor eax, eax
test edx, edx
jle 0x46ae82
lea ebx, [ebx]
cmp esi, dword [esp + 0x10]
jge 0x46ae82
cmp eax, edx
jge 0x46ae76
lea ebx, [ebx]
cmp ecx, 4
jge 0x46ae79
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4], ebx
jl 0x46ae60
cmp ecx, 4
jne 0x46ae7e
inc esi
xor ecx, ecx
cmp eax, edx
jl 0x46ae50
cmp esi, dword [esp + 0x10]
jl 0x46ad40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x46aea0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
cmp ecx, 1
jle 0x46af97
mov eax, dword [esp + 4]
push esi
add eax, 0x16
dec ecx
push edi
jmp 0x46aec0
movzx esi, byte [eax - 4]
mov edi, dword [esi*4 + 0x49d120]
movzx edx, byte [eax - 3]
mov edx, dword [edx*4 + 0x49d520]
movzx esi, byte [eax - 5]
xor edx, edi
mov edi, dword [esi*4 + 0x49cd20]
movzx esi, byte [eax - 6]
xor edx, edi
xor edx, dword [esi*4 + 0x49c920]
mov dword [eax - 6], edx
movzx esi, byte [eax - 1]
mov edi, dword [esi*4 + 0x49cd20]
movzx edx, byte [eax + 1]
mov edx, dword [edx*4 + 0x49d520]
movzx esi, byte [eax]
xor edx, edi
mov edi, dword [esi*4 + 0x49d120]
movzx esi, byte [eax - 2]
xor edx, edi
xor edx, dword [esi*4 + 0x49c920]
mov dword [eax - 2], edx
movzx esi, byte [eax + 4]
mov edi, dword [esi*4 + 0x49d120]
movzx edx, byte [eax + 5]
mov edx, dword [edx*4 + 0x49d520]
movzx esi, byte [eax + 3]
xor edx, edi
mov edi, dword [esi*4 + 0x49cd20]
movzx esi, byte [eax + 2]
xor edx, edi
xor edx, dword [esi*4 + 0x49c920]
mov dword [eax + 2], edx
movzx esi, byte [eax + 8]
movzx edx, byte [eax + 9]
mov edi, dword [esi*4 + 0x49d120]
movzx esi, byte [eax + 7]
mov edx, dword [edx*4 + 0x49d520]
xor edx, edi
mov edi, dword [esi*4 + 0x49cd20]
movzx esi, byte [eax + 6]
xor edx, edi
xor edx, dword [esi*4 + 0x49c920]
mov dword [eax + 6], edx
add eax, 0x10
dec ecx
jne 0x46aec0
pop edi
pop esi
xor eax, eax
ret
Function at 0x46b740
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x46fb00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x5c
cmp eax, 0x13d
push esi
jne 0x46fb30
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub ecx, eax
mov edx, 0xa
mov edi, edi
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x46fb20
pop esi
add esp, 0x5c
ret
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
push ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov ebx, eax
shr ebx, 5
mov dword [esp + 0x58], ecx
mov edx, 0x14
and eax, 0x1f
push ebp
mov dword [esp + 0x60], ecx
sub edx, ebx
test ax, ax
push edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x14], ebx
je 0x46fc02
mov edi, dword [esp + 0x70]
mov ecx, 0x20
sub ecx, eax
movsx eax, ax
mov dword [esp + 0x74], eax
movsx eax, dx
movsx ecx, cx
lea eax, [esp + eax*4 + 0x18]
mov dword [esp + 0x10], ecx
add edi, 0x24
mov ebx, 0xa
lea esp, [esp]
mov esi, dword [edi]
mov ecx, dword [esp + 0x74]
mov ebp, esi
shl ebp, cl
mov ecx, dword [eax]
sub edi, 4
or ecx, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
dec edx
movsx eax, dx
mov ebp, dword [esp + eax*4 + 0x18]
shr esi, cl
lea eax, [esp + eax*4 + 0x18]
or ebp, esi
dec ebx
mov dword [eax], ebp
jne 0x46fbd0
mov ebx, dword [esp + 0x14]
jmp 0x46fc2c
mov esi, dword [esp + 0x70]
lea eax, [ebx + edx - 0xb]
lea ebx, [ebx]
movsx ecx, dx
mov ebp, dword [esp + ecx*4 + 0x18]
movsx edi, ax
mov edi, dword [esi + edi*4]
lea ecx, [esp + ecx*4 + 0x18]
or ebp, edi
dec edx
dec eax
test ax, ax
mov dword [ecx], ebp
jge 0x46fc10
mov edi, 0x14
movsx eax, bx
mov edx, edi
sub edx, eax
cmp edx, edi
mov esi, 0xb
ja 0x46fc7e
lea ecx, [esp + 0x44]
mov eax, edi
jmp 0x46fc50
mov ecx, dword [ecx]
mov ebx, dword [esp + eax*4 + 0x18]
lea eax, [esp + eax*4 + 0x18]
shr ecx, 0x1d
or ebx, ecx
dec esi
movsx ecx, si
mov dword [eax], ebx
mov ebx, dword [esp + ecx*4 + 0x18]
mov ebp, dword [eax]
lea ecx, [esp + ecx*4 + 0x18]
shl ebx, 3
or ebp, ebx
dec edi
mov dword [eax], ebp
movsx eax, di
cmp eax, edx
jae 0x46fc50
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
and eax, 0x10000000
neg eax
lea edx, [esp + 0x44]
sbb eax, eax
mov ecx, edi
sub edx, edi
mov esi, 0xa
lea esp, [esp]
mov ebx, dword [edx + ecx]
xor ebx, eax
mov dword [ecx], ebx
add ecx, 4
dec esi
jne 0x46fca0
and dword [edi], 0xfffffff
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x5c
ret
Function at 0x471790
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x49ea28]
and eax, 0xff00
cmp eax, 0x2300
je 0x4717dd
shr edi, 2
xor edx, edx
test edi, edi
jle 0x4717dd
push ebx
mov edi, edi
mov ecx, dword [esi + edx*4]
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
mov ebx, eax
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4717b0
pop ebx
pop edi
ret
Function at 0x472c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebp
push esi
mov esi, dword [esp + 0x4c]
xor eax, eax
mov ecx, esi
mov edx, 5
or eax, dword [ecx]
add ecx, 4
dec edx
jne 0x472c82
test eax, eax
jne 0x472cb8
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push esi
push eax
call fcn.0046f4f0
push esi
call fcn.0046f490
lea ecx, [esi + 0x14]
push ecx
push esi
call fcn.0046f4f0
add esp, 0x14
pop esi
xor eax, eax
pop ebp
add esp, 0x40
ret
lea edx, [esp + 0x34]
push edx
push esi
call fcn.0046fcc0
lea eax, [esp + 0x3c]
push eax
call fcn.0046f450
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0046f930
lea ecx, [esp + 0x38]
push ecx
call fcn.0046f490
add esp, 0x1c
xor eax, eax
lea ecx, [esp + 0x20]
mov edx, 5
push ebx
lea ebx, [ebx]
xor eax, dword [ecx]
add ecx, 4
dec edx
jne 0x472d00
mov dword [esp + 0xc], 0x10
mov dx, word [esp + 0xc]
or esi, 0xffffffff
push edi
lea esp, [esp]
movsx ecx, dx
shr esi, cl
mov edi, eax
shr edi, cl
sar dx, 1
mov ecx, esi
and ecx, eax
xor edi, ecx
test dx, dx
mov eax, edi
jg 0x472d20
test eax, eax
je 0x472d60
mov esi, dword [esp + 0x5c]
push esi
call fcn.0046f4d0
add esi, 0x14
push esi
call fcn.0046f4d0
add esp, 8
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x40
ret
lea edx, [esp + 0x14]
push edx
call fcn.0046f4d0
add esp, 4
mov edi, 1
xor eax, eax
mov ebp, 0x9e
lea esp, [esp]
mov edx, eax
shr edx, 5
lea ebx, [eax + 1]
mov ecx, 4
sub ecx, edx
movsx edx, cx
mov eax, ebx
shr eax, 5
shl edx, 2
mov esi, 4
sub esi, eax
mov eax, dword [esp + edx + 0x14]
xor eax, dword [esp + edx + 0x28]
and eax, edi
cmp si, cx
jne 0x472dc6
movsx ecx, si
mov esi, dword [esp + ecx*4 + 0x14]
lea ecx, [esp + ecx*4 + 0x14]
lea edx, [eax + eax]
or esi, edx
mov dword [ecx], esi
shl edi, 1
jmp 0x472dd6
test eax, eax
mov edi, 1
je 0x472dd6
movsx eax, si
mov dword [esp + eax*4 + 0x14], edi
dec ebp
mov eax, ebx
jne 0x472d80
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
xor ecx, edx
test ecx, 0x20000000
push esi
je 0x472e10
call fcn.0046f4d0
add esi, 0x14
push esi
call fcn.0046f4d0
add esp, 8
pop edi
pop ebx
pop esi
mov eax, 2
pop ebp
add esp, 0x40
ret
mov edi, dword [esp + 0x58]
lea edx, [esp + 0x18]
push edx
push edi
call fcn.0046f930
lea eax, [esi + 0x14]
push eax
call fcn.0046f4d0
mov ecx, edi
add esp, 0x10
mov eax, esi
sub ecx, esi
mov edx, 5
mov esi, dword [ecx + eax]
xor esi, dword [eax]
mov dword [eax + 0x14], esi
add eax, 4
dec edx
jne 0x472e36
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x40
ret
Function at 0x472e50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0046f4f0
lea ecx, [esp + 0x14]
push ecx
call fcn.0046f450
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0046f930
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
add esp, 0x18
cmp word [edi], 0
push esi
je 0x472ea4
lea ecx, [edi + 2]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0046f930
add esp, 0xc
jmp 0x472eac
call fcn.0046f4d0
add esp, 4
lea edx, [esp + 0x20]
mov eax, esi
sub edx, esi
lea ecx, [edi + 0x16]
mov esi, 5
lea esp, [esp]
mov ebx, dword [eax]
mov edi, dword [edx + eax]
xor edi, ebx
xor edi, dword [ecx]
mov dword [eax], edi
add ecx, 4
add eax, 4
dec esi
jne 0x472ec0
pop edi
pop esi
pop ebx
add esp, 0x28
ret