joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x43b934], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43b934], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43b938], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43b93c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b944], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b940], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x43b934]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x43b940]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x43b944], edi
je 0x40c1ed
push eax
call ebx
push dword [0x43b944]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x43b938]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x43b93c]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43b934]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4010e0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov dword [esp], 0x104
lea ebx, [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x40119f
mov dword [esp], 0xc
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
call esi
test eax, eax
mov ebp, eax
je 0x40119f
mov dword [esp], 0x230
call esi
mov dword [ebp + 8], eax
test eax, eax
je 0x4011d3
mov esi, dword [sym.imp.kernel32.dll_GetTempFileNameW]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
jmp 0x401160
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x4011b0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov ecx, dword [section..bss]
mov dword [esp], ebx
lea edx, [ecx + 1]
mov dword [section..bss], edx
mov dword [esp + 8], edx
mov edx, section..rdata
mov dword [esp + 4], edx
call esi
sub esp, 0x10
test eax, eax
jne 0x401148
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov dword [esp], ebp
call ebx
xor eax, eax
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x1c]
lea eax, [edi + 8]
mov dword [ebp], eax
mov eax, dword [edi + 0xc]
mov dword [ebp + 4], eax
mov dword [eax], ebp
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], ebp
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esp + 0x1c]
jmp 0x4011a1

Function at 0x401230
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], ecx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
xor ebx, ebx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, eax
sub esp, 0x14
xor eax, eax
test edx, edx
je 0x40127a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x401290
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], ecx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
xor ebx, ebx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
sub esp, 0x14
xor eax, eax
test edx, edx
je 0x4012da
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x4013a0
Capabilities:
Extract cabinet on windows

Disassembly:
sub esp, 0x6c
mov ecx, sym._cabinet_open
mov dword [esp + 0x60], esi
mov esi, eax
mov dword [esp + 0x5c], ebx
lea eax, [esp + 0x44]
mov ebx, sym._cabinet_free
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, sym._cabinet_seek
mov dword [esp + 0x18], eax
mov eax, sym._cabinet_close
mov dword [esp + 0x68], ebp
mov ebp, edx
mov edx, sym._cabinet_read
mov dword [esp + 0x14], eax
mov eax, sym._cabinet_write
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], sym._cabinet_alloc
mov dword [esp + 0x64], edi
call sym._FDICreate
test eax, eax
je 0x401500
test esi, esi
mov ebx, eax
je 0x401508
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor edx, edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov edi, 0xffffffff
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 0x3c], ecx
call ecx
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
mov edi, eax
je 0x401508
xor edx, edx
xor eax, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
mov ecx, 0xffffffff
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
mov dword [esp], 0
call ecx
mov eax, sym._cabinet_notify
sub esp, 0x20
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x18], ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sym._FDIDestroy
mov eax, esi
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret
xor esi, esi
jmp 0x4014ea
xor esi, esi
jmp 0x4014e2
Function at 0x4018c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
test eax, eax
je 0x4019d0
push ebp
mov edx, 0x40a008
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x27c
call sym._path_combine.part.0
test eax, eax
mov edi, eax
je 0x4019b0
mov dword [esp], eax
lea ebp, [esp + 0x20]
mov dword [esp + 4], ebp
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], edi
mov dword [esp + 0x18], eax
call eax
cmp esi, 0xffffffff
je 0x401996
lea edi, [esp + 0x4c]
mov dword [esp], edi
mov edx, 0x40a010
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401976
mov dword [esp], edi
mov eax, 0x40a014
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401976
mov edx, edi
mov eax, ebx
call sym._path_combine.part.0
test eax, eax
je 0x401976
test byte [esp + 0x20], 0x10
jne 0x4019c0
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov eax, dword [esp + 0x18]
call eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401919
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
add esp, 0x27c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x27c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], eax
call sym._delete_directory
mov edx, dword [esp + 0x1c]
jmp 0x40196d
xor eax, eax
ret

Function at 0x4019e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4019fb
test al, 0x10
jne 0x401a30
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401a30
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete al
add esp, 0x18
pop ebx
movzx eax, al
ret
add esp, 0x18
mov eax, 1
pop ebx
ret
Function at 0x401a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
test eax, eax
je 0x401af2
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
sub esp, 4
test eax, eax
jne 0x401a80
xor ebx, ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401a95
test al, 0x10
jne 0x401ae8
movzx eax, word [esi]
test eax, eax
je 0x401ad7
mov ebx, esi
nop
jmp 0x401ab3
movzx eax, word [ebx + 2]
add ebx, 2
test eax, eax
je 0x401ad7
cmp eax, 0x5c
jne 0x401aa8
mov word [ebx], 0
mov eax, esi
call sym._create_directory
test eax, eax
je 0x401a68
mov word [ebx], 0x5c
add ebx, 2
movzx eax, word [ebx]
test eax, eax
jne 0x401ab3
mov eax, esi
call sym._create_directory
mov ebx, eax
jmp 0x401a6a
mov ebx, 1
jmp 0x401a6a
xor ebx, ebx
jmp 0x401a73
Function at 0x401fd0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Terminate process

Disassembly:
push esi
mov eax, 1
push ebx
xor edx, edx
sub esp, 0x2a4
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + eax + 0x58], edx
mov dword [esp + eax + 0x5c], edx
add eax, 8
cmp eax, 0x40
jb 0x401fe5
mov dword [esp + 4], 0x104
lea ebx, [esp + 0x98]
mov dword [esp], ebx
mov dword [esp + 0x54], 0x44
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push esi
push esi
mov dword [esp + 4], str.wusa.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [esp + 0x44]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x4020e7
test byte [section..data], 8
jne 0x40214e
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call ebx
push ecx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call ebx
push ebx
jmp 0x4020f0
test byte [section..data], 2
jne 0x40210d
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword fs:[0x18]
or edx, 0xffffffff
mov esi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0x409000
mov dword [esp], 1
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
jmp 0x4020f0
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x409000
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
jmp 0x40209d
Function at 0x402a80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3c
mov dword [esp + 0x30], esi
mov esi, eax
mov eax, dword [ecx]
mov dword [esp + 0x2c], ebx
mov ebx, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov ebp, ecx
call sym._expand_expression.isra.0
mov ecx, dword [ebp]
test ecx, ecx
mov edi, eax
je 0x402b00
test eax, eax
je 0x402b88
cmp word [edi], 0
mov eax, edi
je 0x402b90
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402ac0
sub eax, edi
add eax, 2
mov edx, dword [esp + 0x44]
test edx, edx
je 0x402b0e
mov esi, 1
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, esi
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret
test eax, eax
jne 0x402ab1
mov edx, dword [esp + 0x44]
xor eax, eax
test edx, edx
jne 0x402ad6
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x402ad6
xor esi, esi
test byte [section..data], 2
je 0x402adb
mov eax, dword [ebx]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov edx, str.install_registry_string
mov ecx, section..data
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.Failed_to_set_registry_key__s_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x402adb
xor esi, esi
jmp 0x402ae4
mov eax, 2
jmp 0x402ace
Function at 0x407b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x407bc0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x407bb8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40c0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x407b7d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x408290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x408468
mov edx, dword [0x40c0a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x408458
test byte [0x409028], 8
jne 0x408400
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x409038], 8
jne 0x4083c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40831b
cmp dword [ebp + 8], 3
jbe 0x408380
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x40832a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x40be90]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x40831b
mov dword [esp], 0x409038
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x4082f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x4082f0
mov dword [esp], 0x409028
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x4082dd
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x4082e3
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x408378
Function at 0x4084e0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret