joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078130
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x230
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x135]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x13c], bl
call fcn.10116880
mov ecx, dword [str..C:]
mov dx, word [0x101583cc]
xor eax, eax
mov dword [esp + 0x19], eax
add esp, 0xc
mov dword [esp + 0x11], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
mov al, byte [0x101583ce]
push 0x104
lea ecx, [esp + 0x134]
push ecx
mov dword [esp + 0x10], ebx
mov word [esp + 0x18], dx
mov byte [esp + 0x1a], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x100781df
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1010d699
add esp, 0x230
ret
mov dl, byte [esp + 0x130]
push ebp
push edi
push ebx
push 3
push 3
push closesocket
lea edi, [esp + 0x24]
mov byte [esp + 0x28], dl
call fcn.10033690
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
jne 0x1007824e
push 0x103
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call fcn.10116880
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0x38]
call fcn.10049ce0
mov ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
push str._ReadLBR__MyCreateFileA___s__fails__Reason:__s
push ebx
call fcn.10053700
add esp, 0x14
jmp 0x100782bd
push ebx
lea eax, [esp + 0x14]
push eax
push 0x1400
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10078273
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100782bf
push 0x103
lea ecx, [esp + 0x39]
push ebx
push ecx
mov byte [esp + 0x40], bl
call fcn.10116880
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0x38]
call fcn.10049ce0
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
push str._ReadLBR__ReadFile___s__fails__Reason:__s
push ebx
call fcn.10053700
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x230
ret
Function at 0x100788e0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.10126240
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebp
mov ebp, dword [esp + 0x1010]
push esi
push 0xfff
lea eax, [esp + 0x11]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x18], 0
call fcn.10116880
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test eax, eax
jne 0x1007894b
test edi, edi
je 0x100789f6
push edi
call esi
pop esi
pop ebp
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.1010d699
add esp, 0x1008
ret
push 0x1000
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.10116880
add esp, 0xc
push 0
lea edx, [esp + 0xc]
push edx
push 0xfff
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100789eb
jmp 0x10078980
cmp dword [esp + 8], 0
je 0x100789eb
lea ecx, [esp + 0xc]
push 0x7b
push ecx
call fcn.1010d780
mov esi, eax
add esp, 8
test esi, esi
je 0x100789bb
lea edx, [esp + 0xc]
push 0x7d
push edx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x100789bb
push esi
push ebp
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10116880
add esp, 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xfff
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10078980
test edi, edi
je 0x100789f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x100c]
pop esi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x1008
ret
Function at 0x10079b40
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
lea ebp, [esp - 0x508]
sub esp, 0x508
push 0xfffffffffffffffe
push 0x1016cd38
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x504], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp], bl
push 0x3ff
push ebx
lea eax, [ebp + 1]
push eax
call fcn.10116880
mov byte [ebp + 0x400], bl
push 0x103
push ebx
lea ecx, [ebp + 0x401]
push ecx
call fcn.10116880
add esp, 0x18
xor esi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.1004fe90
test eax, eax
je 0x10079c58
mov dword [ebp - 0x20], 0x104
push str.ERMID
lea eax, [ebp - 0x20]
lea edi, [ebp + 0x400]
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100315c0
cmp byte [ebp + 0x400], bl
je 0x10079c58
call fcn.1004f190
test eax, eax
je 0x10079c0b
lea edx, [ebp - 0x1c]
push edx
call fcn.1004f240
add esp, 4
mov esi, eax
lea eax, [ebp + 0x400]
push eax
push str.BCDEDIT.EXE__Toolsdisplayorder__s__addFirst
lea ecx, [ebp]
push ecx
call fcn.1010d6a8
add esp, 0xc
lea eax, [ebp]
call fcn.10047700
mov edi, eax
cmp esi, ebx
je 0x10079c3d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1004f2c0
add esp, 4
cmp edi, ebx
jne 0x10079c58
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10079c61
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x504]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x508
mov esp, ebp
pop ebp
ret

Function at 0x10079c90
Capabilities:
Check os version

Disassembly:
push 1
call fcn.10078370
add esp, 4
test eax, eax
jne 0x10079cb3
test esi, esi
je 0x10079cb0
push str._ERMINST__Unable_to_find_files_in_root_folder...
push esi
call fcn.1010d6a8
add esp, 8
xor eax, eax
ret
cmp dword [0x1019e748], 0
jne 0x10079ce0
mov dword [0x1019e748], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x10079ce0
cmp al, 6
jb 0x10079ce0
mov dword [0x1019e74c], 1
jmp 0x10079ce9
cmp dword [0x1019e74c], 0
je 0x10079d25
call fcn.10078a10
test eax, eax
jne 0x10079d07
test esi, esi
je 0x10079cb0
push str._ERMINST__CreateGUID_Fails_
push esi
call fcn.1010d6a8
add esp, 8
xor eax, eax
ret
call fcn.10079b40
test eax, eax
jne 0x10079d25
test esi, esi
je 0x10079cb0
push str._ERMINST__SetToolsDisplayOrder_Fails_
push esi
call fcn.1010d6a8
add esp, 8
xor eax, eax
ret
mov eax, 1
ret

Function at 0x10079e40
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x1007c800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push edi
lea eax, [esp + 8]
push eax
xor ebx, ebx
push str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1007c8ef
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.UpperFilters
push eax
call esi
test eax, eax
jne 0x1007c8ee
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1007c8ee
push ebp
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
cmp ebp, ebx
je 0x1007c8ed
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
push ebx
push str.UpperFilters
push eax
call esi
test eax, eax
jne 0x1007c8e0
cmp dword [esp + 0x18], 7
jne 0x1007c8e0
mov esi, ebp
cmp byte [ebp], bl
je 0x1007c8e0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
push str.avdisk
push esi
call edi
test eax, eax
je 0x1007c8c8
push str.GEARAspiWDM
push esi
call edi
test eax, eax
jne 0x1007c8d8
push esi
call ebx
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x1007c8b0
jmp 0x1007c8e0
mov dword [esp + 0x1c], 1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
pop ebp
pop esi
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x1007c8fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x1007f780
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10135ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x1017455c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
xor edi, edi
sub eax, dword [ebx + 0xc]
je 0x1007f7f4
mov esi, dword [ebx + 0x10]
sub esi, dword [ebx + 0xc]
jne 0x1007f7c2
call fcn.1010e381
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 8]
push 0
sub esi, edi
push esi
add eax, edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1007f877
cmp eax, 0xffffffff
je 0x1007f8af
mov edx, dword [ebx + 0x10]
sub edx, dword [ebx + 0xc]
add edi, eax
cmp edi, edx
jb 0x1007f7b5
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
cmp edi, eax
je 0x1007f8c4
push edi
push ecx
push str._recieved:
push ecx
push eax
push ecx
push str.______EXCEPTION_IN_recieve_func_int_clientserver::_receivePlain_int_socketfd__std::vector_char__charbuffer_._Bytes_recieved_not_equal_to_bytes_expected._Expected:
push 0x1018e270
call fcn.100821b0
add esp, 0xc
push eax
call fcn.10080250
add esp, 4
push eax
call fcn.100821b0
add esp, 0xc
push eax
call fcn.10080250
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10080390
mov ecx, esi
call fcn.10016d90
push str.______EXCEPTION_IN_recieve_func__payload_._Bytes_recieved_not_equal_to_bytes_expected._n
lea ecx, [esp + 0x14]
call fcn.10008e20
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], 0
call fcn.10015930
push 0x1016b024
lea eax, [esp + 0x30]
push eax
call fcn.1011379b
push str.__int_recieve:_recv_return_0_bytes.__int_clientserver::_receivePlain_int_socketfd__std::vector_char__charbuffer__._Returning_from_function.
push 0x1018e270
call fcn.100821b0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10080390
mov ecx, esi
call fcn.10016d90
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007ff50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10136348
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1017455c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.1000b220
xor esi, esi
mov dword [esp + 0x30], esi
cmp dword [0x10193f6c], esi
je 0x1007ffa0
push str._HF__ConnectAgent::createConnect
push esi
call fcn.10053700
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [esp + 0x14]
push eax
call fcn.1007fc30
add esp, 0xc
cmp dword [0x10193f6c], esi
je 0x1007ffcc
push edi
push str._HF___sendmsg__socket___d_
push esi
call fcn.10053700
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x43
push edi
call fcn.1007f390
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x18]
jg 0x1008001d
cmp eax, esi
je 0x1007fff1
push eax
call fcn.1010e8a3
add esp, 4
mov edx, dword [esp + 0xc]
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.1010e8a3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, esi
je 0x1008002a
push eax
call fcn.1010e8a3
add esp, 4
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.1010e8a3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10080060
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
xor edi, edi
push 0x103
lea eax, [esp + 0x1d]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], 0
call fcn.10116880
push 0x103
lea ecx, [esp + 0x12d]
push edi
push ecx
mov byte [esp + 0x134], 0
call fcn.10116880
add esp, 0x18
cmp ebp, edi
je 0x100800c9
mov byte [ebp], 0
lea edx, [esp + 0x11c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1008010c
cmp ebp, edi
je 0x100800f2
push str.Failed_to_getTempPath.
push ebp
call fcn.1010d6a8
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
push esi
push edi
push str.MWPR
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x1013f817
push esi
call fcn.1002cd30
mov edi, eax
add esp, 8
test edi, edi
jne 0x10080162
test ebp, ebp
je 0x10080148
push esi
push str._Unable_to_Create_ZIP_FILE:__s__
push ebp
call fcn.1010d6a8
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
push 1
lea ecx, [esp + 0x10]
push 0x2c
push ecx
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.10045850
add esp, 0xc
cmp dword [esp + 0xc], 0xffffffff
je 0x100801c9
push 0
lea ecx, [esp + 0x1c]
call fcn.10045a10
add esp, 4
cmp dword [edi], 2
jne 0x100801f2
mov ecx, dword [edi + 4]
push eax
lea edx, [esp + 0x1c]
call fcn.1002c4b0
mov dword [0x10193a14], eax
mov esi, eax
test eax, eax
jne 0x100801fd
push 1
lea edx, [esp + 0x10]
push 0x2c
push edx
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.10045850
add esp, 0xc
cmp dword [esp + 0xc], 0xffffffff
jne 0x10080180
mov dword [esp + 0x10], 1
call fcn.1002ce30
mov ecx, dword [esp + 0x220]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
mov esi, 0x80000
mov dword [0x10193a14], esi
test ebp, ebp
je 0x100801d1
mov eax, dword [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x20]
call fcn.10045a10
add esp, 4
push eax
push esi
push str._Err:__d._Unable_to_Add__s_file_to_ZIP_FILE:__s__
push ebp
call fcn.1010d6a8
add esp, 0x14
jmp 0x100801d1
Function at 0x100871f0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
push ecx
push edx
xor ebx, ebx
push ebx
push eax
call fcn.1011e420
add eax, dword [esi + 0x20]
push ebx
adc edx, dword [esi + 0x24]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
push eax
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1008723d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
cmp dword [ebp], ebx
jbe 0x10087271
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10087231
mov eax, dword [esp + 0x1c]
add ebx, eax
add edi, eax
cmp ebx, dword [ebp]
jb 0x1008724a
pop edi
mov dword [ebp], ebx
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x10087460
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0x1016b150
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov edi, edx
mov ax, word [0x1015e4e8]
mov word [ebp - 0x1c], ax
mov cl, byte [0x1015e4ea]
mov byte [ebp - 0x1a], cl
xor ebx, ebx
mov byte [ebp], bl
push 0x207
push ebx
lea edx, [ebp + 1]
push edx
call fcn.10116880
add esp, 0xc
mov dword [ebp - 4], ebx
mov al, byte [esi]
cmp al, 0x21
jne 0x100874de
mov al, byte [esi + 1]
mov byte [ebp - 0x1c], al
push 0x208
lea ecx, [ebp]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10087539
cmp byte [esi], 0x21
jne 0x1008750c
add esi, 3
push esi
lea eax, [ebp]
push eax
push str.__s_s
jmp 0x10087519
add esi, 2
push esi
lea ecx, [ebp]
push ecx
push 0x1014a0c0
push edi
call fcn.1010d6a8
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10087542
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x10087960
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xfffffffffffffffe
push 0x1016cfe8
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x318]
mov edi, dword [ebp + 0x31c]
xor ebx, ebx
mov byte [ebp + 0x208], bl
push 0x103
push ebx
lea eax, [ebp + 0x209]
push eax
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.1004f190
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x10087a33
push 0x104
lea ecx, [ebp + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + 0x208]
call fcn.10049c40
lea eax, [ebp + 0x208]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10087a06
mov edx, dword [str.rundll32.exe]
mov dword [eax], edx
mov ecx, dword [0x10149d2c]
mov dword [eax + 4], ecx
mov edx, dword [0x10149d30]
mov dword [eax + 8], edx
mov cl, byte [0x10149d34]
mov byte [eax + 0xc], cl
jmp 0x10087a62
mov edx, dword [str.rundll32.exe]
mov dword [ebp + 0x208], edx
mov eax, dword [0x10149d2c]
mov dword [ebp + 0x20c], eax
mov ecx, dword [0x10149d30]
mov dword [ebp + 0x210], ecx
mov dl, byte [0x10149d34]
mov byte [ebp + 0x214], dl
cmp esi, ebx
je 0x10087b1e
cmp byte [esi], bl
je 0x10087b1e
mov ecx, esi
call fcn.10044360
test eax, eax
jne 0x10087a99
cmp edi, ebx
je 0x10087b3b
push esi
push str._s_file_not_present
push edi
call fcn.1010d6a8
add esp, 0xc
jmp 0x10087b3b
push esi
lea eax, [ebp + 0x208]
push eax
push str._s_setupapi.dll_InstallHinfSection_DefaultUninstall_128__s
lea ecx, [ebp]
push ecx
call fcn.1010d6a8
add esp, 0x10
cmp dword [ebp - 0x24], ebx
je 0x10087ac7
lea edx, [ebp - 0x1c]
push edx
call fcn.1004f240
add esp, 4
mov esi, eax
jmp 0x10087aca
mov esi, dword [ebp - 0x20]
push ebx
push 0xffffffffffffffff
push ebx
push 1
lea eax, [ebp]
push eax
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10047950
cmp esi, ebx
je 0x10087aee
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1004f2c0
add esp, 4
mov ebx, str.mwfsmfltr
call fcn.10049380
test eax, eax
je 0x10087b10
test edi, edi
je 0x10087b3b
push str.Failed_to_uninstall_mwfsmfltr
push edi
call fcn.1010d6a8
add esp, 8
jmp 0x10087b3b
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10087b44
cmp edi, ebx
je 0x10087b3b
push str.Invalid_parameter
push edi
call fcn.1010d6a8
add esp, 8
jmp 0x10087b3b
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x310
mov esp, ebp
pop ebp
ret 8
Function at 0x1008b780
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x98
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x94], eax
test esi, esi
je 0x1008b79b
mov byte [esi], 0
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1008b804
mov dword [esp + 4], 4
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test esi, esi
je 0x1008b7ef
push 0x5c
push esi
call fcn.1010d780
add esp, 8
test eax, eax
je 0x1008b7ef
mov byte [eax], 0
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
cmp dword [esp + 4], 5
jb 0x1008b7cd
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008b7cd
push 0x104
push esi
call eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret

Function at 0x1008cdf0
Capabilities:
Check if file exists

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x2e
push ebp
call fcn.1010d780
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
test esi, esi
je 0x1008cf1b
lea eax, [esp + 8]
push eax
push str.DomainStripCheckB
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 2
call fcn.10031670
test al, al
jne 0x1008ce85
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, str.DomainStripCheckB
mov ebx, str.SoftwareMicroWorld
call fcn.10031430
push str.DomainStripCheck
mov ecx, ebx
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10031720
pop edi
pop ebx
cmp al, 1
je 0x1008ce85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1008ce85
push str.DomainStripCheck
call fcn.1006ad20
cmp eax, 1
jne 0x1008ce85
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x1008ce9c
mov byte [esi], 0
pop esi
mov eax, 1
pop ebp
add esp, 8
ret
test eax, eax
je 0x1008cf1b
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008cea5
sub eax, edx
inc eax
push eax
call fcn.1010dced
mov esi, eax
add esp, 4
test esi, esi
jne 0x1008cecd
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
lea eax, [esi + 1]
pop esi
pop ebp
add esp, 8
ret
mov edx, esi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1008ced3
mov edx, dword [esp + 0xc]
mov byte [edx], cl
mov ecx, ebp
call fcn.1000c030
test eax, eax
je 0x1008cf02
push esi
call fcn.1010dc10
add esp, 4
pop esi
mov eax, 1
pop ebp
add esp, 8
ret
mov edx, ebp
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1008cf08
push esi
call fcn.1010dc10
add esp, 4
pop esi
xor eax, eax
pop ebp
add esp, 8
ret