joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001170
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x100011b4
mov ax, word [edx]
or ecx, 0xffffffff
cmp ax, 0x5a4d
jne 0x10001186
xor ecx, ecx
test ax, ax
jne 0x10001192
mov ecx, 1
jmp 0x10001196
test ecx, ecx
jl 0x100011b4
mov eax, dword [edx + 0x3c]
add eax, edx
test ecx, ecx
jne 0x100011aa
cmp dword [eax], 0x4550
je 0x100011b6
xor eax, eax
ret
cmp ecx, 1
jne 0x100011b6
cmp dword [eax], 0
je 0x100011b6
xor eax, eax
ret

Function at 0x100018b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
mov edx, dword [eax]
lea ebp, [ecx + 4]
push esi
mov dword [ecx], edx
lea esi, [eax + 4]
mov ebx, ebp
push edi
mov edi, dword [eax]
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x100018ce
mov ecx, dword [ebp]
xor eax, eax
pop edi
cmp ecx, 0x4e4e4f4b
pop esi
pop ebp
sete al
pop ebx
ret

Function at 0x10001910
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, eax
not eax
shr ebx, 2
add edx, eax
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
test ebx, ebx
jle 0x10001954
push ebp
mov ebp, dword [esp + 0x10]
push edi
sub ebp, esi
mov edi, dword [esi]
add esi, 4
mov ecx, edi
add edi, eax
xor ecx, edx
add edi, edx
mov edx, eax
mov dword [esi + ebp - 4], ecx
imul edx, eax
xor edx, edi
inc eax
cmp eax, ebx
jl 0x10001935
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x10004620
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x1000466f
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10004644
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10004681
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10004695
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x100046db
xor ecx, ecx
cmp edi, 0x100
jb 0x100046b8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x10004f90
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x10004fdc
jle 0x10004fd7
cmp eax, 3
jg 0x10004fd7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10004fce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x10004fbc
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10020dd1
mov eax, 1
ret 0x10

