joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a7b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x49a875
lea eax, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x49a85d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x49a842
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.0043566b
mov esi, eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.0043566b
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x49a85b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x49a85b
push 0x231e
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x49a873
push 1
push 0
push 0xffb
push 0x260c
call fcn.0046fee8
add esp, 0x10
jmp 0x49a89f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x62b
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0
call fcn.0046272b
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49cd1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x49cdb9
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x49cd99
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x49cd85
push 0
push 0x47a
push 0x2482
push 0x16c1
push 0x601
push 0x1958
push 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
jmp 0x49cd97
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x49cdb7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00459716
add esp, 0x10
jmp 0x49cdcd
push 0x482d
push 0
push 0x6189
call fcn.0045840a
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4b961e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c27e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004ad05b
mov dword [ebp - 0x14], eax
cmp dword [0xab681c], esi
jne 0x4b9711
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4b969e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b97f1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4b97f1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b97f1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xab681c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xab6820], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xab6824], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xab682c], eax
test eax, eax
je 0x4b970e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xab6828], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b9736
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b9729
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4b974b
push 4
pop eax
jmp 0x4b97f3
cmp dword [ebp - 0x14], esi
je 0x4b974b
push dword [0xab681c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b9730
mov eax, dword [0xab6828]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4b97a9
cmp dword [0xab682c], edi
je 0x4b97a9
push eax
call ebx
push dword [0xab682c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b97a9
test eax, eax
je 0x4b97a9
call ecx
test eax, eax
je 0x4b979e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b979e
test byte [ebp - 8], 1
jne 0x4b97a9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4b97d9
mov eax, dword [0xab6820]
cmp eax, edi
je 0x4b97d6
push eax
call ebx
test eax, eax
je 0x4b97d6
call eax
mov esi, eax
test esi, esi
je 0x4b97d6
mov eax, dword [0xab6824]
cmp eax, edi
je 0x4b97d6
push eax
call ebx
test eax, eax
je 0x4b97d6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xab681c]
call ebx
test eax, eax
je 0x4b97f1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4b97f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa4bb
mov esp, ebp
pop ebp
ret
Function at 0x405ff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
mov eax, dword [esp + 8]
push esi
push edi
mov esi, ecx
lea edi, [edx + eax]
jne 0x40600c
pop edi
mov dword [esi], edx
xor eax, eax
pop esi
ret 8
cmp edx, edi
jae 0x406035
push ebx
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor ecx, ebx
mov ecx, dword [ecx*4 + 0x4a051c]
xor ecx, eax
inc edx
cmp edx, edi
mov dword [esi], ecx
jb 0x406011
pop ebx
mov eax, dword [esi]
pop edi
pop esi
ret 8

Function at 0x407530
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x8000
call fcn.00489630
mov eax, dword [ecx]
mov edx, dword [esp + 0x8010]
push eax
mov eax, dword [edx]
push 0x7fff
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x8018]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x8018]
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp]
test edx, edx
je 0x4075d0
mov al, byte [esp]
test al, al
je 0x4075d0
push ebx
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
lea edi, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
push eax
call fcn.00488e10
mov ecx, ebx
mov edx, ecx
mov edi, eax
mov eax, dword [esp + 0x8014]
shr ecx, 2
mov dword [eax], edi
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
pop edi
pop esi
mov byte [ecx + ebx], 0
pop ebx
add esp, 0x8000
ret 0x10
mov eax, dword [esp + 0x8004]
mov dword [eax], 0x4b1de8
add esp, 0x8000
ret 0x10
Function at 0x407fe0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x40801b
mov eax, dword [0x4b1dfc]
test eax, eax
je 0x408014
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
push ecx
push edx
push 0
push str.file_not_opened
push 5
push str.RES__s__.4s
push eax
call fcn.00408f90
add esp, 0x1c
push 1
call fcn.0048abad
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.00408110
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x408063
mov eax, dword [0x4b1dfc]
test eax, eax
je 0x40805c
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push str.Load
push 0xb
push str.RES__s__.4s
push eax
call fcn.00408f90
add esp, 0x1c
push 1
call fcn.0048abad
mov edx, dword [esp + 0x10]
push ebx
push edi
push edx
mov ecx, esi
call fcn.00407b80
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
mov ebx, dword [esp + 0x20]
jne 0x408090
mov eax, ebp
imul eax, ebx
push eax
call fcn.00488e10
add esp, 4
mov dword [edi], eax
jmp 0x4080b8
mov eax, dword [0x4b1dfc]
test eax, eax
je 0x4080b8
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
push ecx
push edx
push 0
push str.Already_loaded
push 5
push str.RES__s__.4s
push eax
call fcn.00408f90
add esp, 0x1c
cmp dword [edi], 0
jne 0x4080d7
mov ecx, dword [0x4b1dfc]
push ebp
lea eax, [esp + 0x1c]
push eax
push str.ResLoad::type_.4s_no_sub_i_Not_enough_Memory
push ecx
call fcn.00408b40
add esp, 0x10
test ebp, ebp
jle 0x408103
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [esi]
add ecx, edi
push ebx
push ecx
mov ecx, esi
call dword [edx + 4]
mov edx, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.00407d00
add edi, ebx
dec ebp
jne 0x4080dd
mov ebp, dword [esp + 0x10]
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret 0xc

Function at 0x408b40
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x400
push esi
lea eax, [esp + 0x410]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.004895d0
mov esi, dword [esp + 0x414]
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call fcn.00408ae0
mov eax, dword [esi + 8]
add esp, 8
test eax, eax
je 0x408b86
push eax
call fcn.0048905c
add esp, 4
push 1
mov dword [esi + 8], 0
call fcn.0048abad
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x41b8e0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004149c0
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov eax, 0x43800000
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
push str.Self_Created_Hardware_Prerendered_Ground
lea ecx, [esi + 8]
mov dword [esi], 0x4984a0
mov dword [esi + 0x24], 0x3f800000
mov word [esi + 0x2fe], bp
mov word [esi + 0x300], bx
mov dword [esi + 0x78], 1
mov dword [esi + 4], eax
mov dword [esi + 0x394], 0
call fcn.00406190
mov eax, ebp
cdq
and edx, 0xff
add eax, edx
mov edi, eax
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
sar edi, 8
sar eax, 8
inc edi
inc eax
imul edi, eax
inc edi
lea ecx, [edi + edi*8]
shl ecx, 2
push ecx
mov word [esi + 0x2f8], 0x225
call fcn.00488e10
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esi + 0x490], eax
jne 0x41b99d
push edi
push str.texcoor
push 2
mov ecx, esi
call fcn.00414ce0
push 1
call fcn.0048abad
mov eax, dword [esp + 0x20]
test eax, eax
mov word [esi + 0x494], bx
mov dword [esp + 0x18], 0
jle 0x41baa9
mov dword [esp + 0x10], eax
xor ecx, ecx
test ebp, ebp
jle 0x41ba85
lea eax, [ebx + ebx*8]
shl eax, 2
mov edi, ebp
test eax, eax
je 0x41b9dc
mov edx, dword [esi + 0x490]
mov dword [eax + edx - 4], ebx
movsx edx, word [esi + 0x494]
mov ebp, dword [esi + 0x490]
mov dword [eax + ebp + 4], edx
mov ebp, dword [esi + 0x490]
xor edx, edx
cmp edi, 0x100
mov dword [eax + ebp + 8], edx
mov ebp, dword [esi + 0x490]
mov dword [eax + ebp + 0xc], edx
mov edx, dword [esi + 0x490]
mov ebp, dword [esp + 0x18]
mov dword [eax + edx + 0x18], ecx
mov edx, dword [esi + 0x490]
mov dword [eax + edx + 0x1c], ebp
mov edx, 0x100
jg 0x41ba2a
mov edx, edi
mov ebp, dword [esi + 0x490]
mov dword [eax + ebp + 0x10], edx
mov edx, dword [esp + 0x10]
cmp edx, 0x100
jle 0x41ba45
mov edx, 0x100
mov ebp, dword [esi + 0x490]
mov dword [eax + ebp + 0x14], edx
mov edx, dword [esi + 0x490]
mov ebp, dword [esp + 0x1c]
mov dword [eax + edx + 0x20], 0
add word [esi + 0x494], 2
add ecx, 0x100
inc ebx
add eax, 0x24
sub edi, 0x100
cmp ecx, ebp
jl 0x41b9ce
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
add ecx, 0x100
sub edi, 0x100
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
jl 0x41b9bc
movsx eax, word [esi + 0x494]
shl eax, 2
push eax
call fcn.00488e10
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esi + 0x498], eax
jne 0x41bae8
movsx ecx, word [esi + 0x494]
push ecx
push str.textures
push 2
mov ecx, esi
call fcn.00414ce0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
xor eax, eax
cmp word [esi + 0x494], cx
jle 0x41bb14
mov edx, dword [esi + 0x498]
mov dword [edx + eax*4], ecx
mov edx, dword [esi + 0x498]
mov dword [edx + eax*4 + 4], ecx
movsx edx, word [esi + 0x494]
add eax, 2
cmp eax, edx
jl 0x41baf3
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x429f10
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov esi, ecx
push 1
push esi
mov ecx, edi
call dword [eax + 4]
mov al, byte [esi]
test al, 8
je 0x429f67
test al, 1
je 0x429f5a
add esi, 8
push edi
mov ecx, esi
call fcn.00406420
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x429f67
mov edx, dword [esi]
lea eax, [edx + ecx]
mov dl, byte [eax]
xor dl, 0x17
dec ecx
mov byte [eax], dl
jns 0x429f46
pop edi
pop esi
ret 4
mov eax, dword [edi]
push 4
add esi, 4
push esi
mov ecx, edi
call dword [eax + 4]
pop edi
pop esi
ret 4

Function at 0x429f70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp]
push esi
mov esi, ecx
push 1
push esi
mov ecx, ebp
call dword [eax + 8]
mov al, byte [esi]
test al, 8
je 0x42a036
test al, 1
je 0x42a028
mov esi, dword [esi + 8]
cmp byte [esi], 0
push edi
je 0x429fda
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
and ecx, 0xfffffff0
add ecx, 0x10
push ecx
call fcn.00488e10
mov ecx, ebp
mov edx, ecx
mov ebx, eax
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp], 0
mov ebp, dword [esp + 0x14]
jmp 0x429fdf
mov ebx, 0x4b1de8
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x429ffb
mov dl, byte [ecx + ebx]
xor dl, 0x17
dec ecx
mov byte [ecx + ebx + 1], dl
jns 0x429fee
mov edx, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
mov ecx, ebp
call dword [edx + 8]
cmp ebx, 0x4b1de8
pop edi
je 0x42a036
push ebx
call fcn.00488e76
add esp, 4
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [ebp]
push 4
add esi, 4
push esi
mov ecx, ebp
call dword [eax + 8]
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42b180
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0x800000
push edi
ja 0x42b1ce
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
xor eax, eax
mov al, byte [esi + 0xc]
shl ecx, 1
push edx
and eax, 1
or eax, ecx
shl eax, 7
mov dword [esi], eax
call fcn.004893c4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov byte [esi + 0xc], al
and eax, 0xff
shr eax, 1
shl ecx, 8
or edx, eax
mov eax, ecx
add esp, 4
cmp eax, 0x800000
mov dword [esi], edx
mov dword [esi + 4], ecx
jbe 0x42b18d
mov edi, dword [esi + 4]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
shr edi, cl
xor edx, edx
div edi
mov dword [esi + 8], edi
pop edi
pop esi
mov edx, eax
shr edx, cl
test edx, edx
je 0x42b1f2
mov eax, 1
shl eax, cl
dec eax
ret 4
Function at 0x42b2c0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
je 0x42b2df
mov ecx, dword [esi + 0x14]
inc ecx
pop edi
mov dword [esi + 0x14], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], 0
pop esi
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x42b2f5
add eax, eax
cmp eax, ecx
mov dword [esi + 0xc], eax
jle 0x42b2f5
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x1c]
xor edi, edi
mov di, word [ecx + eax*2]
lea ecx, [eax - 1]
test ecx, ecx
push ebx
mov edx, edi
je 0x42b32e
mov ebx, dword [esi + 0x20]
xor eax, eax
mov ax, word [ebx + ecx*2]
mov ebx, dword [esi + 0x1c]
sub edx, eax
mov word [ebx + ecx*2], dx
mov ebx, dword [esi + 0x20]
or eax, 2
sar eax, 1
sub edi, eax
dec ecx
mov word [ebx + ecx*2 + 2], ax
jne 0x42b30a
mov ecx, dword [esi + 0x20]
xor eax, eax
mov ax, word [ecx]
mov ebx, eax
and ebx, 0xffff
cmp edx, ebx
pop ebx
je 0x42b360
mov edx, dword [esi + 0x1c]
push edx
push str.BUG:_rescaling_left__d_total_frequency_n
push 0x4ae828
call fcn.0048b1b4
add esp, 0xc
push 1
call fcn.0048abad
or ax, 2
shr ax, 1
mov word [ecx], ax
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov cx, word [eax]
sub edi, ecx
mov ecx, dword [esi + 0xc]
mov eax, edi
cdq
idiv ecx
mov dword [esi + 0x14], eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [esi + 0x24]
sub ecx, edx
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
je 0x42b3cb
mov edi, dword [esi]
test edi, edi
je 0x42b3cb
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dx, word [eax + edi*2]
dec edx
sar edx, cl
xor ecx, ecx
mov cx, word [eax + edi*2 - 2]
dec edi
mov eax, ecx
mov cl, byte [esi + 0x18]
shr eax, cl
cmp eax, edx
jg 0x42b3c7
mov ecx, dword [esi + 0x24]
mov word [ecx + eax*2], di
inc eax
cmp eax, edx
jle 0x42b3bb
test edi, edi
jne 0x42b399
pop edi
pop esi
ret
Function at 0x460680
Capabilities:
Copy file

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
call fcn.0045fe60
push 0
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00460170
mov eax, dword [eax]
push eax
call fcn.004608d0
mov eax, dword [esp + 8]
add esp, 4
cmp eax, 0x4b1de8
je 0x4606b8
push eax
call fcn.00488e76
add esp, 4
push edi
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00460170
mov edi, dword [eax]
push 1
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00460170
mov eax, dword [eax]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [esp + 8]
cmp eax, 0x4b1de8
je 0x4606f9
push eax
call fcn.00488e76
add esp, 4
mov eax, dword [esp + 0xc]
cmp eax, 0x4b1de8
je 0x46070d
push eax
call fcn.00488e76
add esp, 4
test edi, edi
jne 0x4607aa
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x10], 0x4b1de8
call fcn.00460170
mov edi, dword [eax]
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00460170
mov eax, dword [eax]
push edi
push eax
lea edx, [esp + 0x14]
push str.error_file__s_to__s
push edx
call fcn.00406570
add esp, 0x10
push eax
lea ecx, [esp + 0xc]
call fcn.004060c0
mov eax, dword [esp + 0xc]
cmp eax, 0x4b1de8
je 0x46076e
push eax
call fcn.00488e76
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0x4b1de8
je 0x460782
push eax
call fcn.00488e76
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0x4b1de8
je 0x460796
push eax
call fcn.00488e76
add esp, 4
mov eax, dword [esp + 8]
cmp eax, 0x4b1de8
je 0x4607aa
push eax
call fcn.00488e76
add esp, 4
mov al, byte [esp + 0x1c]
test al, al
pop edi
je 0x4607ba
mov ecx, esi
call fcn.00460370
pop esi
add esp, 0x10
ret 4

Function at 0x4608d0
Capabilities:
Move file

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x4b1de8
mov dword [esp + 4], 0x4b1de8
call fcn.00406190
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 4]
call fcn.004060c0
push str..bak
lea ecx, [esp + 4]
call fcn.00406300
mov edx, dword [esp]
mov eax, dword [esp + 4]
push 9
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp]
cmp eax, 0x4b1de8
je 0x460933
push eax
call fcn.00488e76
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x4b1de8
je 0x460947
push eax
call fcn.00488e76
add esp, 4
add esp, 8
ret

Function at 0x460950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 4]
mov dl, byte [eax]
push esi
xor esi, esi
test dl, dl
push edi
mov ecx, 1
mov byte [esp + 0xc], dl
lea edi, [eax + 1]
je 0x460999
mov eax, dword [esp + 0xc]
and eax, 0xff
add eax, ecx
xor edx, edx
mov ecx, 0xfff1
div ecx
mov ecx, edx
lea eax, [esi + ecx]
xor edx, edx
mov esi, 0xfff1
div esi
mov al, byte [edi]
inc edi
test al, al
mov byte [esp + 0xc], al
mov esi, edx
jne 0x46096a
mov eax, esi
shl eax, 0x10
pop edi
add eax, ecx
pop esi
ret
Function at 0x461f39
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x18], eax
jae 0x46205a
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jae 0x46203e
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 0xc], edi
shr edi, 2
and edi, esi
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 0xc]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp - 4]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 0xc]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, 0xffc03fc0
jne 0x461f90
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
jb 0x461f6e
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x462326
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x105c]
push edi
mov edi, dword [esi + 0x1050]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x46246d
mov edx, 0xf81f
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1058]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x462448
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff07e0
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x1002]
mov ebp, eax
and ebp, 0xffff07e0
add ebp, ecx
mov ecx, edi
and ecx, 0xffff07e0
add ebp, ecx
mov ecx, esi
and ecx, 0xffff07e0
shr ebx, 2
lea ecx, [ecx + ebp + 0x40]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff07e0
lea eax, [eax + esi + 0x1002]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x46238f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1050]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1050]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x462366
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret