joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d9f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x58
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 4]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [0x4e4924], eax
jne 0x44da3e
mov dword [0x4e4924], 1
lea ecx, [esp + 0x28]
push ecx
mov dword [0x4e4920], 1
call fcn.00449310
add esp, 4
test al, al
je 0x44db6d
mov eax, dword [esp + 0x40]
test al, 0x10
je 0x44da6a
mov esi, 1
test eax, 0x800000
je 0x44da74
or esi, 2
test eax, 0x2000000
je 0x44da7e
or esi, 4
test dword [esp + 0x50], 0x80000000
je 0x44da8b
or esi, 8
push 0xc
lea edx, [esp + 0x2c]
push str.GenuineIntelAuthenticAMDCyrixInsteadCentaurHalls
push edx
call fcn.0048b513
add esp, 0xc
test eax, eax
jne 0x44daed
test dword [esp + 0x40], 0x4000000
mov dword [0x4e4918], 1
je 0x44daba
or esi, 0x10
cmp dword [esp + 0x38], 4
jb 0x44db6d
mov eax, dword [esp + 0x44]
shr eax, 0x1a
je 0x44db6d
movzx eax, al
or esi, 0x40
add eax, 1
mov dword [0x4e4920], eax
mov dword [0x4e491c], esi
mov eax, esi
pop esi
add esp, 0x58
ret
push 0xc
lea ecx, [esp + 0x2c]
push 0x4ca62c
push ecx
call fcn.0048b513
add esp, 0xc
test eax, eax
jne 0x44db41
test dword [esp + 0x40], 0x4000000
mov dword [0x4e4918], 2
je 0x44db1c
or esi, 0x10
movzx eax, byte [esp + 0x58]
test eax, eax
jbe 0x44db6d
movzx edx, al
or esi, 0x40
add edx, 1
mov dword [0x4e491c], esi
mov eax, esi
mov dword [0x4e4920], edx
pop esi
add esp, 0x58
ret
push 0xc
lea eax, [esp + 0x2c]
push 0x4ca638
push eax
call fcn.0048b513
add esp, 0xc
test eax, eax
je 0x44db6d
push 0xc
lea ecx, [esp + 0x2c]
push 0x4ca644
push ecx
call fcn.0048b513
add esp, 0xc
mov dword [0x4e491c], esi
mov eax, esi
pop esi
add esp, 0x58
ret

Function at 0x44df30
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ecx
push esi
push 0x10
mov esi, ecx
push edx
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x44dfac
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
je 0x44df58
cmp eax, 0x2733
je 0x44dfa7
cmp eax, 0x2328
je 0x44dfa7
cmp esi, 0xffffffff
je 0x44df9d
push edi
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x44df8b
mov dword [0x4e3fbc], 0x1f42
push esi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSAGetLastError
push edi
call sub.WS2_32.dll_WSASetLastError
pop edi
mov dword [0x4e3fbc], 0x1f49
xor al, al
pop esi
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret
Function at 0x44dfc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edx, dword [esp + 0x28]
mov edi, ecx
push eax
mov ecx, esi
mov dword [esp + 0xc], 1
call fcn.00449cc0
test al, al
je 0x44e0ac
cmp byte [esp + 0x20], 0
je 0x44e014
mov edx, dword [esi]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0xffff
push edx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x44e014
mov edi, 0x1f45
jmp 0x44e09d
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x44e03f
mov edi, 0x1f41
mov dword [0x4e3fbc], edi
jmp 0x44e09d
xor eax, eax
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call sub.WS2_32.dll_htonl
push edi
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_htons
push 0x10
lea edx, [esp + 0x10]
mov word [esp + 0x12], ax
mov eax, dword [esi]
push edx
push eax
call sub.WS2_32.dll_bind
test eax, eax
je 0x44e087
mov edi, 0x1f47
jmp 0x44e09d
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push ecx
push edx
call sub.WS2_32.dll_listen
test eax, eax
je 0x44e0b6
mov edi, 0x1f48
xor dl, dl
mov ecx, esi
call fcn.00449db0
mov dword [0x4e3fbc], edi
pop edi
xor al, al
pop esi
add esp, 0x14
ret 0x10
pop edi
mov al, 1
pop esi
add esp, 0x14
ret 0x10