Function at 0x10005550
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x1000559c
jle 0x10005597
cmp eax, 3
jg 0x10005597
push esi
mov esi, dword [ecx]
test esi, esi
je 0x1000558e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x1000557c
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10006440
mov eax, 1
ret 0x10
Function at 0x10005a70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x124]
sub eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
je 0x10005bb2
dec eax
je 0x10005ab6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esi + 0x20]
push esi
mov edi, ecx
lea eax, [esp + 0x20]
and ecx, 0x1f
mov ebx, 1
push 1
push eax
shr edi, 5
shl ebx, cl
call fcn.10005000
test eax, eax
mov ebp, dword [esp + 0x124]
je 0x10005af4
push esi
push 1
push ebp
call fcn.10005000
test eax, eax
je 0x10005af4
mov eax, 1
jmp 0x10005af6
xor eax, eax
mov ecx, dword [esp + 0x10]
lea edi, [esp + edi*4 + 0x1c]
cmp ecx, 1
mov dword [edi], ebx
je 0x10005b67
dec ecx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x10005b54
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10005380
test eax, eax
je 0x10005b54
push esi
push ebp
push ebp
push ebp
call fcn.10005380
test eax, eax
je 0x10005b54
mov ecx, dword [esp + 0x120]
push esi
push ebp
push ebp
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.100053f0
test eax, eax
je 0x10005b54
mov eax, 1
jmp 0x10005b56
xor eax, eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
xor edx, ebx
dec ecx
mov dword [edi], edx
mov dword [esp + 0x10], ecx
jne 0x10005b0a
test eax, eax
je 0x10005aa7
lea eax, [esp + 0x1c]
push esi
push eax
push ebp
push ebp
push ebp
call fcn.100053f0
test eax, eax
je 0x10005aa7
mov ecx, dword [esp + 0x120]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.10020dd1
test eax, eax
je 0x10005aa7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0xc
xor esi, esi
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x124]
je 0x10005c09
mov ebx, dword [esp + 0x120]
mov eax, edx
shr eax, 5
mov ecx, edx
mov ebx, dword [ebx + eax*4]
and ecx, 0x1f
shr ebx, cl
mov ebp, dword [edi + eax*4]
and ebx, 1
xor esi, ebx
mov ebx, esi
not ebx
and ebx, 1
shl ebx, cl
not ebx
and ebx, ebp
mov ebp, esi
and ebp, 1
shl ebp, cl
or ebx, ebp
inc edx
mov dword [edi + eax*4], ebx
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x10005bc1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + ebx*4 - 4]
xor eax, eax
test esi, esi
sete al
shl edx, cl
shr edx, cl
mov dword [edi + ebx*4 - 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc

Function at 0x10006e30
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
sub eax, 0x182
je 0x10006e64
sub eax, 0x64
je 0x10006e64
sub eax, 0x64
cmp word [esp + 0x20], 6
jb 0x10006e64
push 0xc
call fcn.1000cc10
add esp, 0x24
ret
push 4
call fcn.1000cc10
add esp, 0x24
ret
Function at 0x1000c160
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub esp, 0x51c
lea edx, [eax + 0x1f]
push ebx
push ebp
lea ebp, [ecx + 0x1f]
push esi
shr edx, 5
shr ebp, 5
cmp edx, ebp
mov ebx, edx
ja 0x1000c185
mov ebx, ebp
mov ecx, dword [esp + 0x53c]
xor esi, esi
xor eax, eax
cmp ecx, esi
setne al
cmp ebx, esi
mov dword [esp + 0xc], eax
je 0x1000c38c
cmp ebx, 0x40
ja 0x1000c38c
lea eax, [esp + 0x324]
mov ecx, ebx
mov dword [eax - 0x204], esi
mov dword [eax], esi
mov dword [eax - 0x104], esi
mov dword [eax + 0x100], esi
add eax, 4
dec ecx
jne 0x1000c1b3
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x52c]
xor ecx, 1
push edi
mov dword [esp + 0x124], ecx
mov ecx, edx
lea edi, [esp + 0x224]
push edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x53c]
lea ecx, [ebp*4]
mov dword [esp + 0x24], ecx
mov eax, ecx
lea edi, [esp + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x534]
push ecx
call fcn.10020dd1
push ebp
mov edx, dword [esp + 0x53c]
mov dword [esp + 0x328], eax
push edx
call fcn.10020dd1
xor edx, edx
mov dword [esp + 0x528], eax
mov eax, edx
mov dword [esp + 0x18], edx
shl eax, 7
add eax, edx
shl eax, 2
mov ecx, eax
neg ecx
mov esi, dword [esp + ecx + 0x528]
test esi, esi
je 0x1000c32e
lea esi, [esp + eax + 0x124]
lea ebp, [esp + ecx + 0x328]
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jb 0x1000c320
sub eax, ecx
push ebx
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.1000aa20
lea edx, [esi + 0x100]
lea ecx, [esp + 0x24]
mov eax, edx
mov dword [esp + 0x14], ebx
mov ebp, dword [ecx]
add ecx, 4
xor dword [eax], ebp
mov ebp, dword [esp + 0x14]
add eax, 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x1000c2b2
push ebx
push edx
call fcn.10020dd1
mov dword [esi + 0x200], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c304
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edi
push ebp
call fcn.1000aa20
lea ecx, [esp + 0x24]
mov eax, esi
sub ecx, esi
mov edx, ebx
mov edi, dword [ecx + eax]
xor dword [eax], edi
add eax, 4
dec edx
jne 0x1000c2f7
jmp 0x1000c308
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jae 0x1000c28b
mov edx, dword [esp + 0x18]
mov eax, 1
sub eax, edx
mov edx, eax
jmp 0x1000c244
mov edi, dword [esp + 0x544]
test edi, edi
je 0x1000c34b
mov eax, edx
mov ecx, ebx
shl eax, 7
add eax, edx
lea esi, [esp + eax*4 + 0x224]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c37a
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x540]
mov eax, edx
shl eax, 7
add eax, edx
mov edx, ecx
shr ecx, 2
lea esi, [esp + eax*4 + 0x124]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x51c
ret 0x18
Function at 0x1000eeb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x1001d4a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10023240
call fcn.1002158d
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1001d687
push edi
call dword [sym.imp.MSVCR120.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10020dd1
add esp, 0x10
test eax, eax
js 0x1001d681
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1001d545
push esi
call fcn.1001820c
pop ecx
test al, al
je 0x1001d545
mov eax, esi
call fcn.100215f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1001d551
push esi
lea ecx, [ebp - 0x428]
call fcn.10020dd1
push 3
push esi
push edi
push eax
call fcn.10020dd1
mov esi, eax
test esi, esi
je 0x1001d681
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x1001d59d
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x1001d59d
call fcn.10014255
mov esi, eax
jmp 0x1001d666
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1001d5c0
call fcn.10014255
jmp 0x1001d659
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1001d5b6
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001d5f0
mov esi, 0x8007000e
jmp 0x1001d65b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10020dd1
jmp 0x1001d616
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1001d5e9
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.10020dd1
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.10020dd1
mov esi, eax
test edi, edi
je 0x1001d666
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1001d6a1
lea ecx, [ebp - 0x418]
call fcn.1001cc70
jmp 0x1001d6a1
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1001d69c
lea ecx, [ebp - 0x418]
call fcn.1001cc70
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.100131e8
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.100214df
ret 0x10
Function at 0x412df0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x412e76
mov ecx, dword [edi]
push ebx
push ebp
mov byte [ecx + 0x16], dl
push esi
mov esi, dword [edi + 4]
mov byte [ecx + 0x17], dl
xor eax, eax
cmp esi, edx
mov byte [ecx + 0x18], dl
mov byte [ecx + 0x19], dl
jle 0x412e2f
movzx ebx, byte [ecx + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x587340]
inc edx
cmp edx, esi
jl 0x412e13
xor edx, edx
mov esi, dword [edi + 0xc]
cmp esi, edx
jle 0x412e5a
mov edi, dword [edi + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x587340]
inc edx
cmp edx, esi
jl 0x412e40
mov edx, eax
shr edx, 8
mov byte [ecx + 0x16], al
mov byte [ecx + 0x17], dl
mov edx, eax
pop esi
shr edx, 0x10
shr eax, 0x18
pop ebp
mov byte [ecx + 0x18], dl
mov byte [ecx + 0x19], al
pop ebx
pop edi
ret

Function at 0x418280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
movd mm7, dword [ebp + 8]
punpcklwd mm7, mm7
punpckldq mm7, mm7
movq mm4, mm7
psrlw mm4, 7
paddw mm7, mm4
movd mm6, dword [ebp + 0x2c]
punpckldq mm6, mm6
pand mm6, qword [0x55f6b8]
mov eax, dword [ebp + 0xc]
shl eax, 2
sub dword [ebp + 0x18], eax
sub dword [ebp + 0x20], eax
sub dword [ebp + 0x28], eax
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
or ecx, ecx
je 0x418348
movq mm5, qword [esi]
movq mm4, qword [edi]
movq mm3, mm5
movq mm2, mm4
movq mm1, mm3
movq mm0, mm2
psrlw mm1, 8
psrlw mm0, 8
psubw mm1, mm0
pmullw mm1, mm7
psllw mm0, 8
paddw mm1, mm0
pand mm1, qword [0x55f6c8]
pand mm3, qword [0x55f6d0]
pand mm2, qword [0x55f6d0]
psubw mm3, mm2
pmullw mm3, mm7
psrlw mm3, 8
paddw mm3, mm2
pand mm3, qword [0x55f6d0]
por mm3, mm1
pand mm5, qword [0x55f6b8]
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x55f708]
pand mm3, mm5
por mm4, mm3
movq qword [ebx], mm4
add esi, 8
add edi, 8
add ebx, 8
dec ecx
jne 0x4182cc
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x4183a7
movd mm5, dword [esi]
movd mm4, dword [edi]
movq mm3, mm5
movq mm2, mm4
punpcklbw mm3, dword [0x55f6a8]
punpcklbw mm2, dword [0x55f6a8]
psubw mm3, mm2
pmullw mm3, mm7
psrlw mm2, 8
paddw mm3, mm2
psrlw mm3, 8
packuswb mm3, mm3
pand mm5, qword [0x55f6b8]
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x55f708]
pand mm3, mm5
por mm4, mm3
movd dword [ebx], mm4
add esi, 4
add edi, 4
add ebx, 4
add esi, dword [ebp + 0x28]
add edi, dword [ebp + 0x20]
add ebx, dword [ebp + 0x18]
dec edx
jne 0x4182c3
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x28
Function at 0x4183c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
movd mm7, dword [ebp + 8]
punpcklwd mm7, mm7
punpckldq mm7, mm7
movq mm4, mm7
psrlw mm4, 7
paddw mm7, mm4
mov eax, dword [ebp + 0x2c]
and eax, 0xffffff
movd mm6, eax
punpckldq mm6, mm6
mov eax, dword [ebp + 0xc]
mov edx, eax
shl eax, 1
add eax, edx
sub dword [ebp + 0x18], eax
sub dword [ebp + 0x20], eax
sub dword [ebp + 0x28], eax
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
or ecx, ecx
je 0x4184ce
push ecx
movd mm5, dword [esi]
mov eax, dword [esi + 2]
shr eax, 8
movd mm3, eax
psllq mm3, 0x20
por mm5, mm3
movd mm4, dword [edi]
mov eax, dword [edi + 2]
shr eax, 8
movd mm3, eax
psllq mm3, 0x20
por mm4, mm3
movq mm3, mm5
movq mm2, mm4
psrlw mm3, 8
psrlw mm2, 8
psubw mm3, mm2
pmullw mm3, mm7
psllw mm2, 8
paddw mm3, mm2
pand mm3, qword [0x55f6c8]
movq mm2, mm5
movq mm1, mm4
pand mm2, qword [0x55f6d0]
pand mm1, qword [0x55f6d0]
psubw mm2, mm1
pmullw mm2, mm7
psrlw mm2, 8
paddw mm2, mm1
pand mm2, qword [0x55f6d0]
por mm3, mm2
pand mm5, qword [0x55f6b8]
pand mm3, qword [0x55f6b8]
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x55f708]
pand mm3, mm5
por mm4, mm3
movd eax, mm4
psrlq mm4, 0x18
mov word [ebx], ax
movd ecx, mm4
shr eax, 0x10
or eax, ecx
mov dword [ebx + 2], eax
pop ecx
add esi, 6
add edi, 6
add ebx, 6
dec ecx
jne 0x418413
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x418576
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 2]
shl eax, 0x10
mov cx, word [esi]
or eax, ecx
movd mm5, eax
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 2]
shl eax, 0x10
mov cx, word [edi]
or eax, ecx
movd mm4, eax
movq mm3, mm5
movq mm2, mm4
psrlw mm3, 8
psrlw mm2, 8
psubw mm3, mm2
pmullw mm3, mm7
psllw mm2, 8
paddw mm3, mm2
pand mm3, qword [0x55f6c8]
movq mm2, mm5
movq mm1, mm4
pand mm2, qword [0x55f6d0]
pand mm1, qword [0x55f6d0]
psubw mm2, mm1
pmullw mm2, mm7
psrlw mm2, 8
paddw mm2, mm1
pand mm2, qword [0x55f6d0]
por mm3, mm2
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x55f708]
pand mm3, mm5
por mm4, mm3
movd eax, mm4
mov word [ebx], ax
shr eax, 0x10
mov byte [ebx + 2], al
add esi, 3
add edi, 3
add ebx, 3
add esi, dword [ebp + 0x28]
add edi, dword [ebp + 0x20]
add ebx, dword [ebp + 0x18]
dec edx
jne 0x418406
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x28
Function at 0x41c250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
movd mm7, dword [ebp + 8]
punpckldq mm7, mm7
pand mm7, qword [0x55f6b8]
mov eax, dword [ebp + 0xc]
shl eax, 2
sub dword [ebp + 0x18], eax
sub dword [ebp + 0x20], eax
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
test ecx, ecx
je 0x41c2b3
movq mm6, qword [esi]
movq mm5, qword [edi]
movq mm4, mm6
pand mm4, qword [0x55f6b8]
movq mm3, mm7
pcmpeqd mm4, mm3
pand mm5, mm4
pxor mm4, qword [0x55f708]
pand mm6, mm4
por mm6, mm5
movq qword [edi], mm6
add esi, 8
add edi, 8
dec ecx
jne 0x41c281
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x41c2ed
movd mm6, dword [esi]
movd mm5, dword [edi]
movq mm4, mm6
pand mm4, qword [0x55f6b8]
movq mm3, mm7
pcmpeqd mm4, mm3
pand mm5, mm4
pxor mm4, qword [0x55f708]
pand mm6, mm4
por mm6, mm5
movd dword [edi], mm6
add esi, 4
add edi, 4
add esi, dword [ebp + 0x20]
add edi, dword [ebp + 0x18]
dec edx
jne 0x41c278
emms
pop edi
pop esi
pop ebp
ret 0x1c

Function at 0x41c300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
movd mm7, dword [ebp + 8]
punpckldq mm7, mm7
pand mm7, qword [0x55f6b8]
mov eax, dword [ebp + 0xc]
mov edx, eax
shl eax, 1
add eax, edx
sub dword [ebp + 0x18], eax
sub dword [ebp + 0x20], eax
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
or ecx, ecx
je 0x41c3b0
movd mm6, dword [esi]
xor eax, eax
xor ebx, ebx
mov al, byte [esi + 5]
shl eax, 0x10
mov bx, word [esi + 3]
or eax, ebx
movd mm4, eax
psllq mm4, 0x20
por mm6, mm4
pand mm6, qword [0x55f6b8]
movd mm5, dword [edi]
xor eax, eax
xor ebx, ebx
mov al, byte [edi + 5]
shl eax, 0x10
mov bx, word [edi + 3]
or eax, ebx
movd mm4, eax
psllq mm4, 0x20
por mm5, mm4
pand mm5, qword [0x55f6b8]
movq mm4, mm7
pcmpeqd mm4, mm6
pand mm5, mm4
pxor mm4, qword [0x55f708]
pand mm6, mm4
por mm6, mm5
movd dword [edi], mm6
psrlq mm6, 0x20
movd eax, mm6
mov word [edi + 3], ax
shr eax, 0x10
mov byte [edi + 5], al
add esi, 6
add edi, 6
dec ecx
jne 0x41c335
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x41c415
xor eax, eax
xor ebx, ebx
mov al, byte [esi + 2]
shl eax, 0x10
mov bx, word [esi]
or eax, ebx
movd mm6, eax
pand mm6, qword [0x55f6b8]
xor eax, eax
xor ebx, ebx
mov al, byte [edi + 2]
shl eax, 0x10
mov bx, word [edi]
or eax, ebx
movd mm5, eax
pand mm5, qword [0x55f6b8]
movq mm4, mm7
pcmpeqd mm4, mm6
pand mm5, mm4
pxor mm4, qword [0x55f708]
pand mm6, mm4
por mm6, mm5
movd eax, mm6
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 2], al
add esi, 3
add edi, 3
add esi, dword [ebp + 0x20]
add edi, dword [ebp + 0x18]
dec edx
jne 0x41c32c
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c

Function at 0x422ea0
Capabilities:
Write file on windows

Disassembly:
push 0x22
call fcn.00421ff0
mov eax, dword [0x5ae6c0]
mov ecx, dword [0x5ae6b8]
mov edx, dword [esp + 8]
add eax, ecx
push edx
mov dword [0x5a66a4], eax
call fcn.00422090
add esp, 8
mov dword [esp + 4], str._tenter_n
jmp fcn.00424eb0