joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430980
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x471bf8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4309b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x430acc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4309cd
mov eax, 0xffffffc7
jmp 0x430ace
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4309de
cmp dword [esi + 8], eax
jne 0x4309cd
cmp dword [esi + 8], eax
jne 0x4309f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4309f7
mov eax, 0xffffffc7
jmp 0x430ace
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x430a0b
push eax
mov ecx, ebx
call fcn.004301b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402110
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x430a3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402130
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f920
test eax, eax
mov dword [esp + 0x38], eax
je 0x430a6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53e668
call fcn.00402310
mov eax, dword [esp + 0x38]
jmp 0x430ace
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004307e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x430ab3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430800
mov esi, eax
test esi, esi
jne 0x430ae3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004307e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x430a85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53e668
call fcn.00402310
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53e668
call fcn.00402310
mov eax, esi
jmp 0x430ace

Function at 0x433c00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433c60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433c60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433c60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433c60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x433ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x439df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004692e1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439790
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046920f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004659f6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004659f6
push 1
push 0
push 0
mov ecx, esi
call fcn.0046599e
push 1
push 0
push 1
mov ecx, esi
call fcn.0046599e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469353
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x439f70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004692e1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439790
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046920f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a034
cmp dword [esp + 0x40], 1
jne 0x43a032
cmp ecx, eax
jge 0x43a034
mov eax, ecx
cmp eax, 0xc8
jge 0x43a040
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439df0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469353
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a7c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4722b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00463e16
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00469589
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046aae1
test eax, eax
je 0x43a8dc
mov ecx, dword [esp + 0x3c]
call fcn.004695b6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a8a0
push edi
mov ecx, esi
call fcn.00466b7a
mov ecx, esi
call fcn.0043aa40
cmp dword [esp + 0x38], 1
jne 0x43a8d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00466ce4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d2f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d323
push esi
call fcn.004403e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d31c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d3a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d392
mov eax, dword [esi + 8]
test eax, eax
je 0x43d347
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d38e
cmp eax, 2
je 0x43d392
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d33a
cmp eax, 3
je 0x43d36d
cmp eax, 1
jne 0x43d33a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d33a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d33a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d3d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d3b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d3d0
add esp, 4
pop esi
ret

Function at 0x464c0c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464c44
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462cc3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462c9b
jmp 0x464c50
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4662fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466340
call fcn.0046bfed
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466340
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466337
xor eax, eax
jmp 0x466348
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046634e
pop edi
pop esi
pop ebx
ret 4

Function at 0x46c51d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46c54b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c569
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c483
jmp 0x46c569
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c569
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c483
test edi, edi
mov eax, edi
jne 0x46c553
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10010370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024993a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.101daf2d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x1001041f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.101df437
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x103baba4
push eax
call fcn.101e00bb
push eax
push esi
call fcn.101db275
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100148e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10249d96
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.101dc5f0
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.101db172
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10028dc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0x45555254
push edi
mov edi, edx
mov dword [esp + 0x10], 0x49534956
push edi
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], 0x582d4e4f
mov dword [esp + 0x1c], 0x454c4946
mov word [esp + 0x20], 0x2e
call eax
mov ecx, dword [ebx + 8]
mov esi, eax
push 2
push 0
push edi
call ecx
mov ecx, dword [ebx + 0xc]
push edi
call ecx
add eax, 0xffffffee
push 0
add eax, esi
push eax
mov eax, dword [ebx + 8]
push edi
call eax
push edi
push 0x12
push 1
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx]
call eax
mov eax, dword [ebx + 8]
push 0
push esi
push edi
call eax
lea edx, [esp + 0xc]
mov esi, 0xe
lea eax, [esp + 0x20]
nop dword [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10028e65
add edx, 4
add eax, 4
sub esi, 4
jae 0x10028e40
mov cx, word [edx]
cmp cx, word [eax]
jne 0x10028e65
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x1002b340
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov bx, dx
push edi
push esi
mov ebp, ecx
call sym.FreeImage.dll__FreeImage_GetPalette_4
mov edi, eax
movzx eax, bx
cmp eax, 1
jbe 0x1002b4a9
cmp eax, 3
jne 0x1002b565
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push 0x140
push ebp
call fcn.1014a100
mov cl, byte [esp + 0x3c]
mov eax, 1
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov edx, ebp
shl eax, cl
push ebx
push esi
mov ecx, eax
mov dword [esp + 0x2c], eax
call fcn.1002b0c0
add esp, 0x1c
cmp ax, 0x10
jne 0x1002b456
mov eax, dword [esp + 0x10]
add eax, 0xffffffff
mov dword [esp + 0x10], eax
js 0x1002b565
lea edi, [edi + eax*4]
sub ebp, esi
lea ecx, [esi + eax*2]
inc edi
sub ebx, esi
mov esi, ecx
nop dword [eax + eax]
movzx eax, word [esi + ebp]
lea esi, [esi - 2]
imul ecx, eax, 0xff
lea edi, [edi - 4]
mov eax, 0x80008001
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [edi + 5], al
movzx eax, word [esi + 2]
imul ecx, eax, 0xff
mov eax, 0x80008001
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [edi + 4], al
movzx eax, word [ebx + esi + 2]
imul ecx, eax, 0xff
mov eax, 0x80008001
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub dword [esp + 0x10], 1
mov byte [edi + 3], al
jns 0x1002b3e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
sub esi, 1
js 0x1002b565
mov eax, dword [esp + 0x14]
lea edx, [esi*4 + 1]
add edx, edi
sub ebp, eax
sub ebx, eax
lea ecx, [eax + esi*2]
nop word [eax + eax]
sub esi, 1
movzx eax, byte [ecx + ebp]
mov byte [edx + 1], al
lea ecx, [ecx - 2]
movzx eax, byte [ecx + 2]
lea edx, [edx - 4]
mov byte [edx + 4], al
movzx eax, byte [ecx + ebx + 2]
mov byte [edx + 3], al
jns 0x1002b480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
cmp ax, 1
jne 0x1002b4eb
test bx, bx
jne 0x1002b4d0
mov word [edi + 4], bx
mov byte [edi + 6], bl
mov word [edi], 0xffff
mov byte [edi + 2], 0xff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov word [edi], 0
mov byte [edi + 2], 0
mov word [edi + 4], 0xffff
mov byte [edi + 6], 0xff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp ax, 4
je 0x1002b4f7
cmp ax, 8
jne 0x1002b565
push esi
call sym.FreeImage.dll__FreeImage_GetColorsUsed_4
mov esi, eax
cmp bx, 1
jne 0x1002b53b
test esi, esi
jle 0x1002b565
mov eax, 0xff
lea ecx, [esi - 1]
cdq
xor ebx, ebx
idiv ecx
lea ecx, [edi + 2]
nop dword [eax]
mov byte [ecx - 2], bl
lea ecx, [ecx + 4]
mov byte [ecx - 5], bl
mov byte [ecx - 4], bl
add ebx, eax
sub esi, 1
jne 0x1002b520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
jle 0x1002b565
mov eax, 0xffffff01
lea ecx, [esi - 1]
cdq
idiv ecx
lea edx, [edi + 2]
mov ecx, 0xff
mov byte [edx - 2], cl
lea edx, [edx + 4]
mov byte [edx - 5], cl
mov byte [edx - 4], cl
add ecx, eax
sub esi, 1
jne 0x1002b552
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10036780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push edi
xor edi, edi
test ebp, ebp
jle 0x100367eb
push esi
mov esi, dword [esp + 0x18]
movzx eax, byte [esi]
test edi, edi
je 0x100367a1
and eax, 0xf
inc esi
jmp 0x100367a4
shr eax, 4
mov ecx, dword [esp + 0x20]
xor edi, 1
movzx edx, byte [ecx + eax*4 + 2]
lea ecx, [ecx + eax*4]
mov eax, 0xfff8
and dx, ax
movzx eax, byte [ecx + 1]
shl dx, 5
or dx, ax
mov eax, 0xfff8
and dx, ax
mov al, byte [ecx]
shr al, 3
shl dx, 2
movzx eax, al
or dx, ax
mov eax, dword [esp + 0x14]
mov word [eax + ebx*2], dx
inc ebx
cmp ebx, ebp
jl 0x10036794
pop esi
pop edi
pop ebp
pop ebx
ret 0x10

Function at 0x10037330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jle 0x100373a9
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add eax, 2
push edi
mov edi, dword [esp + 0x1c]
nop dword [eax]
movzx ecx, byte [edx]
test esi, esi
je 0x10037378
and ecx, 0xf
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
and ecx, 0xf
inc edx
jmp 0x10037396
shr ecx, 4
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 2]
xor esi, 1
mov byte [eax], cl
add eax, 3
sub ebx, 1
jne 0x10037350
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x10037a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jle 0x10037b0d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add eax, 2
push edi
mov edi, dword [esp + 0x1c]
nop dword [eax]
movzx ecx, byte [edx]
test esi, esi
je 0x10037ad8
and ecx, 0xf
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
and ecx, 0xf
inc edx
jmp 0x10037af6
shr ecx, 4
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 2]
xor esi, 1
mov byte [eax], cl
mov byte [eax + 1], 0xff
add eax, 4
sub ebx, 1
jne 0x10037ab0
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x10037da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x10037e58
push ebp
mov ebp, dword [esp + 0x18]
lea eax, [ecx + 2]
push edi
mov edi, dword [esp + 0x18]
nop dword [eax]
movzx ecx, byte [edx]
test esi, esi
je 0x10037e07
and ecx, 0xf
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 2]
mov byte [eax], cl
movzx ecx, byte [edx]
and ecx, 0xf
cmp ecx, dword [esp + 0x20]
jge 0x10037dff
movzx ecx, byte [ecx + ebp]
inc edx
jmp 0x10037e44
mov ecx, 0xff
inc edx
jmp 0x10037e44
shr ecx, 4
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
shr ecx, 4
cmp dword [esp + 0x20], 0
movzx ecx, byte [edi + ecx*4 + 2]
mov byte [eax], cl
jle 0x10037e3f
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [ecx + ebp]
jmp 0x10037e44
mov ecx, 0xff
mov byte [eax + 1], cl
xor esi, 1
add eax, 4
sub ebx, 1
jne 0x10037dc0
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x100384e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
xor edx, edx
push esi
mov esi, 1
test ebx, ebx
jle 0x1003858a
movss xmm2, dword [0x1039bfa4]
movss xmm3, dword [0x1039bff4]
movss xmm4, dword [0x1039bf70]
movss xmm5, dword [0x1039bfe0]
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x14]
nop
mov eax, dword [esp + 0x18]
movzx ecx, byte [edx + eax]
movzx eax, byte [ebp + ecx*4 + 2]
movd xmm1, eax
movzx eax, byte [ebp + ecx*4 + 1]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movzx eax, byte [ebp + ecx*4]
mulss xmm1, xmm2
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm3
addss xmm1, xmm0
movd xmm0, eax
mov eax, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
addss xmm1, xmm0
addss xmm1, xmm5
cvttss2si ecx, xmm1
test esi, esi
je 0x10038578
and cl, 0xf0
sar eax, 1
mov byte [eax + edi], cl
jmp 0x10038580
sar eax, 1
shr cl, 4
or byte [eax + edi], cl
inc edx
xor esi, 1
cmp edx, ebx
jl 0x10038520
pop edi
pop ebp
pop esi
pop ebx
ret 0x10