joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dc39
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x438278]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41dc7c
cmp word [esi], dx
jne 0x41dc7c
or byte [edi + eax + 0x28], 4
jmp 0x41dc81
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41ddd4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ddb4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41dcc3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41dcf9
cmp eax, edx
jae 0x41dd05
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41dc9b
jmp 0x41ddd4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ddb0
cmp dword [ebp - 0x14], 0
je 0x41ddb0
mov eax, dword [ebx*4 + 0x438278]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41dd88
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41dd51
mov word [esi], cx
jmp 0x41dd84
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x438278]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x438278]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x438278]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41ddd4
pop ebx
cmp word [ebp - 4], bx
jne 0x41dd99
cmp esi, dword [ebp + 0xc]
jne 0x41dd99
mov word [esi], bx
jmp 0x41ddd1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004248e4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41ddd4
push 0xd
jmp 0x41ddcd
mov ecx, dword [ebx*4 + 0x438278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ddcb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ddd4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e5f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e466
Function at 0x41fbb8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41fc55
push ebx
push esi
call fcn.0041fb81
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041faca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fc02
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fc54
push edi
push eax
call fcn.0041b061
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41fc22
call fcn.0041a12f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fc53
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041faca
add esp, 0x20
test eax, eax
jne 0x41fc41
push edi
call fcn.0041a12f
jmp 0x41fc49
push ebx
call fcn.0041a12f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x425675
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004255f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4257ed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4257ed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42579c
jg 0x4256ce
test eax, eax
je 0x425792
push 1
push 0x1000
call fcn.0041a0d2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4256f4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x425789
push 0x8000
push ebx
call fcn.00419c84
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x425720
jg 0x42571b
cmp ecx, 0x1000
jb 0x425720
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00421c2a
add esp, 0x10
cmp eax, 0xffffffff
je 0x425765
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42571b
jl 0x42574c
test ecx, ecx
jne 0x42570d
push dword [ebp - 0xc]
push ebx
call fcn.00419c84
push esi
call fcn.0041a12f
add esp, 0xc
xor edi, edi
jmp 0x4257fe
cmp byte [edi + 0x24], 0
je 0x42577c
cmp dword [edi + 0x20], 5
jne 0x42577c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425787
mov edi, dword [edi + 0x18]
jmp 0x425789
xor edi, edi
push esi
call fcn.0041a12f
pop ecx
jmp 0x4257fe
test ecx, ecx
jg 0x42575e
jl 0x42579c
test eax, eax
jae 0x42575e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004248e4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4257bf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42575e
jmp 0x4257f6
push ebx
call fcn.004204cb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42575e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4257fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4257fb
mov edi, dword [edi + 0x18]
jmp 0x4257fe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004248e4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4011ad
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
not eax
and eax, 1
ret

Function at 0x4011c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
add esi, 0x20
sub dword [ebp + 0x14], 0x20
jmp 0x4011fa
push dword [ebp + 0x14]
push esi
push edi
call fcn.00401da9
add esp, 0xc
test eax, eax
je 0x401202
inc edi
dec dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jge 0x4011e5
xor esi, esi
cmp dword [ebp + 0xc], esi
jge 0x401213
push str.Could_not_set_new_icon.
call fcn.00401009
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401209
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x28]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
push edi
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d9a
leave
ret
Function at 0x401d9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414004]
jne 0x401da4
repz ret
jmp fcn.004051ec

Function at 0x40b5bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040770a
and dword [ebp - 4], 0
cmp dword [0x418f00], 0
mov ebx, eax
jne 0x40b66d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b71e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41214c
push edi
call esi
test eax, eax
je 0x40b71e
push eax
call fcn.00407698
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418f00], eax
call esi
push eax
call fcn.00407698
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418f04], eax
call esi
push eax
call fcn.00407698
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418f08], eax
call esi
push eax
call fcn.00407698
pop ecx
mov dword [0x418f10], eax
test eax, eax
je 0x40b66d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407698
pop ecx
mov dword [0x418f0c], eax
mov eax, dword [0x418f0c]
cmp eax, ebx
je 0x40b6c5
cmp dword [0x418f10], ebx
je 0x40b6c5
push eax
call fcn.00407713
push dword [0x418f10]
mov esi, eax
call fcn.00407713
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b6c5
test edi, edi
je 0x40b6c5
call esi
test eax, eax
je 0x40b6bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b6bc
test byte [ebp - 0xc], 1
jne 0x40b6c5
or dword [ebp + 0x10], 0x200000
jmp 0x40b6fe
mov eax, dword [0x418f04]
cmp eax, ebx
je 0x40b6fe
push eax
call fcn.00407713
pop ecx
test eax, eax
je 0x40b6fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b6fe
mov eax, dword [0x418f08]
cmp eax, ebx
je 0x40b6fe
push eax
call fcn.00407713
pop ecx
test eax, eax
je 0x40b6fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418f00]
call fcn.00407713
pop ecx
test eax, eax
je 0x40b71e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b720
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x439fb7
jmp 0x439fa0
mov cl, byte [eax]
movzx edx, cl
mov dl, byte [edx + 0x5da198]
xor dl, cl
mov byte [eax], dl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x439fa0
ret
Function at 0x44bc60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004811b0
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44bd3f
cmp dword [eax + 0x78], 0xa
jne 0x44bd3f
mov eax, dword [edi + 0x20]
test eax, eax
je 0x44bd3f
mov eax, dword [eax + 0xc0]
test eax, eax
je 0x44bd3f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
cmp eax, 2
mov eax, dword [edi + 0x20]
jne 0x44bd32
add eax, 0xc0
mov eax, dword [eax]
test eax, eax
je 0x44bcc6
add eax, 0xfffffffc
jmp 0x44bcc8
xor eax, eax
mov ecx, dword [eax + 0xb8]
test ecx, ecx
je 0x44bcdd
mov esi, dword [ecx + 0x164]
jmp 0x44bd63
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x44bd74
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi], 5
mov dword [esi + 4], ecx
mov edx, dword [eax + 0x18]
mov edi, dword [edx + 0x20]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44bd04
mov ecx, dword [ebx + 0x1c]
push 3
sub eax, edx
push 1
inc eax
push eax
call fcn.005bdaa0
mov dword [esi + 8], eax
mov ecx, edi
mov dl, byte [ecx]
inc ecx
mov byte [eax], dl
inc eax
test dl, dl
jne 0x44bd20
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov ecx, dword [eax + 0xc0]
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x44bd74
mov ecx, edi
call fcn.004811c0
test eax, eax
je 0x44bd4f
mov esi, dword [eax + 0x3c]
jmp 0x44bd63
mov eax, dword [edi + 0x20]
test eax, eax
je 0x44bd74
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x44bd74
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x44bd74
push esi
mov ecx, ebp
call fcn.0047ca10
cmp eax, 1
jne 0x44bda4
mov esi, dword [edi + 0x10]
test esi, esi
mov ebx, 1
je 0x44bd9d
mov edi, dword [esp + 0x1c]
push edi
push esi
push ebp
call fcn.0044bc60
add esp, 0xc
cmp eax, 0xffffffff
je 0x44bdf1
mov esi, dword [esi + 0xc]
add ebx, eax
test esi, esi
jne 0x44bd84
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
push esi
mov ecx, ebp
call fcn.0047ca10
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov dword [edi], eax
mov dword [edi + 4], ebp
call fcn.004de7d0
mov eax, dword [eax]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44bdc1
sub eax, ecx
mov ecx, dword [ebx + 0x1c]
push 3
push 1
inc eax
push eax
call fcn.005bdaa0
mov ecx, esi
mov dword [edi + 8], eax
call fcn.004de7d0
mov eax, dword [eax]
mov edi, dword [edi + 8]
mov cl, byte [eax]
inc eax
mov byte [edi], cl
inc edi
test cl, cl
jne 0x44bde7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x453e40
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, ecx
mov ecx, dword [esp + 0xc]
push ebx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 8]
push esi
mov dword [eax], 0x5dacec
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
xor ebx, ebx
lea esi, [eax + 0x43c]
mov edx, ebx
shr edx, 1
test bl, 1
je 0x453e81
xor edx, 0xedb88320
test dl, 1
je 0x453e90
shr edx, 1
xor edx, 0xedb88320
jmp 0x453e92
shr edx, 1
test dl, 1
je 0x453ea1
shr edx, 1
xor edx, 0xedb88320
jmp 0x453ea3
shr edx, 1
test dl, 1
je 0x453eb2
shr edx, 1
xor edx, 0xedb88320
jmp 0x453eb4
shr edx, 1
test dl, 1
je 0x453ec3
shr edx, 1
xor edx, 0xedb88320
jmp 0x453ec5
shr edx, 1
test dl, 1
je 0x453ed4
shr edx, 1
xor edx, 0xedb88320
jmp 0x453ed6
shr edx, 1
test dl, 1
je 0x453ee5
shr edx, 1
xor edx, 0xedb88320
jmp 0x453ee7
shr edx, 1
test dl, 1
je 0x453ef6
shr edx, 1
xor edx, 0xedb88320
jmp 0x453ef8
shr edx, 1
mov dword [esi], edx
inc ebx
add esi, 4
cmp ebx, 0x100
jb 0x453e72
pop esi
mov byte [eax + 0x93b], cl
pop ebx
ret 0xc

Function at 0x453f70
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [ecx + 0x10]
test edx, edx
push ebx
push ebp
push esi
push edi
je 0x454061
mov edi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
lea esi, [edi + 4]
cmp esi, ebp
jae 0x454061
xor eax, eax
mov dword [ecx + 8], esi
mov ah, byte [edi + edx]
movzx ebx, byte [edi + edx + 2]
mov al, byte [edi + edx + 1]
movzx edi, byte [edi + edx + 3]
shl eax, 8
or eax, ebx
shl eax, 8
or edi, eax
lea eax, [esi + 4]
cmp eax, ebp
jae 0x454061
xor ebx, ebx
mov dword [ecx + 8], eax
mov bh, byte [esi + edx]
movzx eax, byte [esi + edx + 2]
mov bl, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 3]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x18]
shl ebx, 8
or ebx, edx
mov dword [eax], ebx
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
lea edx, [eax + edi + 4]
cmp edx, esi
mov dword [esp + 0x10], ebx
jae 0x454061
mov esi, 0xfffffffc
or edx, 0xffffffff
cmp edi, esi
jle 0x454026
mov ebx, dword [ecx + 0x10]
lea ebp, [eax + ebx]
xor ebx, ebx
mov bl, byte [esi + ebp]
xor ebx, edx
and ebx, 0xff
shr edx, 8
xor edx, dword [ecx + ebx*4 + 0x43c]
inc esi
cmp esi, edi
jl 0x454006
mov ebx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x10]
lea esi, [eax + edi]
movzx ecx, byte [esi + ebp + 2]
xor eax, eax
mov ah, byte [esi + ebp]
add esi, ebp
not edx
mov al, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl eax, 8
or eax, ecx
cmp edx, eax
jne 0x454061
cmp ebx, 0x49454e44
je 0x454061
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 4
Function at 0x456060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov eax, esi
imul eax, ecx
lea eax, [eax + eax*2]
cmp eax, 0x800000
jae 0x4560a6
cmp ecx, 0xb40
jg 0x4560a6
cmp esi, 0xb40
jle 0x4560ba
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x456087
cmp ecx, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
jl 0x4561d0
cmp esi, 1
jl 0x4561d0
mov esi, dword [esp + 0x64]
mov ecx, esi
mov dword [esi + 0x130], 1
call fcn.004a4670
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
xor ebp, ebp
push ebp
push 7
push ebp
push 6
push ecx
push edx
mov ecx, esi
call dword [eax + 0x3c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004de6f0
cmp dword [esp + 0x3c], ebp
je 0x4561c7
lea ecx, [esp + 0x20]
call fcn.004ddf40
test eax, eax
je 0x4561c7
lea ecx, [esp + 0x20]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.0046f030
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov ecx, dword [ebx + 0x54]
push 2
lea edx, [esp + 0x14]
push edx
push eax
push ecx
mov ecx, edi
call fcn.0046fd50
mov dword [esi + 0x11c], ebp
mov dword [esi + 0x120], ebp
mov edx, dword [ebx + 0x54]
mov ecx, edi
mov dword [esi + 0x134], edx
call fcn.0046f0d0
mov eax, dword [esi + 0x450]
push eax
mov ecx, edi
mov dword [esi + 0x134], ebp
call fcn.0046f030
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.004ef1e0
lea ecx, [esp + 0x20]
call fcn.004ddf60
mov dword [esi + 0x130], ebp
lea ecx, [esp + 0x20]
call fcn.004de740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4602c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
mov ebx, dword [eax + 0x90]
test ebx, ebx
push edi
mov dword [ebp - 4], ebx
je 0x4604db
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov ecx, edi
shl ecx, 8
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0xec]
shl ecx, 8
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push edx
mov ecx, edx
push ecx
add eax, 0x20
push eax
call fcn.0043c700
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x20]
sar eax, 8
xor edx, edx
add esp, 0xc
cmp eax, edx
mov dword [ebp - 8], eax
jne 0x4603dd
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [ecx + 0x94]
sar eax, 0xf
add eax, 0x80
sub esi, edi
and edx, 0xc
push edx
push eax
call fcn.0045ff30
movzx dx, byte [ebx + eax*4 + 2]
movzx cx, byte [ebx + eax*4 + 3]
lea eax, [ebx + eax*4]
mov word [ebp - 8], dx
movzx dx, byte [eax]
mov word [ebp - 6], cx
movzx cx, byte [eax + 1]
mov word [ebp - 0xc], dx
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 8
test eax, eax
mov word [ebp - 0xa], cx
mov dword [ebp + 8], eax
je 0x4603a5
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
movq mm0, qword [ebp - 0xc]
movq qword [edi], mm0
movq qword [edi + 8], mm0
movq qword [edi + 0x10], mm0
movq qword [edi + 0x18], mm0
add edi, 0x20
sub ecx, 1
jne 0x46038c
emms
mov ecx, eax
neg ecx
lea ecx, [esi + ecx*4]
mov esi, dword [ebp + 0x14]
shl eax, 5
add esi, eax
test ecx, ecx
je 0x4604db
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [ecx*8 - 5]
shr ecx, 2
lea edi, [esi + 8]
mov dword [esi], edx
mov dword [esi + 4], eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x94]
shr ecx, 2
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], 0x80
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0xff
mov dword [ebp - 0x18], edx
push ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
sub ebx, eax
test ebx, ebx
je 0x4604d8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x14]
pxor mm0, mm0
movq mm1, qword [ebp - 0x2c]
movq mm2, qword [ebp - 0x24]
cmp dword [ebp + 8], 0
je 0x4604b0
movq mm4, qword [ebp - 0x1c]
cmp dword [ebp + 8], 1
je 0x460470
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pand mm3, mm4
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x460440
jmp 0x4604d8
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pshufw mm5, mm3, 0xe4
pand mm5, mm2
pcmpeqd mm5, mm2
pxor mm3, mm5
pand mm3, mm4
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x460470
jmp 0x4604d8
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pminsw mm3, mm2
pmaxsw mm3, mm0
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x4604b0
pop ebx
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4604f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x38]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x460670
mov edx, dword [edi + 0xc]
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, ebp
shl ecx, 8
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 0xec]
shl ecx, 8
mov dword [esp + 0x10], ecx
mov cl, byte [0x634a51]
add eax, 0x20
lea edx, [esp + 0xc]
test cl, cl
mov ecx, edx
je 0x460546
push edx
call fcn.00456b90
add esp, 4
jmp 0x460551
push ecx
push edx
push eax
call fcn.0043c700
add esp, 0xc
mov eax, dword [edi + 0x38]
mov edi, dword [esp + 0x28]
push ebx
mov ebx, dword [eax + 0x20]
sar ebx, 8
sub edi, ebp
test ebx, ebx
jne 0x4605e2
movzx eax, byte [eax + 0x94]
mov ecx, dword [esp + 0x10]
and eax, 0xc
sar ecx, 0xf
push eax
add ecx, 0x80
push ecx
call fcn.0045ff30
movzx dx, byte [esi + eax*4 + 3]
movzx cx, byte [esi + eax*4 + 2]
lea eax, [esi + eax*4]
mov word [esp + 0x26], dx
movzx dx, byte [eax + 1]
movzx ax, byte [eax]
add esp, 8
test edi, edi
mov word [esp + 0x1c], cx
mov word [esp + 0x1a], dx
mov word [esp + 0x18], ax
je 0x46066e
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
lea ecx, [edi*8 - 5]
pop ebx
lea edi, [esi + 8]
mov dword [esi + 4], edx
shr ecx, 2
pop ebp
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x10
ret
test edi, edi
je 0x46066e
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x38]
movzx edx, byte [edx + 0x94]
mov eax, ebp
sar eax, 0xf
and edx, 0xc
add eax, 0x80
cmp edx, 4
je 0x46062d
cmp edx, 8
je 0x460637
cmp eax, 0x100
jle 0x460625
mov eax, 0x100
jmp 0x46063c
test eax, eax
jge 0x46063c
xor eax, eax
jmp 0x46063c
test ah, 1
je 0x460637
xor eax, 0xff
and eax, 0xff
movzx dx, byte [esi + eax*4 + 3]
mov word [ecx + 6], dx
movzx dx, byte [esi + eax*4 + 2]
mov word [ecx + 4], dx
movzx dx, byte [esi + eax*4 + 1]
mov word [ecx + 2], dx
movzx ax, byte [esi + eax*4]
mov word [ecx], ax
add ebp, ebx
add ecx, 8
dec edi
mov dword [esp + 0x10], ebp
jne 0x4605f2
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret
Function at 0x460fb0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x634a50]
test al, al
je 0x460fe8
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x38]
mov eax, dword [ecx]
cmp eax, 0x13
mov dword [esp + 4], edx
jne 0x460fd0
jmp fcn.00460680
cmp eax, 0x12
jne 0x460fe3
test byte [ecx + 0x94], 0xc
jne 0x460fcb
jmp fcn.00460cd0
jmp fcn.004602c0
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx]
cmp eax, 0x13
mov dword [esp + 4], ecx
jne 0x460fff
jmp fcn.00460a20
cmp eax, 0x12
jne 0x461009
jmp fcn.00460e30
jmp fcn.004604f0