joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444072
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00431470
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x44f6e4]
je 0x4441c0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4440e2
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4440e9
cmp ebx, ebx
jne 0x4440e9
xor eax, eax
jmp 0x4441c3
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4440f6
mov byte [esi + 0x20], bl
jmp 0x44410a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.0042f25a
test eax, eax
je 0x444131
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042f341
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x444136
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0042f25a
test eax, eax
je 0x44415e
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042f341
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x444168
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0042f25a
test eax, eax
je 0x444190
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042f341
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x44419a
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4441ac
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4441c0
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x444ddf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x45e540]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x444e32
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x444e32
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x444e3a
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa4d
leave
ret 8

Function at 0x445a55
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45e540]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x445aa6
push edi
call fcn.004477de
mov esi, eax
test esi, esi
je 0x445aca
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x445aca
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x44cb00
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa4d
leave
ret 0xc

Function at 0x4463d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45e540]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x446405
push 0x44df04
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x446417
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x44644c
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0043078c
add esp, 0x10
cmp eax, 0xffffffff
je 0x44644c
cmp eax, esi
jae 0x44644c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44644e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fa4d
leave
ret
Function at 0x446471
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x45e540]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44651b
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x44661d
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4465cb
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44661e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4465c0
cmp dword [ebp - 0x24], 1
jne 0x4465c0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x44df14
push eax
call fcn.00431017
add esp, 0xc
cmp eax, 1
jne 0x4465c0
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44661e
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44661e
lea ecx, [ebp - 0x18]
push ecx
push 0x44645b
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x44661e
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x446643
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.004463d2
cmp eax, ebx
pop ecx
jne 0x446645
inc edi
cmp edi, esi
jl 0x44662d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa4d
leave
ret 4
Function at 0x446656
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x45d594
je 0x446712
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4466fa
mov esi, dword [ebx + 4]
jmp 0x4466f4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4466e4
cmp dword [ebp - 0xc], 4
jne 0x4466e4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4466dc
or dword [eax + 0x9c], ecx
jmp 0x4466e4
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4466a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44668b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x446b06
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44adee
call fcn.0043104c
sub esp, 0x124
mov eax, dword [0x45e540]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x446c14
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x446be8
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004021a0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00446b06
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004019c0
test bl, bl
jne 0x446be8
or dword [ebp - 4], 0xffffffff
jmp 0x446b53
cmp esi, 0x103
je 0x446bf8
cmp esi, 0x3f2
jne 0x446c08
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa4d
leave
ret 8
Function at 0x447e53
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x447e88
cmp edi, dword [esi + 0xc]
jge 0x447e88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x447e88
cmp edi, dword [eax + 8]
jge 0x447e88
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x447e8a
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x447f8e
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x447fc2
jmp fcn.0043ce10
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x448033
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44812c
cmp eax, dword [edi + 0xc]
jge 0x44812c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x448084
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x448115
cmp dword [ebp + 0xc], ebx
je 0x448115
jmp 0x4480ae
push 0x10
call fcn.00447d1f
cmp eax, ebx
je 0x44809a
mov ecx, eax
call fcn.00447f85
mov esi, eax
jmp 0x44809c
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4480c5
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4480d5
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4480e7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043ce10
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00431470
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x448127
cmp ecx, dword [esi + 8]
jge 0x448127
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44812d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4481eb
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 0x448219
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x448237
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00448155
jmp 0x448237
mov eax, dword [esi + 0x14]
test eax, eax
je 0x448237
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00448155
test edi, edi
mov eax, edi
jne 0x448221
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5726ec]
test ecx, ecx
je 0x4482ea
jmp 0x4481ea
ret 8
Function at 0x10001400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1000140e
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
pop ebp
ret 0xc

Function at 0x10001430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1000143e
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
pop ebp
ret 0xc
Function at 0x1001dd90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xf864], eax
mov edx, 1
shl dx, cl
mov dword [esi + 0xf860], ecx
mov dword [esi + 0xf854], ecx
dec ecx
mov eax, 1
shl eax, cl
push edi
xor edi, edi
dec dx
mov dword [esi + 0xf868], eax
inc eax
mov dword [esi + 0xf86c], eax
mov ax, word [esi + 0xf868]
add ax, 2
mov ecx, esi
mov dword [esi + 0xf85c], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1d4], edi
mov word [esi + 0xf858], dx
mov word [esi + 0xf85a], ax
mov dword [esi + 0xf870], edi
call sym.cximagecrt100.dll_protected:_int___thiscall_CxImageGIF::GifNextPixel_void_
mov dword [ebp + 8], eax
xor ecx, ecx
mov eax, 0x138b
add eax, eax
inc ecx
cmp eax, 0x10000
jl 0x1001de13
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [ebp - 4], eax
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::cl_hash_long_int_
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::output_short_int_
mov ecx, esi
call sym.cximagecrt100.dll_protected:_int___thiscall_CxImageGIF::GifNextPixel_void_
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x1001df64
push ebx
jmp 0x1001de63
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
movsx edi, ax
shl edi, cl
mov ebx, eax
shl ebx, 0xc
add ebx, dword [ebp + 8]
xor edi, dword [ebp + 8]
mov ecx, dword [esi + edi*4 + 0x8310]
lea eax, [esi + edi*4 + 0x8310]
cmp ecx, ebx
jne 0x1001de98
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [ebp + 8], edx
jmp 0x1001df50
test ecx, ecx
js 0x1001ded2
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x1001deb0
mov ecx, 1
lea esp, [esp]
lea edx, [ecx*4]
sub eax, edx
sub edi, ecx
jns 0x1001dec8
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x1001df0c
test edx, edx
jg 0x1001deb0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::output_short_int_
movzx eax, word [esi + 0xf85a]
mov edx, dword [ebp + 0xc]
mov ecx, 0x1000
mov dword [ebp + 8], edx
cmp ax, cx
jge 0x1001df19
mov word [esi + edi*2 + 0xd13c], ax
inc word [esi + 0xf85a]
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x1001df50
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [ebp + 8], eax
jmp 0x1001df50
push 0x138b
mov ecx, esi
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::cl_hash_long_int_
movzx eax, word [esi + 0xf868]
mov dx, word [esi + 0xf868]
add dx, 2
push eax
mov ecx, esi
mov word [esi + 0xf85a], dx
mov dword [esi + 0xf85c], 1
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::output_short_int_
mov ecx, esi
call sym.cximagecrt100.dll_protected:_int___thiscall_CxImageGIF::GifNextPixel_void_
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x1001de60
pop ebx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::output_short_int_
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call sym.cximagecrt100.dll_protected:_void___thiscall_CxImageGIF::output_short_int_
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10038c90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1006f180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov bl, byte [edx + 8]
push esi
mov dword [ebp - 0x18], eax
cmp bl, 3
je 0x10038e5c
mov ecx, dword [edx]
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x1c], 0
test bl, 2
je 0x10038cf5
movzx eax, byte [edx + 9]
movzx edi, byte [esi]
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 2]
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov edi, 3
jmp 0x10038d07
movzx edi, byte [esi + 3]
movzx ebx, byte [edx + 9]
sub ebx, edi
mov dword [ebp - 0x14], ebx
mov edi, 1
test byte [edx + 8], 4
je 0x10038d1c
movzx esi, byte [esi + 4]
movzx ebx, byte [edx + 9]
sub ebx, esi
mov dword [ebp + edi*4 - 0x14], ebx
inc edi
xor esi, esi
test edi, edi
jle case.0x10038d65.3
cmp dword [ebp + esi*4 - 0x14], 0
jg 0x10038d37
mov dword [ebp + esi*4 - 0x14], 0
jmp 0x10038d3e
mov dword [ebp - 0x1c], 1
inc esi
cmp esi, edi
jl 0x10038d26
cmp word [ebp - 0x1c], 0
je case.0x10038d65.3
movzx esi, byte [edx + 9]
add esi, 0xfffffffe
cmp esi, 0xe
ja case.0x10038d65.3
movzx esi, byte [esi + 0x10038e80]
jmp dword [esi*4 + 0x10038e6c]
mov edx, dword [edx + 4]
test edx, edx
je case.0x10038d65.3
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
dec edx
jne 0x10038d77
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005ba3e
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 4]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, pe_nt_image_headers32
sar edx, cl
mov ebx, 0xf
sar ebx, cl
and dl, 0xf0
or dl, bl
test edi, edi
je case.0x10038d65.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, al
shr bl, cl
inc esi
and bl, dl
dec edi
mov byte [esi - 1], bl
jne 0x10038dc0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005ba3e
mov esp, ebp
pop ebp
ret
imul ecx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je case.0x10038d65.3
mov edi, edi
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
cmp ebx, dword [ebp - 0x18]
jb 0x10038df0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005ba3e
mov esp, ebp
pop ebp
ret
imul ecx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je case.0x10038d65.3
xor edx, edx
mov eax, ebx
div edi
movzx eax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc ebx
add esi, 2
movzx ecx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp - 0x18]
jb 0x10038e23
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ba3e
mov esp, ebp
pop ebp
ret
Function at 0x10043dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x10043e49
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x10043e20
sub eax, ebx
jmp 0x10043e22
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10043e11
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x10043e3f
sub eax, ebx
jmp 0x10043e41
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10043e30
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x10043ea3
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, esi
add edx, dword [edi + 0x38]
mov esi, eax
push edx
call fcn.10043ad0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x10043e8f
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x10043ea3
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x10043dd5
pop esi
pop ebx
ret