joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d234
Capabilities:
Get file attributes

Disassembly:
push esi
push ebp
push ebx
push esi
mov ebp, eax
cmp dword [0x872760], 0
je 0x45d24e
push 0x668080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x87235c], 0
jbe 0x45d283
xor ebx, ebx
mov edx, dword [0x872360]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x45d273
push eax
call fcn.0046f79e
pop ecx
mov edx, dword [0x872360]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, dword [0x87235c]
jb 0x45d259
mov edx, dword [0x872360]
test edx, edx
je 0x45d294
push edx
call fcn.0046f79e
pop ecx
xor edx, edx
mov dword [0x872360], 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 0x45d2b8
mov ebx, edx
mov dword [0x87235c], ebx
lea ecx, [ebx + ebx]
add ecx, ecx
push ecx
call fcn.0046f20c
pop ecx
mov dword [0x872360], eax
test ebx, ebx
jbe 0x45d2fa
xor edx, edx
mov ebx, eax
mov esi, edx
jmp 0x45d2e1
mov ebx, dword [0x872360]
push 0x209
call fcn.0046f20c
pop ecx
mov dword [ebx + esi*4], eax
mov ebx, dword [0x87235c]
inc esi
cmp esi, ebx
jb 0x45d2db
test ebx, ebx
jbe 0x45d35b
xor ebx, ebx
mov dword [esp], edi
mov eax, dword [0x872360]
push 0x209
push dword [eax + ebx*4]
push ebx
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov eax, dword [0x872360]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x45d34f
mov eax, dword [0x872360]
mov edi, dword [eax + ebx*4]
mov edx, 0x878338
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 0x45d345
inc ebx
cmp ebx, dword [0x87235c]
jb 0x45d303
mov edi, dword [esp]
push ebp
call dword [sym.imp.SHELL32.dll_DragFinish]
cmp dword [0x872760], 0
je 0x45d376
push 0x668080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
pop ebx
pop ebp
pop esi
ret
Function at 0x464a3c
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 0x464a55
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x464a4d
mov ebx, eax
inc ebx
push ebx
call fcn.0046f20c
pop ecx
mov ecx, dword [0x8725b0]
mov edx, dword [0x8725ac]
mov dword [edx + ecx*4], eax
mov edx, dword [0x8725ac]
mov ecx, dword [0x8725b0]
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x464bb1
push ebx
push edi
push edx
call dword [0x5b85ac]
add esp, 0xc
mov ebx, dword [0x8725b0]
mov ecx, dword [0x8725ac]
lea eax, [esp + 8]
mov edx, dword [ecx + ebx*4]
call fcn.00464c24
movsx eax, byte [esp + 0x10]
test eax, eax
je 0x464b8c
lea eax, [esp + 0x20]
push 4
push eax
push dword [esp + 0x10]
call fcn.00470e3e
add esp, 0xc
lea eax, [esp + 8]
call fcn.0045c310
mov edi, eax
lea eax, [esp + 8]
call fcn.0045c310
mov ebx, eax
lea eax, [esp + 8]
call fcn.00464cb4
mov edx, dword [esp + 0x20]
cmp edx, 0x465059
jne 0x464b2a
cmp edi, 0x22b
je 0x464b04
cmp edi, 0xea
jl 0x464b67
mov edx, dword [0x8725b4]
add edx, ebx
mov dword [0x8725b4], edx
cmp edx, 0x30d40
jge 0x464b4b
mov eax, dword [0x8725b0]
inc eax
mov dword [0x8725b0], eax
cmp eax, 0x64
jge 0x464b32
xor eax, eax
add esp, 0x24
pop ebx
pop edi
ret
push 0x64
push 1
push 0x196c2
call fcn.0046c28c
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
push 0x30d40
push 1
push 0x196cc
call fcn.0046c28c
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x8725b0]
mov eax, dword [0x8725ac]
push dword [eax + edx*4]
push 1
push 0x196b8
call fcn.0046c28c
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x8725b0]
mov eax, dword [0x8725ac]
push dword [eax + edx*4]
push 1
push 0xdbfb0
call fcn.0046c28c
mov eax, 0xfffffffe
add esp, 0x30
pop ebx
pop edi
ret
push 1
push 0x186aa
call fcn.0046c2e8
mov eax, 0xffffffff
add esp, 0x2c
pop ebx
pop edi
ret

