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

Disassembly:
mov eax, 0x42ec5c
call fcn.004279d0
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.0040c09f
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 1
call fcn.0040a558
lea ecx, [esi + 0x11c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1dc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1e0]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1e4]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_2
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x1e8]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x1f8]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x208]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x218]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 0xa
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00415e72
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x238]
mov byte [ebp - 4], 0xb
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00416096
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x248]
mov byte [ebp - 4], 0xc
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00416096
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x258]
mov byte [ebp - 4], 0xd
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.004165e4
mov ecx, esi
mov byte [ebp - 4], 0xe
mov dword [esi], 0x433ff0
mov dword [esi + 0x120], 1
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x134], 0xfffffffe
call fcn.0040c736
mov ecx, esi
call fcn.0040c473
mov ecx, esi
call fcn.0040cbce
mov ecx, esi
call fcn.0041113f
push ebx
mov ecx, esi
call fcn.004111f4
push 7
push 7
push 1
push 0x32
push 4
push 4
mov ecx, esi
mov dword [esi + 0x128], ebx
call fcn.00413a10
mov ecx, esi
mov dword [esi + 0x124], 0x20
call fcn.0041125e
push 1
mov ecx, esi
call fcn.0040c281
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call fcn.0040c28e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x410b4c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42f18e
call fcn.004279d0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004275c6
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
call fcn.004275c6
mov eax, dword [edi + 0x20]
lea ecx, [esi + 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.004275c6
mov eax, dword [edi + 0x44]
add edi, 0x74
mov dword [esi + 0x44], eax
mov eax, dword [edi - 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [edi - 0x28]
mov dword [esi + 0x4c], eax
mov eax, dword [edi - 0x24]
mov dword [esi + 0x50], eax
mov eax, dword [edi - 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [edi - 0x1c]
mov dword [esi + 0x58], eax
mov eax, dword [edi - 0x18]
mov dword [esi + 0x5c], eax
mov eax, dword [edi - 0x14]
mov dword [esi + 0x60], eax
mov eax, dword [edi - 0x10]
mov dword [esi + 0x64], eax
mov eax, dword [edi - 0xc]
mov dword [esi + 0x68], eax
mov eax, dword [edi - 8]
mov dword [esi + 0x6c], eax
mov eax, dword [edi - 4]
push edi
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 2
mov dword [esi + 0x70], eax
call fcn.004275c6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4181ef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x42fb6c
call fcn.004279d0
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1934]
mov dword [ebp - 4], 0x23
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18d4]
mov byte [ebp - 4], 0x22
call fcn.00408b49
lea ecx, [esi + 0x18d0]
mov byte [ebp - 4], 0x21
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1780]
mov byte [ebp - 4], 0x20
call fcn.00401c45
lea ecx, [esi + 0x1658]
mov byte [ebp - 4], 0x1f
call fcn.00401c45
lea ecx, [esi + 0x1634]
mov byte [ebp - 4], 0x1e
call fcn.00426adb
lea ecx, [esi + 0x15d4]
mov byte [ebp - 4], 0x1d
call fcn.004095ea
lea ecx, [esi + 0x15b8]
mov byte [ebp - 4], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x15b4]
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x15b0]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x15ac]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x15a8]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x15a4]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x16
lea ecx, [esi + 0x15a0]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x159c]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1598]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1594]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1590]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x158c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x157c]
mov byte [ebp - 4], 0x10
call fcn.00403202
lea ecx, [esi + 0x155c]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x14f8]
mov dword [ebp - 0x14], edi
mov ecx, edi
lea eax, [edi + 0x40]
neg ecx
sbb ecx, ecx
mov byte [ebp - 4], 0x24
and ecx, eax
call fcn.004017e6
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.004276aa
lea ecx, [esi + 0x1364]
mov byte [ebp - 4], 0xd
call fcn.00421e24
lea ecx, [esi + 0x11d0]
mov byte [ebp - 4], 0xc
call fcn.00421e24
lea ecx, [esi + 0x103c]
mov byte [ebp - 4], 0xb
call fcn.00421e24
lea ecx, [esi + 0xea8]
mov byte [ebp - 4], 0xa
call fcn.00421e24
lea ecx, [esi + 0xd14]
mov byte [ebp - 4], 9
call fcn.00421e24
lea ecx, [esi + 0xb80]
mov byte [ebp - 4], 8
call fcn.00421e24
lea ecx, [esi + 0x9ec]
mov byte [ebp - 4], 7
call fcn.00421e24
lea ecx, [esi + 0x858]
mov byte [ebp - 4], 6
call fcn.00421e24
lea ecx, [esi + 0x6c4]
mov byte [ebp - 4], 5
call fcn.00421e24
lea ecx, [esi + 0x530]
mov byte [ebp - 4], 4
call fcn.00421e24
lea ecx, [esi + 0x39c]
mov byte [ebp - 4], 3
call fcn.00421e24
lea ecx, [esi + 0x208]
mov byte [ebp - 4], 2
call fcn.00421e24
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 1
call fcn.00421e24
and byte [ebp - 4], 0
lea ecx, [esi + 0x60]
call fcn.00418452
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004277a0
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4184c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x442604]
and dword [ebp - 4], 0
push esi
mov esi, 0x442604
cmp dword [eax - 8], 0
jne 0x418528
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x418528
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
dec eax
cmp byte [ebp + eax - 0x108], 0x5c
pop ecx
lea eax, [ebp + eax - 0x108]
je 0x41851a
and byte [eax], 0
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 8]
push esi
call fcn.004275c6
mov eax, dword [ebp + 8]
pop esi
leave
ret
Function at 0x419c02
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x42ff08
call fcn.004279d0
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
lea edi, [esi + 0x18d4]
lea eax, [ebp - 0x14]
push str.sendToFriendBody
push eax
mov ecx, edi
call fcn.00408c81
push dword [0x43f904]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x1934]
lea eax, [esi + 0x1934]
mov byte [ebp - 4], 2
cmp dword [ecx - 8], 0
je 0x419c66
push eax
lea ecx, [ebp - 0x10]
call fcn.00427692
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._URL
push eax
call fcn.00425cf0
add esp, 0xc
lea eax, [ebp - 0x1c]
mov ecx, edi
push str.sendToFriendSubject
push eax
call fcn.00408c81
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x18]
push str.mailto:_subject_sbody_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, 0x442544
push 0xa
push eax
push eax
push dword [ebp - 0x18]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x424cf3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x430fdc
call fcn.004279d0
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp + 8]
call fcn.00424c8d
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edi, eax
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push dword [ebp + 0xc]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x424db1
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x424e0d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x430ff0
call fcn.004279d0
sub esp, 0x144
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 1
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x424ff1
mov ecx, esi
call fcn.004250a8
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
push eax
lea eax, [ebp - 0x4c]
push 0x1e
push eax
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x4c], 0x4034b50
jne 0x424fcd
cmp dword [ebp - 0x10], ebx
je 0x424fcd
cmp word [ebp - 0x32], bx
je 0x424fc2
lea eax, [ebp - 0x10]
push ebx
push eax
movzx eax, word [ebp - 0x32]
push eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call edi
movzx eax, word [ebp - 0x32]
mov byte [ebp + eax - 0x150], bl
xor eax, eax
cmp byte [ebp - 0x150], bl
je 0x424ee7
cmp eax, 0x104
jge 0x424ee7
cmp byte [ebp + eax - 0x150], 0x2f
lea ecx, [ebp + eax - 0x150]
jne 0x424edd
mov byte [ecx], 0x5c
inc eax
cmp byte [ebp + eax - 0x150], bl
jne 0x424ec2
cmp dword [ebp - 0x36], ebx
je 0x424e61
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp - 0x3a]
cmp word [ebp - 0x30], bx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x36]
mov dword [ebp - 0x24], eax
je 0x424f22
movzx eax, word [ebp - 0x30]
push 1
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push dword [ebp - 0x24]
mov ecx, esi
call fcn.00425073
push dword [ebp - 0x24]
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0042503e
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x20]
push eax
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x10], ebx
je 0x424e61
push 0x38
lea edi, [esi + 0x40]
push str.1.2.3
push 0xfffffffffffffff1
push edi
call fcn.0042b490
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x424f77
mov edi, dword [ebp - 0x2c]
jmp 0x424f95
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x50], ecx
mov ecx, dword [ebp - 0x2c]
push 2
push edi
mov dword [esi + 0x4c], edx
mov dword [edi], ecx
mov dword [esi + 0x44], eax
call fcn.0042b570
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
push dword [ebp - 0x24]
or dword [ebp - 0x1c], 0xffffffff
call sub.MFC42.DLL_operatornew
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
lea eax, [ebp - 0x28]
lea ecx, [esi + 4]
push eax
call fcn.00425203
jmp 0x424e61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x424ff1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esi + 8]
cmp ecx, ebx
jne 0x424fe1
xor eax, eax
jmp 0x424fec
mov eax, dword [esi + 0xc]
push 0x14
sub eax, ecx
pop ecx
cdq
idiv ecx
cmp eax, ebx
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42728c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
mov byte [ebp + 0xb], bl
cmp edi, 0xffffffff
je 0x4272fb
mov ecx, esi
call fcn.0042726e
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x4272ef
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], ebx
je 0x4272ef
mov byte [ebp + 0xb], 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp + 0xb], bl
jne 0x427302
mov ecx, esi
call fcn.0042726e
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x427e30
Capabilities:
Terminate process