Function at 0x44e280
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.00460e40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
not eax
mov dword [esi], eax
not eax
cmp eax, 0xffffffff
jne 0x44e2a1
pop edi
xor al, al
pop esi
ret
push 0x4e43c8
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e45f8]
mov dword [eax*4 + 0x4e43e0], esi
add eax, 1
push 0x4e43c8
mov dword [0x4e45f8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop esi
ret

Function at 0x44e2e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x44e31a
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x94
ret
cmp eax, 5
jb 0x44e335
cmp dword [esp + 0xc], 1
jb 0x44e335
mov ecx, esi
call fcn.0044a780
pop esi
add esp, 0x94
ret
xor al, al
pop esi
add esp, 0x94
ret
Function at 0x44f7b0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4a513b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5dc
mov al, byte [esp + 0x5f0]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x5f4]
xor ebx, ebx
push edi
mov dword [esp + 0x1c], esi
mov dword [esi + 4], ebx
mov byte [esi + 8], al
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], ecx
mov dword [esp + 0x5f0], ebx
mov dword [esi], vtable.Blizzard::IOCoreAlignedFileUnit.0
call fcn.00443d40
mov edi, eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x24], edx
mov ecx, dword [0x4df3ac]
cmp ecx, ebx
mov eax, dword [edi]
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
je 0x44f845
mov eax, dword [ecx + 0x30]
lea edx, [esp + 0x24]
call eax
jmp 0x44f847
xor al, al
xor ecx, ecx
cmp al, bl
je 0x44f854
mov ecx, dword [esp + 0x8c]
mov edx, dword [edi]
add ecx, 1
push ecx
lea ecx, [esp + 0x1ec]
call fcn.00444b20
mov eax, ecx
lea edx, [eax + 1]
jmp 0x44f870
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x44f870
sub eax, edx
add eax, 1
cmp eax, 0x12c
mov dword [esp + 0xb4], eax
ja 0x44f895
lea eax, [esp + 0xbc]
jmp 0x44f89e
push eax
call fcn.00409fd0
add esp, 4
mov ecx, dword [esp + 0xb4]
push ecx
lea edx, [esp + 0x1ec]
mov ecx, eax
mov dword [esp + 0xbc], eax
call fcn.00444b20
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov edi, eax
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0xbc]
cmp eax, ecx
je 0x44f8fa
push eax
call fcn.00409f40
add esp, 4
cmp edi, ebx
je 0x44f90e
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
test ecx, eax
jne 0x44f90e
mov dword [esi + 0x1c], eax
jmp 0x44f915
mov dword [esi + 0x1c], 0xffff
mov edx, dword [esi + 0x1c]
push 0x4a8994
push 0x8c
push str.d:_buildserver1work_repair_241core_repository_branches_repair_241_blizzardcore_source_systemmemoryStackedAllocator.cpp
push ebx
add edx, 0x100000
lea ecx, [esp + 0x20]
call fcn.004496c0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
lea edx, [eax + ecx]
not eax
and edx, eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x5e8]
pop edi
mov dword [esi + 0x18], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5e8
ret 8
Function at 0x44fa70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x17c
push esi
mov esi, dword [esp + 0x188]
test esi, esi
jne 0x44fa86
xor eax, eax
jmp 0x44fa9b
mov eax, esi
lea edx, [eax + 1]
jmp 0x44fa90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44fa90
sub eax, edx
add eax, 1
cmp eax, 0x12c
mov dword [esp + 0x4c], eax
ja 0x44faaf
lea eax, [esp + 0x54]
jmp 0x44fab8
push eax
call fcn.00409fd0
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
mov edx, esi
mov ecx, eax
mov dword [esp + 0x54], eax
call fcn.00444b20
mov edx, dword [esp + 0x50]
push 0
push 0x20000000
push 3
push 0
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x54]
cmp eax, ecx
mov dword [esp + 0xc], esi
je 0x44fb02
push eax
call fcn.00409f40
add esp, 4
cmp esi, 0xffffffff
jne 0x44fb13
xor al, al
pop esi
add esp, 0x17c
ret 0x14
mov edx, dword [esp + 0x190]
push ebx
push ebp
mov ebp, dword [esp + 0x18c]
push edi
push 0
mov esi, ebp
and esi, 0xfff
lea edi, [esi + edx + 0xfff]
push 0x212
push str.d:_buildserver1work_repair_241core_repository_branches_repair_241_blizzardcore_sourcepackagesiounitIOFileUnit.cpp
and edi, 0xfffff000
push 0
mov edx, edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x23], 0
call fcn.004496c0
mov ebx, dword [eax]
push 0
push 0
sub ebp, esi
push ebp
mov ebp, dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x44fbd1
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44fbd1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x19c]
sub eax, esi
mov dword [esp + 0x18], eax
cmp eax, ecx
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x18]
jb 0x44fba5
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x198]
push eax
lea edx, [esi + ebx]
mov dword [esp + 0x18], eax
call fcn.00444cf0
mov eax, dword [esp + 0x1a0]
test eax, eax
je 0x44fbcc
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov byte [esp + 0x13], 1
xor eax, eax
cmp ebx, eax
je 0x44fc0e
mov ecx, dword [0x4df4cc]
cmp ecx, eax
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], str.d:_buildserver1work_repair_241core_repository_branches_repair_241_blizzardcore_sourcepackagesiounitIOFileUnit.cpp
mov dword [esp + 0x3c], 0x227
mov dword [esp + 0x40], eax
je 0x44fc0e
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x20]
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x17c
ret 0x14
Function at 0x44fe60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a5181
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x30]
test edi, edi
mov esi, edx
je 0x44ff1d
test esi, esi
jne 0x44fea1
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
test ecx, ecx
jne 0x44fec4
push ecx
push 0x44
push str.d:_buildserver1work_repair_241core_repository_branches_repair_241_blizzardcore_sourcepackagesiounitIOUnitContainer.cpp
lea edx, [ecx + 0x7c]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.004496c0
mov ecx, dword [eax]
jmp 0x44fedb
mov eax, dword [ecx]
lea edx, [eax + 0x7f]
and edx, 0xfffffffc
mov dword [ecx], edx
mov dl, byte [ecx + 4]
mov byte [ecx + 4], 0
mov byte [esp + 0x30], dl
mov ecx, eax
mov dword [esp + 8], ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
mov dword [esp + 0x1c], 0
je 0x44ff1d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push edi
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push edx
push esi
call fcn.0044cc00
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov ecx, dword [esp + 0x14]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10

Function at 0x450cd0
Capabilities:
Get file size

Disassembly:
sub esp, 0x15c
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x450df0
mov ecx, dword [esi]
push edi
lea eax, [esp + 8]
push eax
push ecx
mov byte [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x450d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x450def
mov eax, dword [esi + 0x48]
test eax, eax
je 0x450d17
cmp dword [eax], 0
jne 0x450d29
mov eax, dword [esp + 8]
xor edx, edx
xor ecx, ecx
or edx, edi
or eax, ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x4c]
push edx
lea ecx, [esp + 0x34]
call fcn.0044e230
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov edi, eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x450d5e
push eax
call fcn.00409f40
add esp, 4
test edi, edi
je 0x450deb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00444f70
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00444f70
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x18]
push ecx
push edx
mov dword [esi + 0x30], eax
call fcn.00444f70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
call fcn.004444a0
mov dl, al
shr dl, 5
and dl, 1
cmp ecx, 0xffffffff
mov dword [esi + 0x20], eax
mov byte [esi + 0x44], dl
jne 0x450dd9
mov byte [esi + 8], 1
pop edi
mov dword [esi + 0x40], 0
mov byte [esi + 8], 1
pop esi
add esp, 0x15c
ret
and al, 0x40
neg al
mov byte [esi + 8], 1
sbb eax, eax
neg eax
add eax, 1
mov dword [esi + 0x40], eax
mov byte [esi + 8], 1
pop edi
pop esi
add esp, 0x15c
ret
Function at 0x4518e0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov esi, edx
mov edx, dword [esp + 0xc]
mov edi, ecx
push eax
mov ecx, esi
mov word [edi], 2
call fcn.00449cc0
test al, al
je 0x451966
cmp byte [esp + 0x14], 0
mov eax, dword [esi]
je 0x451930
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x20], 0
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x451956
mov dword [0x4e3fbc], 0x1f42
jmp 0x451956
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x451956
mov dword [0x4e3fbc], 0x1f41
sete al
test al, al
jne 0x45196d
xor dl, dl
mov ecx, esi
call fcn.00449db0
pop edi
xor al, al
pop esi
ret 0xc
mov ecx, dword [esi]
mov edx, edi
call fcn.0044df30
pop edi
pop esi
ret 0xc

Function at 0x453f70
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
test ecx, ecx
push ebp
mov ebp, edx
mov dword [esp + 8], ebp
jne 0x453f94
push 0x100
lea eax, [esp + 0x18]
push eax
call sub.WS2_32.dll_gethostname
lea ecx, [esp + 0x14]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x453faa
xor al, al
pop ebp
add esp, 0x110
ret 4
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push edi
xor edi, edi
test ecx, ecx
je 0x453fe3
mov eax, ebp
cmp edi, dword [ebx]
jge 0x453fe3
mov esi, dword [ecx]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
add edx, 4
mov dword [eax + 4], esi
mov ecx, dword [edx]
add edi, 1
add eax, 0x10
test ecx, ecx
jne 0x453fc1
test edi, edi
mov dword [ebx], edi
jne 0x453ff8
pop edi
pop esi
pop ebx
xor al, al
pop ebp
add esp, 0x110
ret 4
push 0x44dec0
push 0x10
push edi
push ebp
call fcn.0048f7a0
add esp, 0x10
call fcn.00451bf0
push eax
call fcn.0048babd
add esp, 4
mov esi, 5
lea esp, [esp]
call fcn.0048baca
sub esi, 1
jne 0x454020
lea ebp, [edi - 1]
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jle 0x4540a7
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
call fcn.0048baca
cdq
idiv edi
add edx, ebx
cmp edx, ebx
je 0x45408e
mov ebx, dword [esi + 4]
mov ebp, dword [esi + 0xc]
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov eax, dword [esp + 0x14]
shl edx, 4
add eax, edx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add ebx, 1
sub edi, 1
add esi, 0x10
cmp ebx, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
jl 0x454043
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x110
ret 4
Function at 0x454a40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a5181
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
push edi
mov edi, edx
jne 0x454a79
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
test ecx, ecx
push esi
jne 0x454a9f
push ecx
push 0x44
push str.d:_buildserver1work_repair_241core_repository_branches_repair_241_blizzardcore_sourcepackagesiounitIOUnitContainer.cpp
push 1
mov edx, 0x15c
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.004496c0
mov esi, dword [eax]
jmp 0x454ab7
mov esi, dword [ecx]
mov dl, byte [ecx + 4]
lea eax, [esi + 0x15f]
and eax, 0xfffffffc
mov dword [ecx], eax
mov byte [esp + 0x30], dl
mov byte [ecx + 4], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x20], 0
je 0x454aff
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebp
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.00452e40
mov dword [esi], vtable.Blizzard::IOReadOnlyMPQFileUnit.0
mov eax, esi
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov ecx, dword [esp + 0x18]
pop esi
pop edi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x454b20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a5181
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
push edi
mov edi, edx
jne 0x454b59
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
test ecx, ecx
push esi
jne 0x454b7f
push ecx
push 0x44
push str.d:_buildserver1work_repair_241core_repository_branches_repair_241_blizzardcore_sourcepackagesiounitIOUnitContainer.cpp
push 1
mov edx, 0x15c
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.004496c0
mov esi, dword [eax]
jmp 0x454b97
mov esi, dword [ecx]
mov dl, byte [ecx + 4]
lea eax, [esi + 0x15f]
and eax, 0xfffffffc
mov dword [ecx], eax
mov byte [esp + 0x30], dl
mov byte [ecx + 4], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x20], 0
je 0x454bdf
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebp
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.00452e40
mov dword [esi], vtable.Blizzard::IOWriteOnlyMPQFileUnit.0
mov eax, esi
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov ecx, dword [esp + 0x18]
pop esi
pop edi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x455080
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 8]
mov esi, edx
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004537c0
test al, al
je 0x455106
push edi
call fcn.00451a60
mov edi, dword [esp + 0x10]
lea ecx, [esi*8]
sub ecx, esi
mov esi, dword [0x4e8c14]
cmp byte [esi + ecx*4 + 0xd], 0
jne 0x4550d4
xor ecx, ecx
cmp byte [esi + 0xd], cl
sete cl
test cl, cl
je 0x4550d4
push edx
push eax
mov ecx, edi
call fcn.004494a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edi
push edx
push 1
push eax
call fcn.0048bf4a
add esp, 0x10
call fcn.00451bf0
mov ecx, dword [esp + 8]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [0x4e8c18]
mov dword [ecx + edx*4 + 0x24], eax
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x45c030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a54fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esp + 0x38]
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], eax
mov byte [esi + 8], cl
mov dword [esi + 0xc], 1
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
xor ebx, ebx
cmp ebp, 8
mov dword [esi], vtable.Blizzard::IOMopaqSectorWriteUnitInternal.0
mov dword [esi + 0x10], edx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x14], ebp
ja 0x45c089
lea eax, [esi + 0x1c]
jmp 0x45c0a4
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409fd0
add esp, 4
mov dword [esi + 0x18], eax
lea edi, [ebp + 2]
cmp edi, 0xa
mov byte [esi + 0x3c], bl
mov byte [esp + 0x1c], 1
mov dword [esi + 0x40], edi
ja 0x45c0bf
lea eax, [esi + 0x48]
jmp 0x45c0da
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409fd0
add esp, 4
mov dword [esi + 0x44], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esi + 0x78]
mov byte [esp + 0x20], 2
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
call fcn.00459da0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], ebx
mov dword [eax], esi
mov edx, dword [esi + 0x44]
lea ecx, [edi*4]
lea edi, [ebp*4]
mov dword [edx], ecx
mov ecx, dword [esi + 0x44]
lea eax, [edi + 4]
push eax
add ecx, 4
push ebx
push ecx
call fcn.0048cb00
mov edx, dword [esi + 0x18]
push edi
push ebx
push edx
call fcn.0048cb00
mov ecx, dword [esp + 0x2c]
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20