joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4507d0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 8
mov dword [esp], eax
xor ecx, ecx
xor ecx, edx
cmp edx, 4
jl 0x450809
imul ebp, dword [eax], 0x5bd1e995
mov ebx, ebp
shr ebx, 0x18
xor ebp, ebx
imul esi, ebp, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 4
jge 0x4507e3
cmp edx, 3
je 0x45081a
cmp edx, 2
je 0x450823
cmp edx, 1
je 0x45082c
jmp 0x450837
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov edx, ecx
shr edx, 0xd
xor ecx, edx
imul edx, ecx, 0x5bd1e995
mov eax, edx
shr eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x7a9540]
mov ecx, dword [0x800b04]
mov dword [esp + 4], ecx
cmp eax, ecx
jge 0x4508ae
mov ecx, dword [0x800b08]
mov ebx, eax
mov ebp, edx
mov esi, dword [ecx + ebx*4]
cmp ebp, dword [esi + 4]
jne 0x4508a5
mov edi, dword [esi]
mov esi, dword [esp]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x45089c
or dl, dl
je 0x450898
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x45089c
add edi, 2
add esi, 2
or dl, dl
jne 0x45087c
xor eax, eax
jmp 0x4508a1
sbb eax, eax
or eax, 1
test eax, eax
je 0x4508bb
inc ebx
mov esi, dword [esp + 4]
cmp ebx, esi
jl 0x45086f
mov eax, 0xffffffff
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x458bc0
Capabilities:
Get file attributes

Disassembly:
push esi
push ebp
push ebx
push esi
mov ebp, eax
push 0x800a68
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x800730], 0
jbe 0x458c06
xor ebx, ebx
mov edx, dword [0x800734]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x458bf6
push eax
call fcn.0046703f
pop ecx
mov edx, dword [0x800734]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, dword [0x800730]
jb 0x458bdc
mov edx, dword [0x800734]
test edx, edx
je 0x458c17
push edx
call fcn.0046703f
pop ecx
xor edx, edx
mov dword [0x800734], edx
push edx
push edx
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov ebx, eax
mov edx, 0x10000
cmp ebx, 0x10000
jbe 0x458c3b
mov ebx, edx
mov dword [0x800730], ebx
lea ecx, [ebx + ebx]
add ecx, ecx
push ecx
call fcn.00466ddc
pop ecx
mov dword [0x800734], eax
test ebx, ebx
jbe 0x458c7d
xor edx, edx
mov ebx, eax
mov esi, edx
jmp 0x458c64
mov ebx, dword [0x800734]
push 0x209
call fcn.00466ddc
pop ecx
mov dword [ebx + esi*4], eax
mov ebx, dword [0x800730]
inc esi
cmp esi, ebx
jb 0x458c5e
test ebx, ebx
jbe 0x458cde
xor ebx, ebx
mov dword [esp], edi
mov eax, dword [0x800734]
push 0x209
push dword [eax + ebx*4]
push ebx
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov eax, dword [0x800734]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x458cd2
mov eax, dword [0x800734]
mov edi, dword [eax + ebx*4]
mov edx, 0x8062ec
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x458cc8
inc ebx
cmp ebx, dword [0x800730]
jb 0x458c86
mov edi, dword [esp]
push ebp
call dword [sym.imp.SHELL32.dll_DragFinish]
push 0x800a68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
pop ebx
pop ebp
pop esi
ret
Function at 0x45cbf4
Capabilities:
Read file on windows

Disassembly:
push esi
lea edx, [esp]
push 4
push edx
push dword [eax]
call fcn.004676ee
mov eax, dword [esp + 0xc]
add esp, 0x10
ret

Function at 0x45cc10
Capabilities:
Read file on windows

Disassembly:
push edi
push ebx
sub esp, 0x24
mov edi, eax
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x45cc29
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x45cc21
mov ebx, eax
inc ebx
push ebx
call fcn.00466ddc
pop ecx
mov ecx, dword [0x800908]
mov edx, dword [0x800904]
mov dword [edx + ecx*4], eax
mov edx, dword [0x800904]
mov ecx, dword [0x800908]
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x45cd85
push ebx
push edi
push edx
call dword [0x5cf48c]
add esp, 0xc
mov ebx, dword [0x800908]
mov ecx, dword [0x800904]
lea eax, [esp + 8]
mov edx, dword [ecx + ebx*4]
call fcn.0045cdf8
movsx eax, byte [esp + 0x10]
test eax, eax
je 0x45cd60
lea eax, [esp + 0x20]
push 4
push eax
push dword [esp + 0x10]
call fcn.004676ee
add esp, 0xc
lea eax, [esp + 8]
call fcn.0045cbf4
mov edi, eax
lea eax, [esp + 8]
call fcn.0045cbf4
mov ebx, eax
lea eax, [esp + 8]
call fcn.0045ce88
mov edx, dword [esp + 0x20]
cmp edx, 0x465059
jne 0x45ccfe
cmp edi, 0x1e0
je 0x45ccd8
cmp edi, 0xea
jl 0x45cd3b
mov edx, dword [0x80090c]
add edx, ebx
mov dword [0x80090c], edx
cmp edx, 0x186a0
jge 0x45cd1f
mov eax, dword [0x800908]
inc eax
mov dword [0x800908], eax
cmp eax, 0x64
jge 0x45cd06
xor eax, eax
add esp, 0x24
pop ebx
pop edi
ret
push 0x64
push 1
push 0x196c2
call fcn.00463ec8
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
push 0x186a0
push 1
push 0x196cc
call fcn.00463ec8
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x800908]
mov eax, dword [0x800904]
push dword [eax + edx*4]
push 1
push 0x196b8
call fcn.00463ec8
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x800908]
mov eax, dword [0x800904]
push dword [eax + edx*4]
push 1
push 0xdbfb0
call fcn.00463ec8
mov eax, 0xfffffffe
add esp, 0x30
pop ebx
pop edi
ret
push 1
push 0x186aa
call fcn.00463f24
mov eax, 0xffffffff
add esp, 0x2c
pop ebx
pop edi
ret

Function at 0x45ce74
Capabilities:
Read file on windows

Disassembly:
push ecx
push edx
push dword [eax]
call fcn.004676ee
add esp, 0xc
ret
Function at 0x45d508
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
push 0
push 0x806ba4
push 0x67ece0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x45d538
mov byte [0x8006b8], 1
xor eax, eax
add esp, 0x108
ret
lea eax, [esp]
push 0x80
push 0x8301
push eax
call fcn.00469a70
add esp, 0xc
cmp eax, 0xffffffff
je 0x45d56c
push eax
call fcn.00469d56
lea eax, [esp + 4]
push eax
call fcn.00469e36
xor eax, eax
add esp, 0x110
ret
mov byte [0x8006b8], 1
xor eax, eax
add esp, 0x108
ret

Function at 0x45d57c
Capabilities:
Create thread

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push 0x4223ac
call fcn.0046872d
add esp, 0xc
mov ebx, eax
movsx edx, byte [0x5b26f8]
dec edx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop ebx
ret
Function at 0x460cbc
Capabilities:
Get system information on windows

Disassembly:
push edi
sub esp, 0x24
call fcn.0045af0c
mov byte [0x800700], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movsx eax, byte [esp + 0x14]
mov byte [0x5b26f8], al
movsx edi, byte [0x5b26f0]
cmp edi, eax
jg 0x460ceb
mov edi, eax
movsx edx, byte [0x5b26ec]
cmp edx, edi
jl 0x460cf8
mov edx, edi
mov byte [0x5b26f4], dl
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 8
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8007a0], eax
push 0xa
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8007a4], eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8007a8], eax
push 0x74
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8007ac], eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x8007ac]
cmp eax, 0x3c
jae 0x460d5d
mov dword [0x8007ac], 0xffffffff
call fcn.0041c20c
xor eax, eax
add esp, 0x24
pop edi
ret

Function at 0x462254
Capabilities:
Create thread

Disassembly:
movsx eax, byte [0x8006e8]
test eax, eax
je 0x462270
xor eax, eax
push eax
push eax
push 0x426834
call fcn.0046872d
add esp, 0xc
ret

Function at 0x462274
Capabilities:
Create thread

Disassembly:
push ebx
sub esp, 8
movsx edx, byte [0x5b26f4]
test edx, edx
jle 0x4622cd
xor eax, eax
mov ebx, eax
xor edx, edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx*4 + 0x7b3060], eax
xor edx, edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx*4 + 0x7b3160], eax
xor edx, edx
push edx
push 1
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx*4 + 0x7b3260], eax
inc ebx
movsx edx, byte [0x5b26f4]
cmp ebx, edx
jl 0x462287
test edx, edx
jle 0x462321
xor edx, edx
xor eax, eax
mov dword [esp], esi
mov ebx, eax
mov esi, edx
mov dword [ebx + 0x7b1660], esi
xor edx, edx
lea eax, [ebx + 0x7b1660]
lea ecx, [esp + 4]
push ecx
push edx
push eax
push 0x4255e4
push edx
push edx
call fcn.00469fb5
add esp, 0x18
mov dword [esi*4 + 0x7b1560], eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
add ebx, 0x68
inc esi
movsx ecx, byte [0x5b26f4]
cmp esi, ecx
jl 0x4622dc
mov esi, dword [esp]
add esp, 8
pop ebx
ret
Function at 0x463ac8
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
call dword [sym.imp.WINMM.dll_joyGetNumDevs]
test eax, eax
jg 0x463adc
mov dword [0x8003c8], eax
xor eax, eax
pop ecx
ret
mov edx, 0x10
cmp eax, 0x10
jl 0x463ae8
mov eax, edx
mov dword [0x8003c8], eax
xor eax, eax
mov dword [esp], ebx
mov ebx, eax
lea edx, [ebx + 0x7a89c0]
push 0x34
push edx
call dword [0x5cf480]
add esp, 8
mov dword [ebx + 0x7a89c0], 0x34
mov dword [ebx + 0x7a89c4], 0x83
add ebx, 0x34
cmp ebx, 0x340
jl 0x463af4
mov ebx, dword [esp]
mov dword [0x7a8d00], 1
mov dword [0x7a8d04], 2
mov dword [0x7a8d08], 4
mov dword [0x7a8d0c], 8
mov dword [0x7a8d10], 0x10
mov dword [0x7a8d14], 0x20
mov dword [0x7a8d18], 0x40
mov dword [0x7a8d1c], 0x80
mov dword [0x7a8d20], 0x100
mov dword [0x7a8d24], 0x200
mov dword [0x7a8d28], 0x400
mov dword [0x7a8d2c], 0x800
mov dword [0x7a8d30], 0x1000
mov dword [0x7a8d34], 0x2000
mov dword [0x7a8d38], 0x4000
mov dword [0x7a8d3c], 0x8000
mov dword [0x7a8d40], 0x10000
mov dword [0x7a8d44], 0x20000
mov dword [0x7a8d48], 0x40000
mov dword [0x7a8d4c], 0x80000
mov dword [0x7a8d50], 0x100000
mov dword [0x7a8d54], 0x200000
mov dword [0x7a8d58], 0x400000
mov dword [0x7a8d5c], 0x800000
mov dword [0x7a8d60], 0x1000000
mov dword [0x7a8d64], 0x2000000
mov dword [0x7a8d68], 0x4000000
mov dword [0x7a8d6c], 0x8000000
mov dword [0x7a8d70], 0x10000000
mov dword [0x7a8d74], 0x20000000
mov dword [0x7a8d78], 0x40000000
mov dword [0x7a8d7c], 0x80000000
mov eax, 1
pop ecx
ret

Function at 0x464180
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x5e4360], eax
mov eax, 1
mov ecx, dword [eax*4 + 0x5e435c]
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5e4360], edx
inc eax
cmp eax, 0x270
jl 0x46418e
mov dword [0x5b26d8], eax
ret
Function at 0x46fea6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5b5d50
cmp edx, dword [eax]
je 0x46fec8
add eax, 8
inc ecx
cmp eax, 0x5b5de0
jl 0x46feb9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5b5d50]
jne 0x46fff6
mov eax, dword [0x8010d8]
cmp eax, 1
je 0x46ffd0
test eax, eax
jne 0x46fef9
cmp dword [0x5b3314], 1
je 0x46ffd0
cmp edx, 0xfc
je 0x46fff6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46ff30
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004714c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0046e260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46ff73
lea eax, [ebp - 0x1a4]
push eax
call fcn.0046e260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x58d588
push edi
call fcn.00471340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004714c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004714d0
lea eax, [ebp - 0xa0]
push 0x58d568
push eax
call fcn.004714d0
push dword [esi + 0x5b5d54]
lea eax, [ebp - 0xa0]
push eax
call fcn.004714d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004744b0
add esp, 0x2c
pop edi
jmp 0x46fff6
lea eax, [ebp + 8]
lea esi, [esi + 0x5b5d54]
push 0
push eax
push dword [esi]
call fcn.0046e260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x48e258
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
not eax
test ecx, ecx
je 0x48e27f
test dl, 3
je 0x48e27f
movzx ebx, byte [edx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
add edx, 1
xor eax, dword [ebx*4 + 0x58f880]
add ecx, 0xffffffff
jne 0x48e260
cmp ecx, 0x20
jb 0x48e466
xor eax, dword [edx]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x590480]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x590080]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x58fc80]
shr eax, 0x18
add ecx, 0xffffffe0
xor ebx, dword [eax*4 + 0x58f880]
xor ebx, dword [edx + 4]
movzx eax, bl
mov eax, dword [eax*4 + 0x590480]
mov esi, ebx
shr esi, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x590080]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
shr ebx, 0x18
xor eax, dword [esi*4 + 0x58fc80]
xor eax, dword [ebx*4 + 0x58f880]
xor eax, dword [edx + 8]
movzx ebx, al
mov esi, eax
shr esi, 8
mov ebx, dword [ebx*4 + 0x590480]
and esi, 0xff
xor ebx, dword [esi*4 + 0x590080]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x58fc80]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x58f880]
xor ebx, dword [edx + 0xc]
movzx eax, bl
mov eax, dword [eax*4 + 0x590480]
mov esi, ebx
shr esi, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x590080]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
shr ebx, 0x18
xor eax, dword [esi*4 + 0x58fc80]
xor eax, dword [ebx*4 + 0x58f880]
xor eax, dword [edx + 0x10]
movzx ebx, al
mov esi, dword [ebx*4 + 0x590480]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x590080]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
shr eax, 0x18
xor esi, dword [ebx*4 + 0x58fc80]
xor esi, dword [eax*4 + 0x58f880]
xor esi, dword [edx + 0x14]
mov eax, esi
and eax, 0xff
mov ebx, esi
shr ebx, 8
mov eax, dword [eax*4 + 0x590480]
movzx ebx, bl
xor eax, dword [ebx*4 + 0x590080]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
xor eax, dword [ebx*4 + 0x58fc80]
shr esi, 0x18
xor eax, dword [esi*4 + 0x58f880]
xor eax, dword [edx + 0x18]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x590480]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x590080]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x58fc80]
xor ebx, dword [eax*4 + 0x58f880]
xor ebx, dword [edx + 0x1c]
movzx eax, bl
mov esi, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x590480]
and esi, 0xff
xor eax, dword [esi*4 + 0x590080]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
xor eax, dword [esi*4 + 0x58fc80]
shr ebx, 0x18
add edx, 0x20
xor eax, dword [ebx*4 + 0x58f880]
cmp ecx, 0x20
jae 0x48e288
cmp ecx, 4
jb 0x48e4b4
xor eax, dword [edx]
movzx esi, al
mov ebx, dword [esi*4 + 0x590480]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x590080]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x58fc80]
shr eax, 0x18
mov esi, eax
mov eax, ebx
xor eax, dword [esi*4 + 0x58f880]
add ecx, 0xfffffffc
add edx, 4
cmp ecx, 4
jae 0x48e46b
test ecx, ecx
je 0x48e4d2
movzx ebx, byte [edx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
add edx, 1
xor eax, dword [ebx*4 + 0x58f880]
add ecx, 0xffffffff
jne 0x48e4b8
not eax
pop ebx
pop esi
ret
Function at 0x493fb8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
je 0x494066
cmp eax, 0xcb
je 0x493ffb
cmp eax, 0xcc
je 0x493ff1
push ebx
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebx]
call dword [eax]
pop ecx
mov eax, ebx
call fcn.00494098
pop ecx
pop ebx
ret
mov edx, dword [ebx + 0x190]
movzx ecx, byte [edx + 0x10]
test ecx, ecx
jne 0x494014
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x84], edx
jmp 0x493ff1
mov edx, dword [ebx + 8]
test edx, edx
je 0x49401f
push ebx
call dword [edx]
pop ecx
push ebx
mov edx, dword [ebx + 0x190]
call dword [edx]
pop ecx
test eax, eax
je 0x494090
cmp eax, 2
je 0x494009
mov edx, dword [ebx + 8]
test edx, edx
je 0x49401f
cmp eax, 3
je 0x494043
cmp eax, 1
jne 0x49401b
mov ecx, dword [edx + 4]
add ecx, 1
mov dword [edx + 4], ecx
mov edx, dword [ebx + 8]
mov eax, dword [edx + 8]
cmp ecx, eax
jl 0x494017
mov ecx, dword [ebx + 0x11c]
add eax, ecx
mov dword [edx + 8], eax
mov edx, dword [ebx + 8]
jmp 0x494017
push ebx
call fcn.00496df0
pop ecx
movzx edx, byte [ebx + 0x40]
test edx, edx
jne 0x494081
mov dword [ebx + 0x14], 0xcb
jmp 0x493ffb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ecx
pop ebx
ret
xor eax, eax
pop ecx
pop ebx
ret

Function at 0x494098
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
sub esp, 8
mov ebx, eax
mov edx, dword [ebx + 0x14]
cmp edx, 0xcc
je 0x4940c1
push ebx
mov edx, dword [ebx + 0x180]
call dword [edx]
pop ecx
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x14], 0xcc
mov edx, dword [ebx + 0x180]
movzx ecx, byte [edx + 8]
test ecx, ecx
je 0x49415a
mov eax, dword [ebx + 0x78]
mov dword [esp], esi
mov dword [esp + 4], edi
lea ecx, [ebx + 0x78]
mov esi, ecx
jmp 0x4940e6
xor eax, eax
cmp eax, dword [ebx + 0x60]
jae 0x49412e
mov edx, dword [ebx + 8]
test edx, edx
je 0x494108
push ebx
mov dword [edx + 4], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x60]
mov dword [edx + 8], eax
mov edi, dword [ebx + 8]
call dword [edi]
pop ecx
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x184]
mov edi, eax
xor eax, eax
push eax
push esi
push eax
push ebx
call dword [edx + 4]
add esp, 0x10
mov eax, dword [ebx + 0x78]
cmp eax, edi
je 0x49417b
cmp eax, dword [ebx + 0x60]
jb 0x4940eb
mov edx, dword [ebx + 0x180]
push ebx
call dword [edx + 4]
push ebx
mov eax, dword [ebx + 0x180]
call dword [eax]
add esp, 8
mov edx, dword [ebx + 0x180]
mov dword [ebx + 0x78], 0
movzx eax, byte [edx + 8]
test eax, eax
jne 0x4940e4
mov esi, dword [esp]
mov edi, dword [esp + 4]
movzx edx, byte [ebx + 0x41]
test edx, edx
je 0x494169
mov edx, 0xce
jmp 0x49416e
mov edx, 0xcd
mov dword [ebx + 0x14], edx
mov eax, 1
add esp, 8
pop ebx
ret
mov esi, dword [esp]
mov edi, dword [esp + 4]
xor eax, eax
add esp, 8
pop ebx
ret
Function at 0x498bcc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
push esi
push ebp
sub esp, 0x20
mov edi, eax
mov esi, dword [edi + 0x1a8]
mov edx, dword [edi + 0x4c]
cmp edx, 1
je 0x498d21
mov byte [esi + 0x1c], 0
xor ebp, ebp
push dword [edi + 0x64]
mov ecx, dword [edi + 4]
lea edx, [ebp + 0x100]
push edx
push 1
push edi
call dword [ecx + 8]
add esp, 0x10
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov edx, dword [edi + 0x64]
test edx, edx
jle 0x498d1a
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp], ebx
xor edx, edx
mov ebx, eax
mov dword [esp + 4], edx
jmp 0x498c33
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 0x18]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [edi + ebp*4 + 0x20]
mov eax, ecx
cdq
idiv edi
lea ebp, [ebp + ebp]
test esi, esi
mov ecx, eax
je 0x498c60
mov edx, dword [esp + 0xc]
add dword [ebx + ebp*2], 0xff
mov ebx, dword [edx + 0x18]
mov ebp, dword [ebx + ebp*2]
lea ebx, [edi + edi - 2]
mov dword [esp + 0x1c], ebx
lea eax, [edi + 0xfe]
cdq
idiv ebx
xor esi, esi
mov edx, eax
xor eax, eax
mov ebx, eax
mov eax, edi
mov edi, edx
cmp esi, edi
jle 0x498cbc
mov dword [esp + 0x18], eax
mov edx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
shl edx, 9
sub edx, ebx
sub edx, ebx
lea edi, [eax + edx + 0xfe]
add edi, 0x1fe
add ebx, 1
mov eax, edi
cdq
idiv ecx
cmp esi, eax
jg 0x498ca0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, ecx
imul edx, ebx
mov byte [esi + ebp], dl
add esi, 1
cmp esi, 0xff
jle 0x498c80
mov edx, dword [esp + 8]
test edx, edx
je 0x498cff
mov ebx, 1
movzx edx, byte [ebp]
mov esi, ebp
sub esi, ebx
mov byte [esi], dl
movzx edx, byte [ebp + 0xff]
mov byte [ebx + ebp + 0xff], dl
add ebx, 1
cmp ebx, 0xff
jle 0x498cdc
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
add edx, 1
cmp edx, dword [ebx + 0x64]
mov dword [esp + 4], edx
jl 0x498c2c
mov ebx, dword [esp]
add esp, 0x20
pop ebp
pop esi
pop edi
ret
mov byte [esi + 0x1c], 1
mov ebp, 0x1fe
jmp 0x498bec
Function at 0x4ceabf
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 - 0x14], eax
jae 0x4cebe2
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 - 4], ecx
jae 0x4cebc6
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], 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 + 0x10]
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 - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
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 + 0x10]
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 - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4ceb18
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 - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4ceaf6
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18