Disassembly:
push esi
push edi
call fcn.00428d80
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__15_February_2005._n_n
push eax
call edi
add esp, 0x10
cmp esi, 0x3ef
jne 0x427e72
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
add ecx, 0x40
push ecx
call edi
add esp, 8
push 3
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
nop
nop
nop
nop
Function at 0x402a7e
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402acb
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x41f390
push 0x4784b0
mov byte [edi + esi], al
call fcn.00401374
push eax
call fcn.004019f8
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402a8c
pop edi
pop esi
ret

Function at 0x402f68
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x477300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f3b0
lea ecx, [ebp - 0x1c]
call fcn.00401af2
push 0xc
call fcn.004065e4
xor esi, esi
pop ecx
test eax, eax
je 0x402fa1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401b4b
jmp 0x402fa3
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x476e30
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push esi
push esi
push esi
push 0x402a6c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00402a52
mov edx, 0x476e30
add edx, 0x188
mov esi, 0x429030
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402918
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00406622
leave
ret

Function at 0x4071ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x40723e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40723e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40723e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40723e
cmp dword [ecx + 0x74], 0xe
jbe 0x40723e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411ef9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push 0x420d94
push 0x1e
call fcn.00411d66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x411f33
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x414426
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004140c8

Function at 0x414431
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414257

Function at 0x41482b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407370
mov eax, dword [0x477300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004132bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41486d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4149c9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041dd40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x478e48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004159fb
mov ecx, dword [esi*4 + 0x478e48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4149c2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4149c2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4149c2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159fb
add esp, 0x14
test edx, edx
jl 0x4149c2
jg 0x414938
test eax, eax
jb 0x4149c2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4149c2
jl 0x414952
cmp dword [ebp - 0x1008], eax
ja 0x4149c2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414970
test ebx, ebx
je 0x4149a9
cmp ecx, edi
jae 0x4149a9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41498a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414996
cmp byte [ecx + 1], 0xa
jne 0x414996
inc ecx
jmp 0x414996
movzx eax, al
movsx eax, byte [eax + 0x4775d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414970
cmp edx, ebx
jne 0x414970
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4149c7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406622
leave
ret