joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8238
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi], vtable.Thread.0
push eax
push 4
push edi
push 0x46e090
push 0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400001cf
push 1
push 0
mov dword [edi + 4], eax
mov dword [edi], vtable.GuiThread.0
mov dword [edi + 0x10], 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 8]
lea esi, [edi + 0x18]
mov dword [ebp - 4], 0
mov dword [edi], vtable.DesktopSrvDispatcher.0
mov dword [edi + 0x14], eax
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042dc10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430410
Capabilities:
Access peb ldr_data
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b868e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea eax, [edi + 0x28]
mov dword [edi], vtable.WindowsUserInput.0
mov dword [edi + 8], vtable.WindowsDisplays.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
push eax
mov dword [edi + 0x24], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov esi, dword [ebp + 0x10]
lea ecx, [edi + 0x4c]
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0046ebc0
mov byte [ebp - 4], 2
push 0x34
mov byte [edi + 0x58], 0
mov dword [edi + 0x5c], esi
call fcn.00496d34
mov edi, dword [edi + 0x5c]
mov ebx, eax
mov ecx, dword [0x4fce98]
push str.Tvnserver.Clipboard.MessageWindow
mov dword [ebp + 0x10], ebx
mov dword [ebx], vtable.MessageWindow.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], 0
call fcn.004ac212
add esp, 8
mov dword [ebx + 0x10], eax
lea esi, [ebx + 0x14]
lea eax, [esi + 8]
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push eax
push 4
push esi
push 0x46e090
push 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400001cf
push 1
push 0
mov dword [esi + 4], eax
mov dword [esi], vtable.GuiThread.0
mov dword [esi + 0x10], 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebx], vtable.WindowsClipboard.0
mov dword [esi], vtable.WindowsClipboard.1.0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4310f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b882a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x20
mov dword [ebx], vtable.DesktopConfigLocal.0
call fcn.00496d34
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.InputBlocker.0
lea esi, [edi + 4]
lea eax, [esi + 8]
mov dword [esi], vtable.Thread.0
push eax
push 4
push esi
push 0x46e090
push 0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400001cf
push 1
push 0
mov dword [esi + 4], eax
mov dword [esi], vtable.GuiThread.0
mov dword [esi + 0x10], 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, 0x4f9504
mov byte [ebp - 4], 2
mov dword [edi], vtable.WindowsInputBlocker.0
mov dword [esi], vtable.WindowsInputBlocker.1.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], eax
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x18], vtable.AutoLock.0
mov dword [ebp - 0x14], 0x4f9504
call dword [eax + 4]
mov byte [ebp - 4], 3
cmp dword [0x4fce58], 0
jne 0x43120c
mov dword [0x4fce58], edi
mov byte [ebp - 4], 4
mov ecx, 0x4f9504
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
mov eax, ebx
mov dword [ebx + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push str.The_only_one_instance_ofWindowsInputBlocker_is_allowed
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x2c]
push 0x4f5f78
push eax
call fcn.00498498
int3
Function at 0x434060
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8de0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], vtable.StringStorage.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, edi
mov dword [ebp - 4], 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4340e7
sub esi, ecx
mov ecx, edx
sar esi, 1
je 0x434112
nop word [eax + eax]
cmp word [edi + ecx*2], 0xa
lea eax, [edx + 1]
cmovne eax, edx
inc ecx
mov edx, eax
cmp ecx, esi
jb 0x434100
lea eax, [edx + 1]
xor ecx, ecx
add eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496f72
add esp, 4
xor ecx, ecx
xor edx, edx
mov ebx, eax
test esi, esi
je 0x434169
nop word [eax + eax]
movzx eax, word [edi + edx*2]
mov edi, eax
cmp eax, 0xa
jne 0x43415c
mov eax, 0xd
mov word [ebx + ecx*2], ax
inc ecx
mov eax, dword [ebp + 8]
movzx edi, word [eax + edx*2]
mov word [ebx + ecx*2], di
inc edx
mov edi, dword [ebp + 8]
inc ecx
cmp edx, esi
jb 0x434140
xor eax, eax
mov word [ebx + ecx*2], ax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
push ebx
call dword [eax + 4]
push ebx
call fcn.00496f6d
mov eax, dword [ebp - 0x10]
add esp, 4
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4341da
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
and esi, 0xfffffffe
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4341d4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [ebp - 0x1c]
push eax
call fcn.00499f60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.004039a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434200
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x4cb33c
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x43425d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43425d
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x434257
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x434257
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4
Function at 0x438150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9497
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi + 8]
mov dword [edi], vtable.Thread.0
push eax
push 4
push edi
push 0x46e090
push 0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], vtable.DesktopServerWatcher.0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], eax
mov dword [ebp - 0x34], vtable.StringStorage.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0041c620
mov dword [ebp - 0x24], vtable.StringStorage.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push dword [ebp - 0x30]
push str.__s_
push eax
call fcn.004038a0
mov byte [ebp - 4], 5
add esp, 0x18
mov eax, dword [vtable.LocalMutex.0]
mov ecx, 0x4f9558
call dword [eax + 4]
mov esi, dword [0x4fce84]
mov byte [ebp - 4], 6
mov ecx, 0x4f9558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x2c]
mov eax, dword [esi + 0x2c]
call dword [eax + 4]
mov al, byte [esi + 0xc6]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 7
lea ecx, [esi + 0x2c]
mov eax, dword [esi + 0x2c]
call dword [eax + 8]
push 0x48
mov byte [ebp - 4], 5
call fcn.00496d34
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 8
mov ecx, esi
mov ebx, dword [edi + 0x18]
push 0
push dword [ebp - 0x20]
call fcn.0041bfd0
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0x20]
mov dword [esi], vtable.CurrentConsoleProcess.0
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], al
mov dword [edi + 0x10], esi
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.StringStorage.0
call fcn.004039a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43baa0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9a6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.00441a90
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x1c]
mov dword [ebx], vtable.HooksUpdateDetector.0
call fcn.0041cd10
lea esi, [ebx + 0x2c]
mov dword [ebx + 0x24], 0
lea eax, [esi + 8]
mov dword [ebx + 0x28], 0
push eax
push 4
push esi
push 0x46e090
mov dword [ebp + 0xc], esi
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
push ecx
mov byte [ebp - 4], 2
lea ecx, [esi + 0x10]
mov dword [esi], vtable.HookUpdateTimer.0
call fcn.0041cd10
push ecx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call fcn.0041cd10
push dword [esi + 4]
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
push 0x4cb33c
push 0x4cb33c
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
call fcn.0041bfd0
mov eax, dword [ebp + 0x10]
push 0x4d5310
mov byte [ebp - 4], 5
push eax
mov dword [ebx + 0x90], eax
call fcn.00405550
push 0x10
mov byte [ebp - 4], 6
call fcn.00496d34
mov esi, eax
add esp, 0xc
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 7
mov ecx, esi
push str.screenhooks32.dll
mov dword [esi], vtable.DynamicLibrary.0
mov dword [esi + 4], 0
call fcn.0041f310
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebx + 0x24], esi
mov dword [ebp - 4], 5
jmp 0x43bc11
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x14
mov esi, eax
call fcn.00496d34
mov edi, eax
mov dword [ebp + 0xc], edi
push str.HookTargetWinClassName
mov dword [edi], vtable.MessageWindow.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], 0
call fcn.004ac212
mov dword [edi + 0x10], eax
add esp, 8
mov dword [ebx + 0x28], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43c490
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0x68], al
push dword [edi + 0x100]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0x108], al
pop edi
ret
Function at 0x4434c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, ecx
movzx eax, bl
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x36c]
test eax, eax
je 0x443502
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.Attach.ToDesktop
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x443502
mov byte [esi + 0x1a], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push str.Cant_set_the_Attach.ToDesktop.
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x14]
push 0x4f5f78
push eax
call fcn.00498498
int3

Function at 0x4436d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba450
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x1060]
test eax, eax
je 0x44372e
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push str.The_mirror_driver_device_context_released
push dword [esi + 0x10dc]
mov dword [esi + 0x1060], 0
call fcn.004054f0
add esp, 8
cmp byte [esi + 0x1a], 0
je 0x4437f1
push str.Unloading_mirror_driver...
push dword [esi + 0x10dc]
call fcn.004054f0
add esp, 8
mov ecx, esi
push 0
call fcn.004434c0
xor edi, edi
mov dword [esi + 0x430], 0
mov dword [esi + 0x434], 0
cmp dword [0x4fcd28], edi
jne 0x443791
push 0x4fcd28
mov dword [0x4fcd28], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
neg eax
sbb eax, eax
and dword [0x4fcd28], eax
cmp dword [0x4fcd2c], 5
jne 0x4437a2
cmp dword [0x4fcd30], edi
je 0x4437a8
lea edi, [esi + 0x384]
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00443530
push str.Mirror_driver_is_unloaded
push dword [esi + 0x10dc]
call fcn.004054f0
add esp, 8
jmp 0x4437f1
push 0xcdc
lea eax, [esi + 0x384]
push 0
push eax
call fcn.00498280
mov eax, 0xdc
mov byte [esi + 0x19], 0
add esp, 0xc
mov word [esi + 0x3c8], ax
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 0x4451f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba516
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], vtable.Rect.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x1c]
mov dword [edi + 0x18], 0
lea esi, [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
and eax, 0xfffffffe
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov word [edi + 0x2c], pe_nt_image_headers32
mov dword [edi + 0x30], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44ab40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
xor edx, edx
sub eax, edx
je 0x44ab7a
sub eax, 1
je 0x44ab73
sub eax, 1
jne 0x44ab7f
mov edx, 0xc0000000
jmp 0x44ab7f
mov edx, 0x40000000
jmp 0x44ab7f
mov edx, closesocket
mov eax, dword [ebp + 0x10]
xor bl, bl
cmp eax, 5
ja case.default.0x44ab89
jmp dword [eax*4 + 0x44ac38]
mov bl, 1
mov eax, 4
jmp 0x44abb9
mov eax, 2
jmp 0x44abb9
mov eax, 1
jmp 0x44abb9
mov eax, 3
jmp 0x44abb9
mov eax, 5
jmp 0x44abb9
mov eax, dword [esp + 0xc]
push 0
push 0x80
push eax
movzx eax, byte [ebp + 0x14]
push 0
push eax
push edx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x44ac04
test bl, bl
je 0x44abfc
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x44abfc
test eax, eax
jne 0x44ac1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
call fcn.0041ba20
push 0x4f60a4
lea eax, [esp + 0x14]
push eax
call fcn.00498498
push eax
lea ecx, [esp + 0x14]
call fcn.0041bae0
push 0x4f60a4
lea eax, [esp + 0x14]
push eax
call fcn.00498498
nop dword [eax]
nop
stosd dword es:[edi], eax
inc esp
add byte [ecx - 0x5fffbb55], bl
stosd dword es:[edi], eax
inc esp
add byte [edi - 0x6dffbb55], ah
stosd dword es:[edi], eax
inc esp
add byte [esi + 0x550044ab], ch
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push esi
mov esi, ecx
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], ecx
jg 0x44ac7e
jl 0x44acb1
cmp dword [esp + 0x10], eax
jb 0x44acb1
push 1
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esi + 4]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x44acaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44acd2
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x18]
push str.Specified_file_pointer_position_is_more_than_file_length
push eax
call fcn.00404c10
add esp, 8
lea eax, [esp + 0x18]
push 0x4f5f78
push eax
call fcn.00498498
push str.Cannot_set_file_pointer_to_specified_position
lea ecx, [esp + 0x1c]
call fcn.0041bba0
push 0x4f60a4
lea eax, [esp + 0x1c]
push eax
call fcn.00498498
int3
Function at 0x44ac38
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
xor edx, edx
sub eax, edx
je 0x44ab7a
sub eax, 1
je 0x44ab73
sub eax, 1
jne 0x44ab7f
mov edx, 0xc0000000
jmp 0x44ab7f
mov edx, 0x40000000
jmp 0x44ab7f
mov edx, closesocket
mov eax, dword [ebp + 0x10]
xor bl, bl
cmp eax, 5
ja case.default.0x44ab89
jmp dword [eax*4 + 0x44ac38]
mov bl, 1
mov eax, 4
jmp 0x44abb9
mov eax, 2
jmp 0x44abb9
mov eax, 1
jmp 0x44abb9
mov eax, 3
jmp 0x44abb9
mov eax, 5
jmp 0x44abb9
mov eax, dword [esp + 0xc]
push 0
push 0x80
push eax
movzx eax, byte [ebp + 0x14]
push 0
push eax
push edx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x44ac04
test bl, bl
je 0x44abfc
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x44abfc
test eax, eax
jne 0x44ac1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
call fcn.0041ba20
push 0x4f60a4
lea eax, [esp + 0x14]
push eax
call fcn.00498498
push eax
lea ecx, [esp + 0x14]
call fcn.0041bae0
push 0x4f60a4
lea eax, [esp + 0x14]
push eax
call fcn.00498498
nop dword [eax]
nop
stosd dword es:[edi], eax
inc esp
add byte [ecx - 0x5fffbb55], bl
stosd dword es:[edi], eax
inc esp
add byte [edi - 0x6dffbb55], ah
stosd dword es:[edi], eax
inc esp
add byte [esi + 0x550044ab], ch
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push esi
mov esi, ecx
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], ecx
jg 0x44ac7e
jl 0x44acb1
cmp dword [esp + 0x10], eax
jb 0x44acb1
push 1
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esi + 4]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x44acaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44acd2
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x18]
push str.Specified_file_pointer_position_is_more_than_file_length
push eax
call fcn.00404c10
add esp, 8
lea eax, [esp + 0x18]
push 0x4f5f78
push eax
call fcn.00498498
push str.Cannot_set_file_pointer_to_specified_position
lea ecx, [esp + 0x1c]
call fcn.0041bba0
push 0x4f60a4
lea eax, [esp + 0x1c]
push eax
call fcn.00498498
int3