joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a80
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x417274], 0
je 0x402abd
push 0
push 0x41726c
push 6
push str.Free
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
push eax
call fcn.00402c70
add esp, 4
call fcn.00402ba0
cmp dword [0x417270], 0
jne 0x402ad4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402b49
mov edx, dword [ebp + 8]
mov eax, dword [edx - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx - 8]
mov dword [ebp - 8], edx
push 4
push 0x1000
push 0x1000
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x402b3f
cmp dword [0x417274], 0
je 0x402b3f
push 0
push 0x41726c
push 0x1d
push str.VirtualAlloc_rw__fails:_page
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402c70
add esp, 4
call fcn.00402ba0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret

Function at 0x402fc5
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 4
pop edx
pop eax
mov ebp, dword [edx + 4]
mov esp, dword [edx + 8]
lea esi, [edx + 0xc]
mov edi, dword fs:[4]
mov edi, dword [edi - 4]
lea edi, [edi + 0x30]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
jmp ecx

Function at 0x403080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x41618c], 0
je 0x4030af
mov eax, dword [ebp + 0xc]
mov dword [0x416a84], eax
cmp dword [ebp + 0xc], 0
je 0x4030a5
mov ecx, dword [ebp + 8]
mov dword [0x416190], ecx
jmp 0x4030af
mov dword [0x416190], 1
push 0
call fcn.00401600
add esp, 4
call fcn.004016e0
call fcn.00401730
mov edx, dword [0x4177e0]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405680
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x41419b], 0
je 0x4056bd
push 0x411bc4
push str.__remove_unactivated__
call fcn.00409580
push 0x411bbc
push 0x411c22
call fcn.00409580
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call fcn.004098a0
call fcn.004094c0
mov eax, dword [ebp + 8]
mov byte [eax + 0x40], 2
mov ebx, dword [ebp + 8]
push dword [ebx + 4]
call sub.KERNEL32.dll_ResumeThread
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x4056e5
call fcn.004098c0
mov esp, ebp
pop ebp
ret 4
Function at 0x40571a
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov edx, dword fs:[4]
mov edx, dword [edx - 4]
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edx
cmp dword [eax + 4], 0
je 0x40583e
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0x30]
movzx ecx, byte [ebp + 0xc]
cmp ebx, ecx
je 0x4057de
mov ah, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebx + 0x30], ah
mov ecx, dword [ebp + 8]
mov al, byte [ebp + 0x10]
mov byte [ecx + 0x32], al
mov edx, dword [ebp + 8]
cmp dword [edx + 0x34], 0
jne 0x405774
movzx ebx, al
push ebx
movzx ecx, ah
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409080
jmp 0x40583e
or al, al
je 0x40583e
mov ebx, dword [ebp + 8]
mov byte [ebx + 0x32], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 8]
cmp ecx, esi
jne 0x40579a
call fcn.004056f0
jmp 0x40583e
mov ebx, dword [ebp + 8]
push dword [ebx + 4]
call sub.KERNEL32.dll_SuspendThread
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xffffffff
cmp eax, 0xffffffff
jne 0x4057bb
call fcn.004098c0
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_ResumeThread
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
cmp eax, 0xffffffff
jne 0x40583e
call fcn.004098c0
jmp 0x40583e
cmp byte [ebp + 0x10], 0
je 0x40583e
mov eax, dword [ebp + 8]
mov byte [eax + 0x32], 0
mov ebx, dword [ebp + 8]
mov ecx, dword [edx + 8]
cmp ebx, ecx
jne 0x4057fc
call fcn.004056f0
jmp 0x40583e
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_SuspendThread
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xffffffff
cmp eax, 0xffffffff
jne 0x40581d
call fcn.004098c0
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_ResumeThread
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x40583e
call fcn.004098c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4067aa
Capabilities:
Create thread
Resume thread

