joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49aa80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54bb0b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [eax], vtable.WCEventData.0
movzx edx, word [ecx + 4]
mov word [eax + 4], dx
movzx edx, word [ecx + 6]
mov word [eax + 6], dx
movzx edx, word [ecx + 8]
mov word [eax + 8], dx
movzx edx, word [ecx + 0xa]
mov word [eax + 0xa], dx
movzx edx, word [ecx + 0xc]
mov word [eax + 0xc], dx
movzx edx, word [ecx + 0xe]
mov word [eax + 0xe], dx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
movzx edx, word [ecx + 0x28]
mov word [eax + 0x28], dx
movzx edx, byte [ecx + 0x2a]
mov byte [eax + 0x2a], dl
mov edx, dword [ecx + 0x2b]
mov dword [eax + 0x2b], edx
movzx edx, byte [ecx + 0x2f]
mov byte [eax + 0x2f], dl
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x38], edx
mov dword [esp + 0x10], edx
movzx edx, byte [ecx + 0x3c]
mov byte [eax + 0x3c], dl
mov ecx, dword [ecx + 0x40]
mov dword [eax + 0x40], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 4

Function at 0x49aee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54bcdb
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x20], 0xf
mov dword [eax + 0x1c], ecx
mov byte [eax + 0xc], cl
mov dword [esp + 0xc], ecx
mov word [eax + 0x24], cx
mov word [eax + 0x26], cx
mov word [eax + 0x28], cx
mov word [eax + 0x2a], cx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], 1
or dword [eax], 7
and dword [eax], 0xffffff87
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x49b2d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 4]
mov word [esi + 4], ax
movzx ecx, word [edi + 6]
mov word [esi + 6], cx
mov dx, word [edi + 8]
mov word [esi + 8], dx
movzx eax, word [edi + 0xa]
mov word [esi + 0xa], ax
movzx ecx, word [edi + 0xc]
mov word [esi + 0xc], cx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
lea ebx, [esi + 0x18]
cmp ebx, eax
je 0x49b352
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
call fcn.0049d1a0
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 4]
mov ecx, dword [edx]
mov edx, dword [esp + 0x14]
push eax
lea eax, [edi + 0x18]
push eax
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push ebx
push eax
push ebx
call fcn.0049d740
mov cx, word [edi + 0x24]
mov word [esi + 0x24], cx
mov dx, word [edi + 0x26]
pop edi
mov word [esi + 0x26], dx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49b3d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54bcae
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], vtable.WCControlCreationOptionsBase.0
mov word [eax + 4], cx
mov word [eax + 6], cx
mov word [eax + 8], cx
mov word [eax + 0xa], cx
mov word [eax + 0xc], 0x63
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [eax], vtable.WCControlCreationOptions.0
mov dword [eax + 0x18], ecx
mov edx, 0xf
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x20], cl
mov byte [esp + 0x10], 1
mov dword [eax + 0x50], edx
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov byte [esp + 0x10], 2
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov byte [eax + 0x5c], cl
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x49ec70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret
Function at 0x49f590
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5535e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
add esi, 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
push esi
lea eax, [esp + 0x1b]
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], bl
call fcn.004a0710
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
mov edi, eax
jbe 0x49f606
call fcn.0052a951
cmp edi, dword [esp + 0x24]
jb 0x49f611
call fcn.0052a951
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x49f62b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49f669
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x49f63e
call fcn.0052a951
cmp esi, dword [esp + 0x24]
jb 0x49f645
call fcn.0052a951
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x49f650
mov ecx, dword [ebp + 0xc]
sub eax, edx
push eax
push esi
call fcn.0049cf80
mov eax, dword [esp + 0x18]
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x49f68d
push eax
call fcn.0050364e
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1ef0
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [eax]
push edi
mov edi, dword [ecx + 8]
lea ebx, [esi + 4]
mov ecx, ebx
call sym.RtHDVCpl.exe_public:_void___thiscall_WCEventData::UpdateKeyModifiersStateFromSys_void_
movzx edx, di
mov eax, dword [edx*4 + 0x5bff20]
push 2
push edi
mov dword [esi + 0x34], eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x50]
push ecx
push ebx
mov byte [esi + 0x33], al
mov eax, dword [esi + 0x4c]
push 4
push edx
call eax
add esp, 0x10
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a1f40
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
push edi
mov dl, cl
movzx eax, cx
mov byte [esi + 0x33], dl
mov edx, dword [eax*4 + 0x5bff20]
push 2
push ecx
mov dword [esi + 0x34], edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea edi, [esi + 4]
mov ecx, edi
mov byte [esi + 0x33], al
call sym.RtHDVCpl.exe_public:_void___thiscall_WCEventData::UpdateKeyModifiersStateFromSys_void_
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
push eax
push edi
push 5
push ecx
call edx
add esp, 0x10
pop edi
pop esi
ret 4
Function at 0x4a22b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54c888
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call sym.RtHDVCpl.exe_public:_void___thiscall_WCEventMessage::constructor_void_
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [eax], esi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0x14]
mov dword [edx + 8], ebp
mov eax, dword [esp + 0x14]
push 0xffffffffffffffeb
push esi
mov dword [eax + 0xc], edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea ecx, [ebx - 1]
cmp ecx, 0x2b
ja case.0x4a232d.3
movzx ecx, byte [ecx + 0x4a2454]
jmp dword [ecx*4 + 0x4a2440]
mov ebp, dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x28], 0
jne 0x4a235d
test eax, eax
jne 0x4a2363
mov eax, dword [ebp + 4]
mov dword [eax + 0x50], ebp
mov ebp, dword [esp + 0x30]
push edi
push ebp
push ebx
push esi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a238c
push eax
call fcn.0050364e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
test eax, eax
je 0x4a23bd
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
test al, al
jne 0x4a241e
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4a241e
test eax, eax
je 0x4a23e0
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
test al, al
jne 0x4a241e
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push edi
push ebp
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4a232d.2
test eax, eax
je case.0x4a232d.2
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
test al, al
je case.0x4a232d.2
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a2437
push eax
call fcn.0050364e
add esp, 4
xor eax, eax
jmp 0x4a238e
Function at 0x4a4680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54c81b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.WCEventData.0
xor ebx, ebx
mov word [esi + 4], bx
mov word [esi + 6], bx
mov word [esi + 8], bx
mov word [esi + 0xa], bx
mov word [esi + 0x10], bx
mov word [esi + 0x12], bx
mov word [esi + 0x14], bx
mov word [esi + 0x16], bx
mov word [esi + 0x18], bx
mov word [esi + 0x1a], bx
lea ecx, [esi + 0x38]
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], bx
call sym.RtHDVCpl.exe_public:_void___thiscall_WCEventMessage::constructor_void_
mov dword [esp + 0x18], ebx
mov word [esi + 0x14], bx
mov word [esi + 0x16], bx
mov word [esi + 0x18], bx
mov word [esi + 0x1a], bx
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], bx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x2f], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], 2
mov byte [esi + 0x3c], bl
mov dword [esi + 0x40], ebx
xor eax, eax
mov word [esi + 0x28], ax
mov byte [esi + 0x2a], al
mov dword [esi + 0x2b], ebx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4a75a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54b2a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi], vtable.WCImage.0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x38]
cmp eax, ecx
mov dword [esi], vtable.ImageData.0
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
jge 0x4a7622
mov ecx, dword [esi + 0xc]
mov eax, ecx
shr eax, 3
test cl, 7
je 0x4a7613
add eax, 1
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 4]
imul ecx, eax
mov dword [esi + 0x18], ecx
jmp 0x4a7625
mov dword [esi + 0x18], eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00503653
mov ecx, dword [esi + 0xc]
mov edx, ecx
mov edi, eax
shr edx, 3
mov ebx, ecx
add esp, 4
and ebx, 7
mov dword [esi + 0x14], edi
mov eax, edx
je 0x4a764a
add eax, 1
mov ecx, dword [esi + 4]
mov ebp, ecx
imul ebp, eax
test ebx, ebx
je 0x4a7659
add edx, 1
mov eax, dword [esi + 8]
imul ecx, eax
imul ecx, edx
cmp dword [esi + 0x18], ecx
jne 0x4a76bf
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00503653
mov ebx, dword [esi + 0x14]
xor edi, edi
add esp, 4
cmp dword [esi + 8], edi
mov dword [esi + 0x10], eax
jbe 0x4a76d4
lea ecx, [ecx]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + edi*4]
push ebp
push ecx
push ebx
call fcn.0052d580
mov edx, dword [esi + 0x10]
mov dword [edx + edi*4], ebx
add esp, 0xc
mov ecx, esi
add edi, 1
call sym.RtHDVCpl.exe_public:_unsigned_long_int___thiscall_WCImage::BytesPerPixel_void_const
imul eax, dword [esi + 4]
add ebx, eax
cmp edi, dword [esi + 8]
jb 0x4a7690
jmp 0x4a76d4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
push eax
push edx
push edi
call fcn.0052d580
add esp, 0xc
mov dword [esp + 0x20], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14

