joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ecx]
cmp al, 0x50
jne 0x477297
cmp byte [ecx + 1], 0x4b
jne 0x477297
mov dword [ebp - 0x18], 0x6e6f435b
mov dword [ebp - 0x14], 0x746e6574
mov dword [ebp - 0x10], 0x7079545f
mov dword [ebp - 0xc], 0x2e5d7365
mov word [ebp - 8], 0x6d78
mov byte [ebp - 6], 0x6c
xor eax, eax
mov dl, byte [ecx + eax + 0x1e]
cmp dl, byte [ebp + eax - 0x18]
jne 0x4772c5
inc eax
cmp eax, 0x13
jl 0x477274
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
cmp al, 0xd0
jne 0x4772c5
cmp byte [ecx + 1], 0xcf
jne 0x4772c5
cmp byte [ecx + 2], 0x11
jne 0x4772c5
cmp byte [ecx + 3], 0xe0
jne 0x4772c5
cmp byte [ecx + 4], 0xa1
jne 0x4772c5
cmp byte [ecx + 5], 0xb1
jne 0x4772c5
cmp byte [ecx + 6], 0x1a
jne 0x4772c5
cmp byte [ecx + 7], 0xe1
je 0x477284
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00490a21
mov esp, ebp
pop ebp
ret

Function at 0x477450
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x44], esp
mov dword [ebp - 0x4c], eax
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 0x26
mov eax, str.26142993_7E66_49BC_B3B6_1407026BD513
mov word [esi], cx
call fcn.00403e70
lea ecx, [ebp - 0x3c]
call fcn.00477360
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x4774a0
mov eax, dword [eax]
push eax
push 0xa
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [ebp - 0x28], 8
mov esi, eax
jb 0x4774c3
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], ax
cmp esi, edi
jne 0x4774e8
push 0x4ddd78
mov ecx, 0x503bc8
call fcn.004124a0
jmp 0x477566
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x477510
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x20]
call fcn.00403e70
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
cmp dword [ebp - 0xc], esi
jae 0x47753e
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x48]
push edx
push 0x4e7508
push eax
call fcn.00492b82
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ecx], eax
cmp dword [ebp - 0xc], esi
jb 0x477569
mov edx, dword [ebp - 0x20]
push edx
call fcn.00490a16
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x4778d0
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x12c], esi
call fcn.00497ad0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x477a1c
cmp dword [ebp - 0x11c], 6
jb 0x477a31
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, edi
je 0x477a31
cmp dword [ebp - 0x11c], 6
jne 0x477a31
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4779af
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x4e7510
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
lea ebx, [ebx]
mov edx, 0x1d38
cmp dx, word [ecx + eax]
je 0x4779a9
inc ecx
cmp ecx, 0x300
jb 0x477980
mov eax, dword [ebp - 0x124]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
mov esi, dword [ecx + eax + 2]
jmp 0x4779e4
cmp eax, 1
jne 0x477a31
push str.KernelBase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x477a1c
push str.KernelBaseGetGlobalData
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x477a11
call eax
test eax, eax
je 0x477a11
lea esi, [eax + 0x30]
test esi, esi
je 0x477a0b
mov eax, dword [ebp - 0x12c]
push 0
push 0
push eax
push ebx
push 0
push 0
push edi
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x124], eax
mov byte [esi], 0
mov esi, dword [ebp - 0x128]
test esi, esi
je 0x477a1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x124]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x47ac50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c10e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x47ac83
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47acc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call esi
push 0
push 0
push 0
push edi
mov ebx, eax
call esi
test ebx, ebx
je 0x47ad09
push ebx
call fcn.0048d7af
add esp, 4
push 0
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], ebx
je 0x47ad0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
jmp 0x47acaa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0x23535023
jne 0x47acb0
movzx eax, word [esi + 0xc]
movsx edi, ax
push edi
add esi, 0xe
call fcn.0048d7af
push edi
push esi
push eax
mov dword [ebp - 0x14], eax
call fcn.00498770
lea eax, [esi + edi + 4]
mov esi, dword [eax]
add eax, 4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048d7af
mov ecx, dword [ebp - 0x10]
push esi
mov ebx, eax
push ecx
push ebx
call fcn.00498770
mov edx, esi
add esp, 0x20
and edx, 0x80000007
jns 0x47ad67
dec edx
or edx, 0xfffffff8
inc edx
mov eax, esi
sub eax, edx
mov dword [ebp - 0x10], vtable.piy::CDesEnc.0
push ebx
push eax
mov eax, dword [ebp - 0x14]
push ebx
push edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0045ac80
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x47ada1
push eax
call fcn.00491285
add esp, 4
mov dword [edi], 0
push esi
call fcn.0048d7af
push esi
push ebx
push eax
mov dword [edi], eax
call fcn.00498770
push ebx
call fcn.00491285
add esp, 0x14
mov dword [edi + 4], esi
mov byte [edi + 8], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47ade0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cadb8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4fad60]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
mov esi, edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x5c], edi
call fcn.0047c680
cmp dword [esi + 0x14], 8
jb 0x47ae42
mov esi, dword [esi]
push edi
push 0x80
push 2
push edi
push 7
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x47ae74
push 0x4e7780
mov esi, 0x503bc8
call fcn.004125f0
add esp, 4
push edi
call fcn.00492c3f
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.00492ae7
fldz
add esp, 8
fst qword [esp + 0x24]
cmp eax, edi
je 0x47aebe
add dword [eax + 0x14], 0x76c
fstp st(0)
inc dword [eax + 0x10]
lea edx, [esp + 0x24]
push edx
call fcn.004537d0
add esp, 4
test al, al
je 0x47aebc
fld qword [esp + 0x24]
jmp 0x47aebe
fldz
mov eax, dword [esp + 0x3c]
fstp qword [esp + 0x14]
mov ebx, eax
test eax, eax
jle 0x47af50
mov ecx, eax
and ecx, 0x80000007
jns 0x47aedf
dec ecx
or ecx, 0xfffffff8
inc ecx
mov esi, eax
push eax
sub esi, ecx
call fcn.0048d7af
add esp, 4
cmp dword [esp + 0x40], 0x10
mov edi, eax
mov eax, dword [esp + 0x2c]
jae 0x47aefd
lea eax, [esp + 0x2c]
push ebx
push eax
push edi
call fcn.00498770
shr esi, 3
add esi, esi
add esi, esi
add esp, 0xc
add esi, esi
je 0x47af50
push 0
push 8
push esi
lea eax, [esp + 0x20]
mov ecx, edi
mov edx, edi
call fcn.0045b870
add esp, 0xc
test al, al
jne 0x47af50
push edi
call fcn.00491285
add esp, 4
cmp dword [esp + 0x40], 0x10
jb 0x47af49
mov edx, dword [esp + 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor al, al
jmp 0x47b005
push 0x1e
call fcn.0048d7af
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 4
push 0
mov dword [eax + 4], ecx
mov dword [eax + 0xe], ecx
lea ecx, [esp + 0x24]
push ecx
push 0x1e
mov dword [eax + 8], edx
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x1c]
push eax
mov esi, 8
mov dword [eax], 0x23535023
mov word [eax + 0xc], si
mov dword [eax + 0x16], 1
mov dword [eax + 0x1a], ebx
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47afba
push 0x4e7794
mov esi, 0x503bc8
call fcn.004125f0
add esp, 4
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x24]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47afe4
push 0x4e77b4
mov esi, 0x503bc8
call fcn.004125f0
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x40], 0x10
jb 0x47b003
mov eax, dword [esp + 0x2c]
push eax
call fcn.00490a16
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x485360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x802]
push ecx
mov dword [ebp - 0x808], 0
mov word [ebp - 0x804], ax
call fcn.00497ad0
add esp, 0xc
push 0x400
lea edx, [ebp - 0x804]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4853d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x804]
call fcn.00403e70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00490a21
mov esp, ebp
pop ebp
ret

Function at 0x4858f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [edi + 4], 0
jne 0x485917
push 0x4fbe28
lea ecx, [ebp - 0xc]
call fcn.00490ac9
push 0x4e9530
lea eax, [ebp - 0xc]
push eax
call fcn.00495f48
xor ecx, ecx
cmp dword [edi + 0x3cc], ecx
jle 0x485937
push esi
mov esi, dword [ebp + 8]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [edi + 0x3cc]
jl 0x485927
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x487000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 4]
movzx esi, byte [eax + 5]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 6]
movzx ebx, byte [eax + 0xd]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 7]
movzx edi, byte [eax + 9]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 8]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xa]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xb]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xc]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edi, 8
or edi, ebx
shl edi, 8
or edi, eax
xor esi, 0x677d9197
xor edx, 0x56aa3350
xor ecx, 0xa3b1bac6
xor edi, 0xb27022dc
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], esi
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x88], edi
xor edx, edx
jmp 0x4870e0
mov eax, dword [edx + 0x4de418]
xor eax, dword [ebp + edx - 0x90]
add edx, 4
xor eax, dword [ebp + edx - 0x8c]
xor eax, dword [ebp + edx - 0x90]
mov ecx, eax
shr ecx, 0x18
movzx ecx, cl
movzx ecx, byte [ecx + 0x4de308]
mov ebx, eax
shr ebx, 0x10
mov byte [ebp - 0x98], cl
mov byte [ebp - 0x9b], bl
movzx ecx, byte [ebp - 0x9b]
mov cl, byte [ecx + 0x4de308]
mov ebx, eax
movzx eax, al
mov al, byte [eax + 0x4de308]
mov byte [ebp - 0x95], al
movzx eax, byte [ebp - 0x98]
movzx ecx, cl
shl eax, 8
or eax, ecx
shr ebx, 8
movzx edi, bl
movzx ecx, byte [edi + 0x4de308]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x95]
shl eax, 8
or eax, ecx
mov ecx, eax
rol ecx, 0xd
mov edi, eax
ror edi, 9
xor ecx, edi
xor ecx, dword [ebp + edx - 0x98]
xor ecx, eax
mov dword [ebp + edx - 0x88], ecx
mov dword [edx + esi - 4], ecx
cmp edx, 0x80
jb 0x4870e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret

Function at 0x48847a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
push edi
push 0x12c
lea eax, [ebp - 0x130]
push 0x4fa5bc
push eax
call fcn.00488291
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
mov esi, 0xe73d110a
xor eax, esi
xor edi, esi
push 0x4b
lea ecx, [ebp - 0x130]
pop edx
xor dword [ecx], esi
add ecx, 4
dec edx
jne 0x4884bb
lea ecx, [ebp - 0x130]
xor eax, esi
push ecx
call eax
test eax, eax
mov dword [ebp - 4], eax
je 0x4884ff
xor edi, esi
push ebx
mov ebx, edi
mov esi, 0x4fa584
lea edi, [ebp - 0x11c]
push edi
push dword [ebp - 4]
call ebx
mov dword [esi], eax
add esi, 4
add edi, 0x14
cmp esi, 0x4fa5bc
jl 0x4884e5
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x488d16
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jle 0x488df1
add eax, 0x32
push esi
dec ecx
movzx edx, byte [eax + 1]
movzx esi, byte [eax - 1]
mov edx, dword [edx*4 + 0x4f9e48]
xor edx, dword [esi*4 + 0x4f9648]
movzx esi, byte [eax]
add eax, 0x10
xor edx, dword [esi*4 + 0x4f9a48]
movzx esi, byte [eax - 0x12]
xor edx, dword [esi*4 + 0x4f9248]
mov dword [eax - 0x12], edx
movzx edx, byte [eax - 0xb]
movzx esi, byte [eax - 0xc]
mov edx, dword [edx*4 + 0x4f9e48]
xor edx, dword [esi*4 + 0x4f9a48]
movzx esi, byte [eax - 0xd]
xor edx, dword [esi*4 + 0x4f9648]
movzx esi, byte [eax - 0xe]
xor edx, dword [esi*4 + 0x4f9248]
mov dword [eax - 0xe], edx
movzx edx, byte [eax - 7]
movzx esi, byte [eax - 8]
mov edx, dword [edx*4 + 0x4f9e48]
xor edx, dword [esi*4 + 0x4f9a48]
movzx esi, byte [eax - 9]
xor edx, dword [esi*4 + 0x4f9648]
movzx esi, byte [eax - 0xa]
xor edx, dword [esi*4 + 0x4f9248]
mov dword [eax - 0xa], edx
movzx edx, byte [eax - 3]
movzx esi, byte [eax - 4]
mov edx, dword [edx*4 + 0x4f9e48]
xor edx, dword [esi*4 + 0x4f9a48]
movzx esi, byte [eax - 5]
xor edx, dword [esi*4 + 0x4f9648]
movzx esi, byte [eax - 6]
xor edx, dword [esi*4 + 0x4f9248]
dec ecx
mov dword [eax - 6], edx
jne 0x488d2b
pop esi
ret
Function at 0x489520
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 4
lea eax, [ebp - 4]
push 0x4fa590
push eax
call fcn.00488291
mov esi, dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push 0x4fa58c
push eax
call fcn.00488291
mov edi, dword [ebp - 4]
add esp, 0x18
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x475f4352
push eax
push 0
push 0
mov dword [ebp - 0x10], 0x646e6172
mov dword [ebp - 0xc], 0x6e65704f
mov dword [ebp - 8], 0x676f44
call esi
mov esi, eax
test esi, esi
je 0x489584
push 0xffffffffffffffff
push esi
call edi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x489588
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4fa53c]
push esi
mov esi, dword [ebp + 8]
and eax, 3
sub eax, 0
je 0x489612
dec eax
je 0x4895ef
dec eax
je 0x4895cc
dec eax
jne 0x489633
mov eax, dword [0x4fa54c]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00489673
add dword [0x4fa54c], 0x3f2
pop ecx
pop ecx
jmp 0x489633
mov eax, dword [0x4fa548]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00489673
add dword [0x4fa548], 0x3f2
pop ecx
pop ecx
jmp 0x489633
mov eax, dword [0x4fa544]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00489673
add dword [0x4fa544], 0x3f2
pop ecx
pop ecx
jmp 0x489633
mov eax, dword [0x4fa540]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00489673
add dword [0x4fa540], 0x3f2
pop ecx
pop ecx
mov ax, word [esi + 2]
add dword [0x4fa53c], 0x3eb
xor word [esi], ax
xor ecx, ecx
lea eax, [esi + 0x12]
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4 + 2]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0xa
jb 0x489649
mov al, byte [esi + 0x10]
push esi
xor byte [esi + 0x3a], al
mov al, byte [esi + 0x11]
xor byte [esi + 0x3b], al
call fcn.00489707
pop ecx
pop esi
pop ebp
ret
Function at 0x489852
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
test byte [ebp + 0x10], 0xf
je 0x489863
push 1
pop eax
leave
ret
cmp dword [ebp + 0x10], 0
je 0x489949
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx]
push 4
mov dword [ebp - 4], eax
pop eax
add ebx, eax
sub dword [ebp + 0x10], 0x10
mov dword [ebp - 0x10], 0x14
mov esi, dword [ebx]
mov ecx, dword [eax + ebx]
add ebx, eax
mov dword [ebp - 8], ecx
add ebx, eax
mov edi, dword [ebx]
add ebx, eax
mov eax, dword [ebp + 8]
add esi, dword [eax + 8]
add edi, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp + 0xc], eax
lea eax, [esi + esi + 1]
push 5
imul eax, esi
push eax
call fcn.0048994d
mov dword [ebp - 0xc], eax
lea eax, [edi + edi + 1]
imul eax, edi
push 5
push eax
call fcn.0048994d
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 4]
push eax
call fcn.0048994d
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
add eax, dword [ecx - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 8]
push eax
call fcn.0048994d
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
add esp, 0x20
mov dword [ebp - 8], edi
add eax, dword [ecx]
dec dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esi, eax
jne 0x4898a7
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push 4
mov edx, dword [ecx + 0xb0]
mov ecx, dword [ecx + 0xb4]
add edx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [eax], edx
pop edx
add eax, edx
mov dword [eax], esi
add eax, edx
mov dword [eax], ecx
add eax, edx
mov ecx, edi
mov dword [eax], ecx
add eax, edx
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0x14], eax
jne 0x489873
pop edi
pop esi
pop ebx
xor eax, eax
leave
ret

Function at 0x4899f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
mov eax, esi
pop ecx
xor dword [eax], 0x41dfac36
add eax, 4
dec ecx
jne 0x489a01
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, ecx
mov edx, edi
shr eax, 3
lea ecx, [ecx + edi*8]
and eax, 0x3f
shl edx, 3
cmp ecx, edx
mov dword [esi + 0x10], ecx
jae 0x489a2d
inc dword [esi + 0x14]
push 0x40
mov ecx, edi
pop ebx
shr ecx, 0x1d
add dword [esi + 0x14], ecx
sub ebx, eax
cmp edi, ebx
jb 0x489a80
push ebx
lea eax, [esi + eax + 0x18]
push dword [ebp + 0xc]
push eax
call fcn.0048a576
lea eax, [esi + 0x18]
push eax
push esi
call fcn.00489b06
add esp, 0x14
mov dword [ebp + 8], ebx
add ebx, 0x3f
cmp ebx, edi
jae 0x489a7c
mov eax, dword [ebp + 0xc]
lea eax, [ebx + eax - 0x3f]
push eax
push esi
call fcn.00489b06
add dword [ebp + 8], 0x40
pop ecx
pop ecx
add ebx, 0x40
jmp 0x489a5f
xor eax, eax
jmp 0x489a84
and dword [ebp + 8], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub edi, ecx
add ecx, edx
push edi
lea eax, [esi + eax + 0x18]
push ecx
push eax
call fcn.0048a576
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48a5c8
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0048a602
mov ax, word [esi + 2]
pop ecx
xor word [esi], ax
xor ecx, ecx
lea eax, [esi + 0x12]
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4 + 2]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0xa
jb 0x48a5e0
mov al, byte [esi + 0x10]
xor byte [esi + 0x3a], al
mov al, byte [esi + 0x11]
xor byte [esi + 0x3b], al
pop esi
ret

Function at 0x48aff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
push 4
pop edi
lea eax, [ebp - 4]
push edi
push 0x4fa5b0
push eax
call fcn.00488291
mov esi, dword [ebp - 4]
push edi
lea eax, [ebp - 4]
push 0x4fa598
push eax
call fcn.00488291
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0x4fa5b4
push eax
call fcn.00488291
mov eax, dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0x10], eax
push 0x14
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00488262
add esp, 0x30
cmp dword [ebp + 8], 1
push 0x10
jne 0x48b07b
lea eax, [ebp - 0x24]
push 0x4fa560
push eax
call fcn.00488291
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
xor dword [eax], 0x3dd17ea6
add eax, edi
dec ecx
jne 0x48b06a
mov byte [ebp - 0x14], 0x6c
jmp 0x48b0a4
lea eax, [ebp - 0x24]
push 0x4fa570
push eax
call fcn.00488291
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
xor dword [eax], 0x3dd17ea6
add eax, edi
dec ecx
jne 0x48b091
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
lea eax, [ebp - 0x24]
push eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x48b149
mov esi, 0x4fa2d4
push 0x100
push esi
push eax
call fcn.0048b326
add esp, 0xc
test eax, eax
jbe 0x48b10b
call fcn.0048b1a7
cmp eax, 3
je 0x48b115
cmp eax, edi
je 0x48b115
cmp eax, 5
je 0x48b115
cmp dword [0x4fa3d4], 0xffffffff
jne 0x48b115
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
push 0x48b5e3
push ebx
push ebx
call fcn.0048b3c2
add esp, 0x18
cmp dword [0x4fa2d0], ebx
mov dword [0x4fa3d4], eax
jne 0x48b115
mov eax, 0xa816001f
jmp 0x48b1a2
push 1
lea esi, [ebp - 0xa0]
pop ebx
push ebx
push dword [ebp - 8]
call dword [ebp - 0x10]
test eax, eax
mov dword [esi], eax
je 0x48b143
inc ebx
add esi, edi
cmp ebx, 0x1f
jb 0x48b11e
cmp dword [ebp + 8], 1
mov eax, dword [ebp - 0x34]
jne 0x48b150
mov dword [0x4fa534], eax
jmp 0x48b155
push dword [ebp - 8]
call dword [ebp - 0xc]
mov eax, 0xa8160005
jmp 0x48b1a2
mov dword [0x4fa538], eax
push dword [ebp - 0x90]
call fcn.0048b44f
test eax, eax
pop ecx
je 0x48b16c
mov eax, 0xa8160006
jmp 0x48b1a2
push dword [ebp - 0x50]
push dword [ebp - 0x48]
call fcn.0048b51c
pop ecx
test eax, eax
pop ecx
je 0x48b184
mov eax, 0xa8160007
jmp 0x48b1a2
cmp dword [ebp + 8], 1
jne 0x48b196
mov dword [0x4fa52c], 2
jmp 0x48b1a0
mov dword [0x4fa530], 2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret