joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100118d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.1001189d
mov ebx, eax
cmp ebx, esi
je 0x10011938
cmp dword [ebp - 0x214], esi
je 0x10011931
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x100119d3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10011960
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.100118d0
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x100119e4
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x10011940
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x100119ab
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x100119d1
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020bb8
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x100119f8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x100119d3
Function at 0x10016fdc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
call fcn.1001ca86
xor esi, esi
cmp dword [edi + 4], esi
je 0x10017009
shr eax, 0xa
cmp eax, esi
ja 0x10016fff
xor eax, eax
inc eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 8]
push str.CopyFileExW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x10017057
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x10017032
mov eax, dword [eax + 4]
jmp 0x10017035
add eax, 4
cmp dword [ebx + 0x18], 8
jb 0x10017040
mov ecx, dword [ebx + 4]
jmp 0x10017043
lea ecx, [ebx + 4]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100170d0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 8
jb 0x10017067
add ecx, 4
mov edx, dword [ecx]
jmp 0x1001706c
add ecx, 4
mov edx, ecx
cmp dword [ebx + 0x18], 8
mov dword [ebp - 0xc], ecx
jb 0x1001707c
add ebx, 4
mov ecx, dword [ebx]
jmp 0x10017081
add ebx, 4
mov ecx, ebx
push esi
push esi
push edi
push 0x10017127
push edx
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0
mov dword [ebp - 8], eax
jne 0x100170da
cmp eax, 0x78
jne 0x100170fb
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov eax, dword [ebp - 0xc]
jb 0x100170b4
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 8
jb 0x100170bf
mov ebx, dword [ebx]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
call esi
xor esi, esi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
je 0x100170fd
jmp 0x100170dc
xor esi, esi
cmp dword [ebp - 8], 0x4d3
je 0x100170f4
cmp dword [edi + 4], esi
je 0x100170f4
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x10017118
jmp 0x100170fd
xor esi, esi
cmp dword [edi + 4], esi
je 0x10017118
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
push dword [ebp - 8]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
xor eax, eax
cmp dword [ebp - 4], 1
pop esi
sete al
pop ebx
leave
ret 8
Function at 0x100197cc
Capabilities:
Reference sql statements

Disassembly:
push 0x70
mov eax, 0x100334df
call fcn.10022f92
mov eax, dword [ebp + 8]
push dword [eax]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
call fcn.1001aec1
pop ecx
xor edi, edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.1001c912
mov ebx, str.aipackagechainer.exe
push ebx
call fcn.10020d18
pop ecx
push eax
mov eax, ebx
call fcn.1000b6ca
push ebx
push str.Name
push str.Binary
push str.Data
push str.SELECT___s__FROM___s__WHERE___s__s
lea ebx, [ebp - 0x48]
call fcn.100100a2
add esp, 0x14
mov eax, esi
mov esi, dword [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x74]
push eax
call fcn.10017dbf
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x2c]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10018eaf
test al, al
jne 0x10019882
mov esi, 0x3ee
lea eax, [ebp - 0x74]
call fcn.10012d7a
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10008661
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10008661
mov eax, esi
call fcn.10023015
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1001988e
lea eax, [ebp - 0x28]
push eax
push str.AI_PREREQ_CHAINER
push dword [esi]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
xor esi, esi
jmp 0x1001985a
Function at 0x1001a67d
Capabilities:
Write file on windows

Disassembly:
push 0x8c
mov eax, 0x10031b4c
call fcn.10022f92
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x4c], esi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.10008643
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.1001a966
test eax, eax
jne 0x1001a6c8
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10008661
xor eax, eax
inc eax
call fcn.10023015
ret
cmp dword [ebp - 0x18], esi
jne 0x1001a6df
xor edi, edi
inc edi
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10008661
mov eax, edi
jmp 0x1001a6c2
cmp dword [edi + 0x18], 8
jb 0x1001a6ea
mov eax, dword [edi + 4]
jmp 0x1001a6ed
lea eax, [edi + 4]
push esi
push 0x80
push 2
pop ebx
push ebx
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x1001a71f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x1001a6d0
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.1000969d
mov byte [ebp - 4], bl
cmp dword [edi + 0x3c], esi
jne 0x1001a7ac
mov eax, dword [edi + 0x38]
cmp eax, esi
jbe 0x1001a75d
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x2c]
call fcn.1000f179
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], 1
jmp 0x1001a776
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000f13d
pop ecx
pop ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x4c], ebx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x48]
call fcn.10009578
test byte [ebp - 0x4c], bl
je 0x1001a796
and dword [ebp - 0x4c], 0xfffffffd
push esi
push 1
lea ecx, [ebp - 0x78]
call fcn.100096b9
test byte [ebp - 0x4c], 1
je 0x1001a7ca
push esi
push 1
lea ecx, [ebp - 0x94]
call fcn.100096b9
jmp 0x1001a7ca
push esi
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x54]
mov byte [ebp - 0x4c], 0xff
mov byte [ebp - 0x4b], 0xfe
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [edi + 0x3c]
mov dword [ebp - 0x5c], esi
cmp edi, esi
je 0x1001a7db
mov ecx, dword [ebp - 0x18]
add ecx, ecx
jmp 0x1001a7de
mov ecx, dword [ebp - 0x34]
cmp edi, esi
je 0x1001a7f2
cmp dword [ebp - 0x14], 8
jb 0x1001a7ed
mov eax, dword [ebp - 0x28]
jmp 0x1001a7fe
lea eax, [ebp - 0x28]
jmp 0x1001a7fe
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x1001a7fe
lea eax, [ebp - 0x44]
push esi
lea edx, [ebp - 0x5c]
push edx
push ecx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 1
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.100096b9
cmp dword [ebp - 0x54], esi
je 0x1001a6d0
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001a6d0
Function at 0x1001c2f9
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x10031a70
call fcn.10022f29
mov esi, ecx
lea ebx, [esi + 0x28]
mov eax, dword [ebx]
mov dword [ebp - 0x18], esi
test eax, eax
jne 0x1001c468
add esi, 0x20
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x1001c395
push 0x208
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
call fcn.10020d18
pop ecx
push eax
lea eax, [ebp]
push eax
mov eax, esi
call fcn.10002369
push 0x2e
call fcn.10001a7c
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.10001999
mov edi, str..log
push edi
call fcn.10020d18
pop ecx
push eax
push edi
mov eax, esi
call fcn.10001efd
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.10008368
cmp dword [ebx], 0xffffffff
je 0x1001c458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001c3e4
mov eax, dword [ebx]
test eax, eax
je 0x1001c415
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1001c415
test eax, eax
jne 0x1001c458
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001c415
push 2
pop eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x14], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x1001c468
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0x24]
call fcn.1001c48b
mov eax, dword [0x10043e48]
mov ecx, 0x10043e48
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea edi, [ebp - 0x10]
call fcn.1001c4b0
mov eax, edi
call fcn.1001c48b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
jmp 0x1001c468
mov eax, dword [ebx]
test eax, eax
je 0x1001c468
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
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.10020bb8
add ebp, 0x20c
leave
ret

Function at 0x1001c48b
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x1001ca1b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
call fcn.1001c88f
test al, al
je 0x1001ca4b
cmp dword [esi + 0x18], 8
jb 0x1001ca39
mov esi, dword [esi + 4]
jmp 0x1001ca3c
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x1001ca82
lea eax, [ebp - 0x1c]
push 0
push eax
mov eax, esi
call fcn.1000f179
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1001ca65
mov eax, dword [eax + 4]
jmp 0x1001ca68
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
test eax, eax
push 1
lea ecx, [ebp - 0x1c]
setne bl
call fcn.100096b9
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x1001dade
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x1003194d
call fcn.10022f92
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x10044ab1], bl
jne 0x1001db38
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001db71
cmp dword [ebp - 0x138], 2
mov byte [0x10044ab1], 1
sete byte [0x10043b0c]
cmp byte [0x10043b0c], bl
je 0x1001db71
cmp dword [esi + 0x18], 8
jb 0x1001db4b
mov esi, dword [esi + 4]
jmp 0x1001db4e
add esi, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x1001dbd9
mov dword [ebp - 0x158], eax
jmp 0x1001dbd9
lea eax, [ebp - 0x178]
push eax
mov eax, esi
call fcn.1000ebb8
mov edi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, esi
call fcn.1000eb98
push dword [edi + 4]
lea esi, [ebp - 0x2c]
push dword [edi]
push dword [eax + 4]
push dword [eax]
call fcn.1000f98c
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1001dbad
lea eax, [ebp - 0x28]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
je 0x1001dbce
mov dword [ebp - 0x158], eax
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100096b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
mov dword [ebp - 0x174], eax
mov esi, 0xc800
push esi
lea eax, [ebp - 0x170]
push eax
xor edi, edi
call fcn.1000f308
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x164]
mov dword [ebp - 0x150], esi
jne 0x1001dc17
call fcn.1002200a
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x164]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x1001dc74
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x164]
jne 0x1001dc46
call fcn.1002200a
push ebx
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
push dword [ebp - 0x164]
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x150]
cmp dword [ebp - 0x150], ebx
jne 0x1001dbfe
cmp dword [ebp - 0x174], edi
sete byte [ebp - 0x149]
cmp dword [ebp - 0x164], ebx
je 0x1001dc95
push dword [ebp - 0x164]
call fcn.10020bad
pop ecx
push dword [ebp - 0x170]
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
call fcn.10020bad
pop ecx
cmp dword [ebp - 0x158], ebx
je 0x1001dcc7
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x149]
call fcn.10023015
ret
Function at 0x10020bb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100421cc]
jne 0x10020bc2
repz ret
jmp fcn.10024b8c

Function at 0x1002cbca
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10025ad4
and dword [ebp - 4], 0
cmp dword [0x10044940], 0
mov ebx, eax
jne 0x1002cc7b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002cd2c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1002cd2c
push eax
call fcn.10025a62
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10044940], eax
call esi
push eax
call fcn.10025a62
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10044944], eax
call esi
push eax
call fcn.10025a62
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10044948], eax
call esi
push eax
call fcn.10025a62
pop ecx
mov dword [0x10044950], eax
test eax, eax
je 0x1002cc7b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10025a62
pop ecx
mov dword [0x1004494c], eax
mov eax, dword [0x1004494c]
cmp eax, ebx
je 0x1002ccd3
cmp dword [0x10044950], ebx
je 0x1002ccd3
push eax
call fcn.10025add
push dword [0x10044950]
mov esi, eax
call fcn.10025add
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002ccd3
test edi, edi
je 0x1002ccd3
call esi
test eax, eax
je 0x1002ccca
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002ccca
test byte [ebp - 0xc], 1
jne 0x1002ccd3
or dword [ebp + 0x10], 0x200000
jmp 0x1002cd0c
mov eax, dword [0x10044944]
cmp eax, ebx
je 0x1002cd0c
push eax
call fcn.10025add
pop ecx
test eax, eax
je 0x1002cd0c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1002cd0c
mov eax, dword [0x10044948]
cmp eax, ebx
je 0x1002cd0c
push eax
call fcn.10025add
pop ecx
test eax, eax
je 0x1002cd0c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10044940]
call fcn.10025add
pop ecx
test eax, eax
je 0x1002cd2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002cd2e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001a50
Capabilities:
Allocate or change rwx memory
Identify system language via api
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x10019138]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0xc]
push esi
push eax
call sym.vvphpdit.dll_cmfvdwztqoytx
push 0
push 0x8002
push esi
call fcn.100026db
add esp, 0x14
mov dword [0x1001b2f8], eax
cmp eax, 0xffffffff
jne 0x10001aa4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.100022c3
mov esp, ebp
pop ebp
ret
push 2
push 0
push eax
call fcn.10002ff2
mov ecx, dword [0x10019f6c]
mov edx, dword [0x1001b30c]
add esp, 0xc
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x1001b2f8]
mov eax, 0xfef7b176
sub eax, dword [0x10019f68]
push ecx
mov dword [0x10019f68], eax
call fcn.100022d2
fld dword [0x1001b2fc]
fld qword [0x10013560]
add esp, 4
mov dword [edi], eax
call fcn.1000b70a
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10001b5a
fld dword [0x1001b2fc]
call fcn.1000b770
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fchs
fstp dword [esp + 0xc]
fld dword [0x1001b2fc]
fxch st(1)
call fcn.1000b70a
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [esp + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10001b5a
mov dword [0x10019f68], 0x296
mov edx, dword [0x1001b2f8]
push 0
push 0
push edx
call fcn.10002ff2
add esp, 0xc
push str.SiwUYIVNKlPWXW
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov eax, dword [edi]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1001b314], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push 0x200
movzx esi, ax
push 0x200
push 5
mov dword [0x1001b2ec], esi
call fcn.1000269b
imul esi, esi, 0x3b
add esp, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
mov dword [0x10019f68], 0x313fa
fld dword [0x10019f64]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0xc]
fadd dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
call fcn.1000b5f0
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
mov edx, dword [0x1001b314]
fdivr qword [0x10013558]
mov eax, dword [0x1001b2f8]
fstp dword [0x10019f64]
mov ecx, dword [edi]
push ecx
push edx
push eax
call fcn.10002e2e
mov ecx, dword [esp + 0x20]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.100022c3
mov esp, ebp
pop ebp
ret
Function at 0x100022c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10019138]
jne 0x100022cd
repz ret
jmp fcn.1000350c

Function at 0x100099f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10019138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10004aac
and dword [ebp - 0x14], 0
cmp dword [0x1001b170], 0
mov dword [ebp - 0x18], eax
jne 0x10009aa3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10009b4b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10009b4b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001b170], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001b174], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001b178], eax
call edi
push eax
call esi
mov dword [0x1001b180], eax
test eax, eax
je 0x10009aa3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001b17c], eax
mov eax, dword [0x1001b17c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10009afc
cmp dword [0x1001b180], ecx
je 0x10009afc
push eax
call esi
push dword [0x1001b180]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10009afc
test ebx, ebx
je 0x10009afc
call edi
test eax, eax
je 0x10009af3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10009af3
test byte [ebp - 8], 1
jne 0x10009afc
or dword [ebp + 0x10], 0x200000
jmp 0x10009b2f
mov eax, dword [0x1001b174]
cmp eax, dword [ebp - 0x18]
je 0x10009b2f
push eax
call esi
test eax, eax
je 0x10009b2f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10009b2f
mov eax, dword [0x1001b178]
cmp eax, dword [ebp - 0x18]
je 0x10009b2f
push eax
call esi
test eax, eax
je 0x10009b2f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001b170]
call esi
test eax, eax
je 0x10009b4b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10009b4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100022c3
leave
ret
Function at 0xe9d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e9d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe9d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe9d06a
add dl, dl
jne 0xe9d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe9d0dc
xor eax, eax
add dl, dl
jne 0xe9d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe9d17d
add dl, dl
jne 0xe9d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe9d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe9d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe9d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe9d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe9d075
mov eax, 1
add dl, dl
jne 0xe9d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe9d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe9d0e1
sub eax, ebx
mov ebx, 1
jne 0xe9d128
mov ecx, 1
add dl, dl
jne 0xe9d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe9d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe9d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe9d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe9d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe9d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe9d136
cmp eax, 0x7d00
jae 0xe9d16d
cmp eax, 0x500
jb 0xe9d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe9d075
cmp eax, 0x7f
ja 0xe9d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe9d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe9d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe9d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10