Disassembly:
mov edx, dword fs:[4]
mov edx, dword [edx - 4]
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x2c], 0x406620
push 0x18
mov dword [ebp - 0x34], edx
call fcn.0040e630
mov dword [ebp - 0x28], eax
mov dword [eax + 8], 0
mov dword [ebp - 0x24], eax
cmp dword [ebp + 8], 0
sete bh
cmp dword [ebp + 0xc], 0
sete bl
and bh, bl
or bh, bh
je 0x4067f1
push dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov ebx, dword [edx + 8]
push ebx
call fcn.0040c8a0
lea eax, [ebp - 0x20]
push eax
push 4
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebp - 0x1c], eax
cmp byte [0x41419c], 0
je 0x406830
push 0x412188
push str.Imtimers_create__suspended__thread
call fcn.00409580
push dword [ebp - 0x20]
call fcn.004098a0
call fcn.004094c0
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40683b
call fcn.004098c0
push 0xf
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_SetThreadPriority
or eax, eax
jne 0x40684e
call fcn.004098c0
cmp byte [0x41419c], 0
je 0x406873
push 0x412168
push str.Imtimers_resume_thread
call fcn.00409580
push dword [ebp - 0x20]
call fcn.004098a0
call fcn.004094c0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0x24]
lea esi, [ebp - 0x18]
lea edi, [ebx]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.KERNEL32.dll_ResumeThread
cmp eax, 0xffffffff
jne 0x4068bb
call fcn.004098c0
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x416918], 0
je 0x40791d
mov eax, dword [ebp + 0xc]
add eax, dword [0x416910]
mov dword [ebp - 0x14], eax
cmp dword [0x415870], eax
ja 0x4078f5
cmp dword [ebp + 0xc], 0x400
jle 0x407898
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x40789f
mov dword [ebp - 8], 0x400
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 4], eax
or eax, eax
je 0x407936
mov ebx, dword [ebp + 0xc]
add ebx, dword [0x416910]
mov eax, ebx
mov ecx, dword [0x416914]
mov dword [ebp - 0x14], eax
or ecx, ecx
je 0x4078dd
push dword [0x415870]
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.00409a80
mov eax, dword [ebp - 4]
mov dword [0x416914], eax
mov ebx, dword [0x415870]
add ebx, dword [ebp - 8]
mov dword [0x415870], ebx
mov eax, dword [ebp + 0xc]
push eax
mov ebx, dword [ebp + 8]
push ebx
mov ecx, dword [0x416914]
mov edx, dword [0x416910]
lea ecx, [ecx + edx]
push ecx
call fcn.00409a80
mov eax, dword [ebp - 0x14]
mov dword [0x416910], eax
jmp 0x407936
push 0
lea eax, [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0xc]
push ebx
mov ecx, dword [ebp + 8]
push ecx
push dword [0x41691c]
call sub.KERNEL32.dll_WriteFile
mov esp, ebp
pop ebp
ret 8
Function at 0x408e20
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov edx, dword fs:[4]
mov edx, dword [edx - 4]
push ebp
mov ebp, esp
sub esp, 0xf4
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 8]
cmp eax, ebx
jne 0x408e66
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x1c], eax
call fcn.00408d90
push 0x4128a0
push str.Abort_failed
call fcn.00409790
jmp 0x408f75
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_SuspendThread
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xffffffff
cmp eax, 0xffffffff
jne 0x408e87
call fcn.004098c0
mov eax, dword [ebp + 8]
cmp byte [eax + 0x38], 0
je 0x408e9e
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x3c], eax
jmp 0x408f4f
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x1c], eax
mov dword [ebp - 0xf0], 0x10001
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.KERNEL32.dll_GetThreadContext
mov dword [ebp - 0x14], eax
or eax, eax
jne 0x408ecf
call fcn.004098c0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
sub eax, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x38]
mov dword [ebx], ecx
mov dword [ebp - 0x38], 0x408e00
lea edx, [ebp - 0xf0]
push edx
mov esi, dword [ebp + 8]
push dword [esi + 4]
call sub.KERNEL32.dll_SetThreadContext
mov dword [ebp - 0x10], eax
or eax, eax
jne 0x408f10
call fcn.004098c0
cmp byte [0x41419c], 0
je 0x408f38
push 0x412880
push str.SetEvent_wake_thread
call fcn.00409580
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call fcn.004098a0
call fcn.004094c0
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call sub.KERNEL32.dll_SetEvent
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x408f4f
call fcn.004098c0
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_ResumeThread
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x408f70
call fcn.004098c0
call fcn.004092f0
mov esp, ebp
pop ebp
ret 8
Function at 0x409080
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov edx, dword fs:[4]
mov edx, dword [edx - 4]
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov bh, byte [eax + 0x31]
mov byte [ebp - 0xc], bh
mov bl, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x31], bl
mov dword [ebp - 0x34], edx
cmp byte [0x41419e], 0
je 0x409132
push 0x41280c
push str.Setting_active_priority
call fcn.00409580
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov ebx, dword [edx + 8]
cmp eax, ebx
je 0x4090e6
push 0x412800
push str._of
call fcn.00409580
mov eax, dword [ebp + 8]
push eax
call fcn.00409610
push 0x4127f0
push str._from
call fcn.00409580
movzx eax, byte [ebp - 0xc]
push eax
call fcn.00409720
push 0x412800
push 0x4127e9
call fcn.00409580
movzx ebx, byte [ebp + 0xc]
push ebx
call fcn.00409720
cmp byte [ebp + 0x10], 0
je 0x40912d
push 0x4127d8
push str._yielding_to
call fcn.00409580
call fcn.004094c0
movzx eax, byte [ebp + 0xc]
or eax, eax
jne 0x409164
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_SuspendThread
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xffffffff
cmp eax, 0xffffffff
jne 0x409267
call fcn.004098c0
jmp 0x409267
movzx eax, byte [ebp + 0xc]
mov ebx, dword [eax*4 + 0x415bbc]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
call sub.KERNEL32.dll_GetThreadPriority
cmp dword [ebp - 8], eax
je 0x4091db
cmp byte [0x41419e], 0
je 0x4091c1
mov eax, dword [ebp - 8]
movzx ebx, byte [eax + 0x415baf]
mov dword [ebp - 0x30], ebx
or ebx, ebx
jne 0x4091a7
mov bh, byte [ebp + 0xc]
mov byte [eax + 0x415baf], bh
jmp 0x4091c1
movzx ebx, byte [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x4091c1
push 0x4127b4
push str.Warning:_non_unique_priority
call fcn.004095b0
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_SetThreadPriority
mov dword [ebp - 4], eax
or eax, eax
jne 0x4091db
call fcn.004098c0
movzx eax, byte [ebp - 0xc]
or eax, eax
jne 0x409204
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_ResumeThread
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xffffffff
cmp eax, 0xffffffff
jne 0x409204
call fcn.004098c0
cmp byte [ebp + 0x10], 0
je 0x409267
mov eax, dword [ebp + 8]
mov byte [eax + 0x32], 0
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 8]
cmp ebx, ecx
jne 0x409225
call fcn.004056f0
jmp 0x409267
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_SuspendThread
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xffffffff
cmp eax, 0xffffffff
jne 0x409246
call fcn.004098c0
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_ResumeThread
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xffffffff
cmp eax, 0xffffffff
jne 0x409267
call fcn.004098c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x439330
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x4393b6
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 0x43936f
movzx ebx, byte [ecx + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x597930]
inc edx
cmp edx, esi
jl 0x439353
xor edx, edx
mov esi, dword [edi + 0xc]
cmp esi, edx
jle 0x43939a
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 + 0x597930]
inc edx
cmp edx, esi
jl 0x439380
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 0x43e6a0
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 [0x5716c8]
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 0x43e768
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 [0x5716d8]
pand mm3, qword [0x5716e0]
pand mm2, qword [0x5716e0]
psubw mm3, mm2
pmullw mm3, mm7
psrlw mm3, 8
paddw mm3, mm2
pand mm3, qword [0x5716e0]
por mm3, mm1
pand mm5, qword [0x5716c8]
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x571718]
pand mm3, mm5
por mm4, mm3
movq qword [ebx], mm4
add esi, 8
add edi, 8
add ebx, 8
dec ecx
jne 0x43e6ec
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x43e7c7
movd mm5, dword [esi]
movd mm4, dword [edi]
movq mm3, mm5
movq mm2, mm4
punpcklbw mm3, dword [0x5716b8]
punpcklbw mm2, dword [0x5716b8]
psubw mm3, mm2
pmullw mm3, mm7
psrlw mm2, 8
paddw mm3, mm2
psrlw mm3, 8
packuswb mm3, mm3
pand mm5, qword [0x5716c8]
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x571718]
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 0x43e6e3
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x28
Function at 0x43e7e0
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 0x43e8ee
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 [0x5716d8]
movq mm2, mm5
movq mm1, mm4
pand mm2, qword [0x5716e0]
pand mm1, qword [0x5716e0]
psubw mm2, mm1
pmullw mm2, mm7
psrlw mm2, 8
paddw mm2, mm1
pand mm2, qword [0x5716e0]
por mm3, mm2
pand mm5, qword [0x5716c8]
pand mm3, qword [0x5716c8]
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x571718]
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 0x43e833
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x43e996
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 [0x5716d8]
movq mm2, mm5
movq mm1, mm4
pand mm2, qword [0x5716e0]
pand mm1, qword [0x5716e0]
psubw mm2, mm1
pmullw mm2, mm7
psrlw mm2, 8
paddw mm2, mm1
pand mm2, qword [0x5716e0]
por mm3, mm2
pcmpeqd mm5, mm6
pand mm4, mm5
pxor mm5, qword [0x571718]
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 0x43e826
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x28
Function at 0x442670
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 [0x5716c8]
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 0x4426d3
movq mm6, qword [esi]
movq mm5, qword [edi]
movq mm4, mm6
pand mm4, qword [0x5716c8]
movq mm3, mm7
pcmpeqd mm4, mm3
pand mm5, mm4
pxor mm4, qword [0x571718]
pand mm6, mm4
por mm6, mm5
movq qword [edi], mm6
add esi, 8
add edi, 8
dec ecx
jne 0x4426a1
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x44270d
movd mm6, dword [esi]
movd mm5, dword [edi]
movq mm4, mm6
pand mm4, qword [0x5716c8]
movq mm3, mm7
pcmpeqd mm4, mm3
pand mm5, mm4
pxor mm4, qword [0x571718]
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 0x442698
emms
pop edi
pop esi
pop ebp
ret 0x1c

Function at 0x442720
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 [0x5716c8]
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 0x4427d0
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 [0x5716c8]
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 [0x5716c8]
movq mm4, mm7
pcmpeqd mm4, mm6
pand mm5, mm4
pxor mm4, qword [0x571718]
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 0x442755
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x442835
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 [0x5716c8]
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 [0x5716c8]
movq mm4, mm7
pcmpeqd mm4, mm6
pand mm5, mm4
pxor mm4, qword [0x571718]
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 0x44274c
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c

Function at 0x449840
Capabilities:
Write file on windows

Disassembly:
push 0x22
call fcn.00448990
mov eax, dword [0x5c05c0]
mov ecx, dword [0x5c05b8]
mov edx, dword [esp + 8]
add eax, ecx
push edx
mov dword [0x5b85a4], eax
call fcn.00448a30
add esp, 8
mov dword [esp + 4], str._tenter_n
jmp fcn.0044b850
Function at 0x449ba0
Capabilities:
Write file on windows

Disassembly:
push esi
push 1
call fcn.00448990
movzx esi, word [esp + 0xc]
push esi
call fcn.004489e0
push esi
push str._ttrap_t_d_n
call fcn.0044b850
push 1
xor esi, esi
call fcn.00448c20
push 0x26
call fcn.00448990
add esp, 0x18
pop esi
mov dword [esp + 4], str._tret_n_n
jmp fcn.0044b850

Function at 0x44b850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x59f740]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x5c05c8], 0
je 0x44b8b7
cmp dword [0x5c05b4], 0
mov eax, dword [esp + 0x408]
jne 0x44b882
cmp byte [eax], 0x2a
je 0x44b8b7
lea ecx, [esp + 0x40c]
push ecx
push eax
lea edx, [esp + 8]
push edx
call dword [0x57130c]
mov eax, dword [0x5c05c8]
push eax
lea ecx, [esp + 4]
push ecx
call dword [0x5710f8]
push eax
lea edx, [esp + 8]
push 1
push edx
call fcn.005186ff
add esp, 0x10
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00517235
add esp, 0x404
ret

Function at 0x44d3d0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
mov dword [0x5d09c0], eax
test cl, cl
je 0x44d3fe
push esi
mov edi, edi
lea esi, [eax*8]
sub esi, eax
movsx ecx, cl
mov eax, esi
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
mov dword [0x5d09c0], eax
test cl, cl
jne 0x44d3e0
pop esi
ret

Function at 0x44da80
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [ecx]
xor eax, eax
push esi
mov esi, 0x5d09d0
mov dword [0x5d09c0], eax
mov byte [0x5d09d0], dl
test dl, dl
je 0x44dabf
lea esp, [esp]
lea edx, [eax*8]
sub edx, eax
mov eax, edx
movsx edx, byte [ecx]
inc ecx
xor eax, edx
mov dl, byte [ecx]
inc esi
mov byte [esi], dl
test dl, dl
jne 0x44daa0
mov dword [0x5d09c0], eax
call fcn.0044d300
mov ecx, dword [esp + 8]
mov dword [eax + 4], 0xffffffe5
mov dword [eax + 0xc], ecx
pop esi
ret

Function at 0x4575f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
call fcn.0050e940
call fcn.00444b00
push 0xffffffffffffffff
call fcn.00448840
call fcn.00445200
push 0
call fcn.005165f0
add esp, 8
call fcn.00514590
call fcn.0042d110
call fcn.00511430
call fcn.0050fd20
call fcn.0050e650
call fcn.00511460
call fcn.0049c8b0
mov esi, 0x5d19d8
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x457655
push eax
call fcn.00494f10
add esp, 4
mov dword [esi], 0
add esi, 4
cmp esi, 0x5d19f8
jl 0x457640
mov eax, dword [0x5d1f54]
test eax, eax
je 0x457682
push eax
mov eax, dword [0x7717c8]
push 0xfffffffffffffffc
push eax
call dword [0x5712d8]
mov dword [0x5d1f54], 0
cmp dword [0x5d1f50], 0
je 0x4576a0
push 0x5d19fc
call dword [0x5710c4]
mov dword [0x5d1f50], 0
cmp byte [0x5d1a18], 0
je 0x4576f1
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x5d1a18
mov dword [esp + 0xc], 0x57367c
call fcn.004547b0
mov esi, eax
add esp, 4
test esi, esi
je 0x4576ea
mov edx, dword [0x5d1f44]
mov eax, dword [0x5d1b1c]
push esi
push 1
push edx
push eax
call fcn.005186ff
push esi
call fcn.00517b6a
add esp, 0x14
mov byte [0x5d1a18], 0
mov eax, 1
pop esi
add esp, 8
ret