Function at 0x464ca0
Capabilities:
Read file on windows

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

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push eax
push 0
push 0x878cfc
push 0x660da0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x465364
mov byte [0x8722e4], 1
xor eax, eax
add esp, 0x20c
ret
lea eax, [esp]
push 0x80
push 0x8301
push eax
call fcn.0046f994
add esp, 0xc
cmp eax, 0xffffffff
je 0x465398
push eax
call fcn.0046fe6a
lea eax, [esp + 4]
push eax
call fcn.0046f96a
xor eax, eax
add esp, 0x214
ret
mov byte [0x8722e4], 1
xor eax, eax
add esp, 0x20c
ret

Function at 0x4653b1
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, eax
xor ecx, ecx
push edx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
movzx ebx, bl
mov dword [ebx*4 + 0x8729cc], eax
test eax, eax
je 0x4653f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4653ee
push dword [ebx*4 + 0x8729cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
mov eax, 0xffffffff
pop ebx
ret

Function at 0x4653fc
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x41c494
call fcn.00472336
add esp, 0xc
test eax, eax
je 0x465422
movsx edx, byte [0x59b734]
dec edx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
ret
push 0x878de0
push 0
call fcn.00409070
add esp, 8
ret

Function at 0x465729
Capabilities:
Create process on windows

Disassembly:
push esi
push ebx
sub esp, 0x3c
mov ebx, ecx
movsx esi, byte [eax]
test esi, esi
je 0x465810
mov esi, dword [0x579ea8]
mov dword [esp + 0xc], esi
mov esi, dword [0x579eb4]
mov dword [esp + 0x18], esi
mov esi, dword [0x579ebc]
mov dword [esp + 0x20], esi
mov esi, dword [0x579ec0]
mov dword [esp + 0x24], esi
mov esi, dword [0x579ec4]
mov dword [esp + 0x28], esi
mov esi, dword [0x579ec8]
mov dword [esp + 0x2c], esi
mov esi, dword [0x579ecc]
mov dword [esp + 0x30], esi
mov esi, dword [0x579ed0]
mov dword [esp + 0x34], esi
mov esi, dword [0x579ed4]
mov dword [esp + 0x38], esi
mov dword [esp], 0x3c
mov dword [esp + 8], 0
mov ecx, dword [0x87279c]
test ecx, ecx
je 0x4657ce
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 4], esi
mov esi, dword [ecx + 0x2a4]
test esi, esi
je 0x4657ce
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 4], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x465810
mov eax, dword [esp + 0x20]
cmp eax, 0x20
jle 0x465810
movsx eax, bl
test eax, eax
je 0x465810
push 0xffffffffffffffff
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 0xffffffff
add esp, 0x3c
pop ebx
pop esi
ret
Function at 0x468eb0
Capabilities:
Get system information on windows

Disassembly:
push edi
sub esp, 0x24
call fcn.00463358
mov byte [0x87232c], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movsx eax, byte [esp + 0x14]
mov byte [0x59b734], al
movsx edi, byte [0x59b72c]
cmp edi, eax
jg 0x468edf
mov edi, eax
movsx edx, byte [0x59b728]
cmp edx, edi
jl 0x468eec
mov edx, edi
mov byte [0x59b730], 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 [0x87239c], eax
push 0xa
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8723a0], eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8723a4], eax
push 0x74
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x8723a8], eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x8723a8]
cmp eax, 0x3c
jae 0x468f51
mov dword [0x8723a8], 0xffffffff
xor eax, eax
add esp, 0x24
pop edi
ret

Function at 0x469a28
Capabilities:
Delete file

Disassembly:
cmp dword [0x872760], 0
je 0x469a3c
push 0x668080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x879cf4
push 0x660c80
push 0x879d04
push 0x5ce2a0
call fcn.0046f918
add esp, 0x10
push 0x5ce2a0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x872760], 0
je 0x469a77
push 0x668080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ret

Function at 0x46a798
Capabilities:
Create thread

Disassembly:
movsx eax, byte [0x872314]
test eax, eax
je 0x46a7b4
xor eax, eax
push eax
push eax
push 0x4209f8
call fcn.00472336
add esp, 0xc
ret
Function at 0x46a7b8
Capabilities:
Create thread

Disassembly:
push edi
push esi
push ebx
push esi
movsx edx, byte [0x59b730]
test edx, edx
jle 0x46a853
xor eax, eax
xor ecx, ecx
xor edx, edx
mov edi, eax
mov ebx, edx
mov esi, ecx
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi*4 + 0x7db680], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x7db780], eax
xor eax, eax
push eax
push 1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x7db880], eax
cmp dword [esi*4 + 0x7db680], 0
je 0x46a919
cmp dword [esi*4 + 0x7db780], 0
je 0x46a909
cmp dword [esi*4 + 0x7db880], 0
je 0x46a8f9
add ebx, 4
inc esi
movsx edx, byte [0x59b730]
cmp esi, edx
jl 0x46a7d7
mov eax, edi
cmp eax, 1
je 0x46a8e1
test edx, edx
jle 0x46a8dd
xor eax, eax
xor ecx, ecx
xor edx, edx
mov ebx, eax
mov esi, edx
mov edi, ecx
mov dword [esi + 0x7d9d80], edi
xor ecx, ecx
lea edx, [esi + 0x7d9d80]
lea eax, [esp]
push eax
push ecx
push edx
push 0x41f550
push ecx
push ecx
call fcn.004725d5
add esp, 0x18
mov dword [edi*4 + 0x7d9c80], eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
cmp dword [edi*4 + 0x7d9c80], 0
jne 0x46a8a8
mov ebx, 1
add esi, 0x64
inc edi
movsx eax, byte [0x59b730]
cmp edi, eax
jl 0x46a867
mov eax, ebx
cmp eax, 1
je 0x46a8c5
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
ret
push 0x8792c4
push 0
call fcn.00409070
mov eax, 0xffffffff
add esp, 0xc
pop ebx
pop esi
pop edi
ret
xor eax, eax
jmp 0x46a8b9
push 0x879298
push 0
call fcn.00409070
mov eax, 0xffffffff
add esp, 0xc
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
jmp 0x46a839
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
jmp 0x46a82b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
jmp 0x46a81d

Function at 0x46bc24
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x87282c], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x872830], eax
xor eax, eax
push eax
push 1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x872834], eax
xor edx, edx
lea eax, [esp]
push eax
push edx
push 0x7d1840
push 0x41b690
push edx
push edx
call fcn.004725d5
add esp, 0x18
mov dword [0x872828], eax
pop ecx
ret

Function at 0x46bc94
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x8727f4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x8727f8], eax
xor edx, edx
mov eax, 1
push edx
push eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x8727fc], eax
xor edx, edx
lea eax, [esp]
push eax
push edx
push 0x7ce140
push 0x4186d8
push edx
push edx
call fcn.004725d5
add esp, 0x18
mov dword [0x8727f0], eax
pop ecx
ret
Function at 0x46bcf4
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x417d78
call fcn.00472336
add esp, 0xc
call fcn.0046bc7c
ret