Function at 0x4a94e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x553373
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax], vtable.CXMLable.0
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [eax], vtable.WCPluginLoadSpec.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [esp + 0xc], 1
fldz
fst qword [eax + 0x18]
mov byte [eax + 0x38], cl
fst qword [eax + 0x20]
fst qword [eax + 0x28]
fstp qword [eax + 0x30]
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x4c0390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54df29
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov byte [esp + 0xc], bl
mov eax, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push edx
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov byte [esp + 0x40], 2
mov edx, dword [esp + 0x50]
push edx
push esi
mov byte [esp + 0x48], 1
mov ecx, dword [esp + 0x54]
call fcn.004c0670
add esp, 0x2c
mov dword [esp + 0x10], 1
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x4c0431
push eax
call fcn.0050364e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4c8ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x557693
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call sym.RtHDVCpl.exe_public:_void___thiscall_expatpp::constructor_void_
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi], vtable.wvXML::CXMLTreeBuilder.0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov byte [esp + 0x14], 1
mov byte [esi + 0x34], al
mov eax, dword [esi + 4]
mov ecx, sym.RtHDVCpl.exe_public:_static_void___cdecl_wvXML::CXMLTreeBuilder::startDocumentCallback_void___char_const___char_const___
call fcn.004c0a30
mov eax, dword [esi + 8]
mov dword [eax + 4], 0xffffe88a
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x4c8d80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54c473
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.wvXML::CXMLTreeBuilder.0
mov dword [esp + 0x18], 0
cmp dword [esi + 0x30], 0x10
jb 0x4c8dca
mov eax, dword [esi + 0x1c]
push eax
call fcn.0050364e
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call sym.RtHDVCpl.exe_public_virtual:_void___thiscall_expatpp::destructor_void_
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4cf5c0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
xor cl, cl
test eax, eax
je 0x4cf5cf
jmp fcn.004eefa0
mov al, cl
ret

Function at 0x4d11f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov byte [ebx], al
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x4d1299
mov eax, esi
call fcn.004eefa0
test al, al
jne 0x4d1243
mov dword [ebp - 0x14], 0xfffffc16
jmp 0x4d12a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push esi
lea esi, [ebp - 0x34]
call fcn.004f1940
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x4d1263
mov eax, dword [eax + 4]
jmp 0x4d1266
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0049cc30
cmp esi, 0xffffffff
jne 0x4d1290
call edi
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x4d12a0
mov eax, esi
and eax, 1
mov byte [ebx], al
jmp 0x4d12a0
mov dword [ebp - 0x14], 0xfffff05d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d14a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b6a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
push ecx
call sym.RtHDVCpl.exe_bool___cdecl_wvFM::IsValidOpenFileRef_class_WTOpenFileType__const_
add esp, 4
test al, al
je 0x4d1519
push esi
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x4d1505
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
jmp 0x4d1520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x4d1520
mov dword [ebp - 0x14], 0xfffffbfe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d1550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b680
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
push ecx
call sym.RtHDVCpl.exe_bool___cdecl_wvFM::IsValidOpenFileRef_class_WTOpenFileType__const_
add esp, 4
test al, al
je 0x4d15c9
push esi
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
je 0x4d15b5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
jmp 0x4d15d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x4d15d0
mov dword [ebp - 0x14], 0xfffffbfe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1600
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b660
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
push ecx
call sym.RtHDVCpl.exe_bool___cdecl_wvFM::IsValidOpenFileRef_class_WTOpenFileType__const_
add esp, 4
test al, al
je 0x4d1676
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, esi
je 0x4d1662
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
jmp 0x4d167d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x4d167d
mov dword [ebp - 0x14], 0xfffffbfe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d16b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b640
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
push esi
call sym.RtHDVCpl.exe_bool___cdecl_wvFM::IsValidOpenFileRef_class_WTOpenFileType__const_
add esp, 4
test al, al
je 0x4d172a
push edi
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, edi
je 0x4d1716
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, edi
jne 0x4d1731
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_ConvertErrorWIN_unsigned_long_int_
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4d1731
mov dword [ebp - 0x18], 0xfffffbfe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret