joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033e0
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x448e95
call fcn.00432c80
lea ecx, [ebp - 0x10]
call fcn.00401b22
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x4507d0
mov ecx, 0x4656d8
call fcn.00422755
test eax, eax
jne 0x40342e
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.00407847
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
mov ecx, 0x465560
jmp fcn.004047b3
lea ecx, [ebp - 0x38]
call fcn.00424bb3
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4507e4
lea edi, [ebp - 0x38]
call fcn.00401555
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402afd
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0040ab24
mov edi, dword [ebp - 0x30]
xor esi, esi
inc esi
cmp edi, esi
pop ecx
pop ecx
jbe 0x4034ed
test esi, esi
jl 0x40350b
cmp esi, dword [ebp - 0x30]
jge 0x40350b
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x4034e8
push str.CProgressPage
push eax
call fcn.00403dee
test al, al
pop ecx
pop ecx
je 0x4034b1
push ebx
call fcn.00403652
jmp 0x4034cd
cmp esi, dword [ebp - 0x30]
jge 0x40350b
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
push 0x44ff00
push eax
call fcn.00403dee
test al, al
pop ecx
pop ecx
jne 0x4034e8
cmp esi, dword [ebp - 0x30]
jge 0x40350b
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
lea ecx, [ebx + 0x98]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.00424e7b
inc esi
cmp esi, edi
jb 0x403479
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00424d64
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401b59
call fcn.00432d1f
ret
jmp fcn.0041bc0f

Function at 0x40451d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.0042581c
push dword [esp + 0xc]
mov esi, dword [eax + 0xc]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40453d
xor eax, eax
jmp 0x404550
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404539
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 8

Function at 0x4047b3
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x4047ec
push ebx
mov ebx, ecx
add ebx, 0x1b0
push edi
mov edi, dword [ebx]
test edi, edi
je 0x4047df
call fcn.004096b2
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.00408f92
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop ebx
push 1
call fcn.0042efe3
pop esi
Function at 0x404f8f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404ff2
cmp dword [ebp + 0xc], 1
je 0x404fcb
cmp dword [ebp + 0xc], 2
je 0x404fcb
push 0xd
pop eax
jmp 0x404ff2
test edi, edi
mov eax, dword [ebp - 4]
je 0x404fec
test eax, eax
je 0x404fe8
test al, 1
jne 0x404fc6
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404fec
jmp 0x404fc6
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4050c0
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x448cd7
call fcn.00432c80
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CProgressPage.0
mov dword [ebp - 4], 3
xor edi, edi
cmp dword [esi + 0x118], edi
je 0x405108
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.00404128
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x4050ee
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.00428ea0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.00428ea0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.00424d64
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040eb51
call fcn.00432d1f
ret

Function at 0x40550e
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x44721b
call fcn.00432c80
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.RememberTempFile.0
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x405550
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405550
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00401b59
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.00432d1f
ret
Function at 0x409776
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10000
mov edi, 0x8007000e
call fcn.0042f362
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x409824
push 0x7fff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4097c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4097bf
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x409824
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4097ab
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4097ab
cmp dword [ebp - 4], 0x7fffffff
jg 0x409824
push esi
push esi
push esi
push 8
push esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
je 0x4097ab
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x4097ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a845
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0042e7a0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x1000000
push esi
push esi
push esi
call fcn.0040293e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.00402958
cmp edi, esi
jne 0x40a8a4
xor eax, eax
jmp 0x40a8b7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40abd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x460df0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x44770e
call fcn.00432c80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x4528d4
mov ecx, edi
call fcn.00401555
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x218]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40ac52
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040165e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00401b59
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042e0d5
add ebp, 0x20c
leave
ret
Function at 0x40ac85
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x460df0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x34
mov eax, 0x447f2c
call fcn.00432c80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea edi, [ebp + 0x218]
call fcn.0040b29e
mov ecx, dword [ebp - 0x20]
push 0x45100c
call fcn.00401555
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], esi
call fcn.00401555
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
jne 0x40ae50
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], ebx
je 0x40ae50
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x40ae3d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401555
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00401b22
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x40ae25
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.DisplayName
call fcn.00401555
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x40]
call fcn.0040abd0
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00401ad5
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00401b59
lea edi, [ebp - 0x14]
call fcn.0040b29e
push dword [ebp + 0x218]
mov ecx, edi
call fcn.00401ea3
test eax, eax
jne 0x40ae25
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.UninstallString
call fcn.00401555
mov byte [ebp - 4], 7
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x34]
call fcn.0040abd0
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00401ad5
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00401b59
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00401b59
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401b59
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0x104
je 0x40ad31
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00401b59
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00401b59
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042e0d5
add ebp, 0x20c
leave
ret
Function at 0x40ae99
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x234
mov eax, 0x4487b1
call fcn.00432ce9
xor ebx, ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x22c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00401555
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x228]
push eax
push 0x20019
push ebx
push dword [ebp - 0x22c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40b003
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x220], ebx
je 0x40b003
mov dword [ebp - 0x224], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x220], 0x104
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x230], eax
jne 0x40afe7
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401555
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jle 0x40afd9
movzx eax, word [eax]
cmp ax, 0x76
jne 0x40afd9
push 0x76
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b223
push dword [ebp - 0x21c]
lea ebx, [ebp - 0x240]
call fcn.00406457
mov eax, dword [ebp - 0x23c]
cmp eax, dword [esi + 4]
jb 0x40afd7
ja 0x40afb5
mov eax, dword [ebp - 0x240]
cmp eax, dword [esi]
jbe 0x40afd7
push dword [ebp - 0x21c]
lea ebx, [ebp - 0x238]
call fcn.00406457
mov eax, dword [ebp - 0x238]
mov dword [esi], eax
mov eax, dword [ebp - 0x234]
mov dword [esi + 4], eax
xor ebx, ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x21c]
call fcn.00401b59
inc dword [ebp - 0x224]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x220], 0x104
je 0x40af17
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00401b59
mov eax, esi
call fcn.00432d33
ret

Function at 0x40b026
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x460df0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0042e7a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x40b075
cmp dword [ebp - 0x78], 2
jae 0x40b07b
cmp dword [ebp - 0x7c], 6
ja 0x40b07b
xor eax, eax
jmp 0x40b07e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0042e0d5
add ebp, 0x98
leave
ret
Function at 0x4123d6
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x6c
mov eax, 0x447d76
call fcn.00432c80
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401b22
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
push 0x45037c
mov ecx, 0x4656d8
call fcn.00422755
test eax, eax
mov edi, 0xbdd
je 0x41253d
mov esi, dword [ebp + 8]
push 0
push edi
call fcn.00412721
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00402afd
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x10]
call fcn.0040b093
pop ecx
mov byte [ebp - 4], 3
push 0x5c
mov esi, ebx
call fcn.004028d1
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00402a1d
mov byte [ebp - 4], 4
call fcn.0040288d
push 0x22
mov ecx, ebx
call fcn.004029f3
push str.__installscan
mov ecx, ebx
call fcn.0040297d
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0042e7a0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040293e
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0040293e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00402958
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402958
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x1f40
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
jne 0x412517
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
jle 0x412517
add dword [ebp - 0x14], 7
push dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push edi
call fcn.00412721
mov eax, 0x1f4
sub dword [ebp - 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0xc]
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x4124e0
cmp dword [ebp - 0x24], ebx
je 0x412525
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00401b59
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401b59
mov esi, dword [ebp + 8]
push 0x5f
push edi
call fcn.00412721
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401b59
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401b59
xor eax, eax
inc eax
call fcn.00432d1f
ret 8
Function at 0x413800
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [eax + 0x34]
push ebx
push esi
xor esi, esi
cmp dword [eax + 0x38], esi
lea ebx, [esi + 1]
jle 0x41383a
push ebp
push edi
movzx edi, dl
mov ecx, dword [eax + 0x260]
mov ebp, ecx
shr ebp, 0x18
xor ebp, edi
shl ecx, 8
xor ecx, dword [ebp*4 + 0x45f040]
add esi, ebx
mov dword [eax + 0x260], ecx
cmp esi, dword [eax + 0x38]
jl 0x413814
pop edi
pop ebp
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x4138c2
sub ecx, ebx
je 0x4138a7
sub ecx, ebx
je 0x41389b
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
Function at 0x414e10
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x414e2b
mov eax, dword [esp + 8]
test eax, eax
je 0x414fff
mov dword [eax], edi
pop edi
ret 0x1c
cmp byte [edi + 0x1390], 0
jne 0x414e50
mov eax, dword [esp + 8]
test eax, eax
je 0x414e42
mov dword [eax], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop edi
ret 0x1c
mov eax, dword [edi]
push eax
call fcn.00431d45
add esp, 4
test eax, eax
je 0x414e7b
mov eax, dword [esp + 8]
test eax, eax
je 0x414e6d
mov dword [eax], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
ret 0x1c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414e89
mov dword [eax], 0
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x414e99
mov dword [ebp], 0
push ebx
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x414ea8
mov dword [ebx], 0
push esi
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x414eb7
mov dword [esi], 0
cmp dword [esp + 0x1c], 0
jne 0x414f9e
cmp dword [edi + 0x13c4], 0
jne 0x414f3e
lea ebp, [edi + 4]
mov edi, edi
push 2
lea eax, [edi + 0x1394]
mov esi, 0x1388
push eax
mov dword [edi + 0x13a8], esi
mov dword [edi + 0x13a4], ebp
call fcn.00413c10
mov ebx, eax
cmp ebx, 3
je 0x414eff
cmp ebx, 4
jne 0x414f83
mov eax, dword [edi + 0x13a8]
cmp eax, esi
jae 0x414f2d
mov ecx, dword [edi]
push ecx
sub esi, eax
push esi
push 1
push ebp
call fcn.00431ed3
add esp, 0x10
cmp esi, eax
jne 0x414f64
mov edx, dword [edi]
push edx
call fcn.00431d45
add esp, 4
test eax, eax
jne 0x414f64
cmp ebx, 4
jne 0x414ed0
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call fcn.00431d45
add esp, 4
test eax, eax
jne 0x414f9a
mov ecx, dword [edi]
push ecx
call fcn.004320d3
mov edx, dword [edi]
push edx
call fcn.00431d45
add esp, 8
test eax, eax
je 0x414f9a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414f72
mov dword [eax], 0xfffffffa
pop esi
pop ebx
pop ebp
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
ret 0x1c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414f8d
mov dword [eax], ebx
pop esi
mov dword [edi + 0x13c4], ebx
pop ebx
pop ebp
pop edi
ret 0x1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x414faa
mov ecx, dword [edi + 0x139c]
mov dword [eax], ecx
test ebp, ebp
je 0x414fb7
mov edx, dword [edi + 0x13a0]
mov dword [ebp], edx
test ebx, ebx
je 0x414fc3
mov eax, dword [edi + 0x13ac]
mov dword [ebx], eax
test esi, esi
je 0x414fcf
mov ecx, dword [edi + 0x13b0]
mov dword [esi], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414fdd
mov dword [eax], 0
lea edx, [edi + 0x1394]
push edx
mov dword [edi + 0x13c4], 0
call fcn.00413d50
push edi
call fcn.0042f25b
add esp, 4
pop esi
pop ebx
pop ebp
pop edi
ret 0x1c
Function at 0x415210
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.004151f0
mov esi, dword [esp + 8]
push eax
push esi
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__10_December_2007._n_n
call fcn.0043221d
add eax, 0x40
push eax
call fcn.004323eb
add esp, 0x10
cmp esi, 0x3ef
pop esi
jne 0x415251
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
call fcn.0043221d
add eax, 0x40
push eax
call fcn.004323eb
add esp, 8
push 3
call fcn.0042efe3
int3