Function at 0x46c028
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
call dword [sym.imp.WINMM.dll_joyGetNumDevs]
test eax, eax
jg 0x46c03c
mov dword [0x871fd8], eax
xor eax, eax
pop ecx
ret
mov edx, 0x10
cmp eax, 0x10
jl 0x46c048
mov eax, edx
mov dword [0x871fd8], eax
xor eax, eax
mov dword [esp], ebx
mov ebx, eax
lea edx, [ebx + 0x78ac80]
push 0x34
push edx
call dword [0x5b85a0]
add esp, 8
mov dword [ebx + 0x78ac80], 0x34
mov dword [ebx + 0x78ac84], 0x83
add ebx, 0x34
cmp ebx, 0x340
jl 0x46c054
mov ebx, dword [esp]
mov dword [0x78afc0], 1
mov dword [0x78afc4], 2
mov dword [0x78afc8], 4
mov dword [0x78afcc], 8
mov dword [0x78afd0], 0x10
mov dword [0x78afd4], 0x20
mov dword [0x78afd8], 0x40
mov dword [0x78afdc], 0x80
mov dword [0x78afe0], 0x100
mov dword [0x78afe4], 0x200
mov dword [0x78afe8], 0x400
mov dword [0x78afec], 0x800
mov dword [0x78aff0], 0x1000
mov dword [0x78aff4], 0x2000
mov dword [0x78aff8], 0x4000
mov dword [0x78affc], 0x8000
mov dword [0x78b000], 0x10000
mov dword [0x78b004], 0x20000
mov dword [0x78b008], 0x40000
mov dword [0x78b00c], 0x80000
mov dword [0x78b010], 0x100000
mov dword [0x78b014], 0x200000
mov dword [0x78b018], 0x400000
mov dword [0x78b01c], 0x800000
mov dword [0x78b020], 0x1000000
mov dword [0x78b024], 0x2000000
mov dword [0x78b028], 0x4000000
mov dword [0x78b02c], 0x8000000
mov dword [0x78b030], 0x10000000
mov dword [0x78b034], 0x20000000
mov dword [0x78b038], 0x40000000
mov dword [0x78b03c], 0x80000000
mov eax, 1
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x5ce6c0], eax
mov eax, 1
mov ecx, dword [eax*4 + 0x5ce6bc]
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5ce6c0], edx
inc eax
cmp eax, 0x270
jl 0x46c552
mov dword [0x59b710], eax
ret
Function at 0x478309
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x59ed98
cmp edx, dword [eax]
je 0x47832b
add eax, 8
inc ecx
cmp eax, 0x59ee28
jl 0x47831c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x59ed98]
jne 0x478459
mov eax, dword [0x872e18]
cmp eax, 1
je 0x478433
test eax, eax
jne 0x47835c
cmp dword [0x59c350], 1
je 0x478433
cmp edx, 0xfc
je 0x478459
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x478393
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00479930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004761c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4783d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004761c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x57a468
push edi
call fcn.004797b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00479930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00479940
lea eax, [ebp - 0xa0]
push 0x57a448
push eax
call fcn.00479940
push dword [esi + 0x59ed9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00479940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0047c91b
add esp, 0x2c
pop edi
jmp 0x478459
lea eax, [ebp + 8]
lea esi, [esi + 0x59ed9c]
push 0
push eax
push dword [esi]
call fcn.004761c0
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 0x494d54
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
je 0x494e02
cmp eax, 0xcb
je 0x494d97
cmp eax, 0xcc
je 0x494d8d
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.00494e34
pop ecx
pop ebx
ret
mov edx, dword [ebx + 0x190]
movzx ecx, byte [edx + 0x10]
test ecx, ecx
jne 0x494db0
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x84], edx
jmp 0x494d8d
mov edx, dword [ebx + 8]
test edx, edx
je 0x494dbb
push ebx
call dword [edx]
pop ecx
push ebx
mov edx, dword [ebx + 0x190]
call dword [edx]
pop ecx
test eax, eax
je 0x494e2c
cmp eax, 2
je 0x494da5
mov edx, dword [ebx + 8]
test edx, edx
je 0x494dbb
cmp eax, 3
je 0x494ddf
cmp eax, 1
jne 0x494db7
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 0x494db3
mov ecx, dword [ebx + 0x11c]
add eax, ecx
mov dword [edx + 8], eax
mov edx, dword [ebx + 8]
jmp 0x494db3
push ebx
call fcn.00497b98
pop ecx
movzx edx, byte [ebx + 0x40]
test edx, edx
jne 0x494e1d
mov dword [ebx + 0x14], 0xcb
jmp 0x494d97
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ecx
pop ebx
ret
xor eax, eax
pop ecx
pop ebx
ret

Function at 0x494e34
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
sub esp, 8
mov ebx, eax
mov edx, dword [ebx + 0x14]
cmp edx, 0xcc
je 0x494e5d
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 0x494ef6
mov eax, dword [ebx + 0x78]
mov dword [esp], esi
mov dword [esp + 4], edi
lea ecx, [ebx + 0x78]
mov esi, ecx
jmp 0x494e82
xor eax, eax
cmp eax, dword [ebx + 0x60]
jae 0x494eca
mov edx, dword [ebx + 8]
test edx, edx
je 0x494ea4
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 0x494f17
cmp eax, dword [ebx + 0x60]
jb 0x494e87
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 0x494e80
mov esi, dword [esp]
mov edi, dword [esp + 4]
movzx edx, byte [ebx + 0x41]
test edx, edx
je 0x494f05
mov edx, 0xce
jmp 0x494f0a
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 0x49997c
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 0x499ad1
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 0x499aca
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 0x4999e3
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 0x499a10
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 0x499a6c
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 0x499a50
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 0x499a30
mov edx, dword [esp + 8]
test edx, edx
je 0x499aaf
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 0x499a8c
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
add edx, 1
cmp edx, dword [ebx + 0x64]
mov dword [esp + 4], edx
jl 0x4999dc
mov ebx, dword [esp]
add esp, 0x20
pop ebp
pop esi
pop edi
ret
mov byte [esi + 0x1c], 1
mov ebp, 0x1fe
jmp 0x49999c
Function at 0x4bb087
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 0x4bb1aa
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 0x4bb18e
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 0x4bb0e0
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 0x4bb0be
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x4bb466
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x6c]
imul esi, dword [edx + 0x60]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x4bb594
mov eax, 0xf81f
push edi
mov edi, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x4bb574
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff07e0
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x1002]
mov ebx, edx
and ebx, 0xffff07e0
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff07e0
add ebx, ecx
mov ecx, esi
and ecx, 0xffff07e0
lea ecx, [ebx + ecx + 0x40]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff07e0
lea ecx, [edx + esi + 0x1002]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x4bb4bf
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x60]
mov edx, dword [edx]
mov edi, dword [edx + 0x60]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x4bb4a0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret