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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x230
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x46853c
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x118
mov dword [esp], str..._wine_dlls_urlmon_tests_stream.c
call fcn.0045a5b0
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], 0x4683f2
setne al
mov dword [esp], eax
call fcn.0045a820
cmp ebx, 0xffffffff
je 0x42b82c
lea eax, [ebp - 0x214]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x46852c
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
lea ebx, [ebp - 0x210]
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, ebx
sub esp, 8
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x42b758
mov ecx, edx
lea esi, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x656c6966
mov dword [ebp - 0x108], 0x2f2f2f3a
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
mov edx, 0x5c
sbb eax, 3
sub eax, ebx
mov word [ebx + eax], dx
mov edx, dword [0x46853c]
mov dword [esp + 4], ebx
mov dword [ebp + eax - 0x20f], edx
mov edx, dword [0x468540]
mov dword [ebp + eax - 0x20b], edx
movzx edx, word [0x468544]
mov word [ebp + eax - 0x207], dx
movzx edx, byte [0x468546]
mov byte [ebp + eax - 0x205], dl
lea eax, [ebp - 0x104]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], 0x49ccc0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x42ec30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x3c
test eax, eax
je 0x42ecd4
mov ebx, eax
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov edx, eax
sub esp, 0x18
lea ecx, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
sub esp, 0x18
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4383a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x3c
test eax, eax
je 0x43844a
mov dword [ebp - 0x20], edx
mov esi, eax
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov ecx, eax
sub esp, 0x18
lea ebx, [ecx + ecx]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov edx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x439550
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x1c]
sub esp, 0x4c
mov eax, dword [edx]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [eax + 0x50]
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], esi
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.GetDisplayName_failed:__08x_n
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x1c]
call fcn.0042ee60
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x439669
mov dword [ebp - 0x34], ecx
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov edx, eax
sub esp, 0x18
lea esi, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x30]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
mov edi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], str.unexpected_display_name:__s__expected__s_n
call fcn.0045a820
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ole32.dll_CoTaskMemFree
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x448a10
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov eax, 0x1a9c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0045b7f0
sub esp, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], str.test.txt
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0xedb
mov dword [esp], 0x491720
call fcn.0045a5b0
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.CreateFile_failed_n
setne al
mov dword [esp], eax
call fcn.0045a820
cmp ebx, 0xffffffff
je 0x448ba7
lea edx, [ebp - 0x197c]
mov esi, 0x659
mov eax, 0x58585858
mov edi, edx
mov ecx, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1a84]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1964
mov esi, ecx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
lea ebx, [ebp - 0x1a80]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, ebx
mov eax, esi
mov ecx, 0x41
rep stosd dword es:[edi], eax
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, ebx
sub esp, 8
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x448b0e
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
mov edx, 0x5c
sbb eax, 3
sub eax, ebx
mov word [ebx + eax], dx
mov edx, dword [str.test.txt]
mov dword [esp + 0x14], 0x104
mov dword [ebp + eax - 0x1a7f], edx
mov edx, dword [0x4962f0]
mov dword [esp + 0x10], 0x49f280
mov dword [ebp + eax - 0x1a7b], edx
movzx edx, byte [0x4962f4]
mov dword [esp + 0xc], 0xffffffff
mov byte [ebp + eax - 0x1a77], dl
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x448bb0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x95c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0xebe
mov dword [esp], 0x491720
call fcn.0045a5b0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.CreateFile_failed_n
setne al
mov dword [esp], eax
call fcn.0045a820
cmp esi, 0xffffffff
je 0x448d4b
mov eax, dword [0x49f028]
test eax, eax
je 0x448c48
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], edi
mov dword [0x49f028], ebx
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x944]
mov dword [esp], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], esi
lea esi, [ebp - 0x940]
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov edx, esi
sub esp, 8
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x448ca5
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
sub edx, esi
lea eax, [esi + edx + 1]
mov byte [esi + edx], 0x5c
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x83c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x835]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x83c], 0x656c6966
mov dword [ebp - 0x838], 0x2f2f3a
call sub.msvcrt.dll_strcpy
mov dword [esp + 0x14], 0x824
mov dword [esp + 0x10], 0x49dfe0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x45a330
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
call dword [0x45c7ec]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x45ae60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
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 al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0045b830
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x660814b0
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x66081d42
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x66086084]
cmp dword [edx + 0x24], edi
je 0x66081c68
test byte [0x66083030], 8
jne 0x66081cf0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x66083040], 8
jne 0x66081cb1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x66081c0a
cmp esi, 3
jbe 0x66081c70
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x66081c1b
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6608511c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x66081c0a
mov dword [esp], 0x66083040
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x66081be1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x66081be1
mov dword [esp], 0x66083030
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x66081bce
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x66081bd4
mov eax, 0xffffffff
jmp 0x66081c68
Function at 0x66081e20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x660860a0]
test eax, eax
je 0x66081ed1
mov dword [esp], ebx
call eax
sub esp, 4
mov dword [ebx + 8], eax
test eax, eax
jns 0x66081e60
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x66081e4c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x66081f06
mov dword [esp + 4], 0x6608512c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x660860a0], eax
test eax, eax
jne 0x66081e3d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x66081e4e
Function at 0x66081f20
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x660820a7
mov eax, dword [ebx]
test eax, eax
je 0x660820c0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x24], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [esp + 8], esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x660820a0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, dword [ebx + 4]
sub esp, 0x18
mov word [esi + eax - 2], dx
mov eax, dword [ebx]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
jne 0x66082090
call dword [edx + 0x28]
mov dword [ebx + 8], eax
sub esp, 8
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebx + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
sub esp, 8
mov dword [ebx + 8], eax
jmp 0x66082056
mov dword [ebx + 8], 0x8007000e
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, ebx
mov eax, esi
call dbg.create_registrar
test eax, eax
jne 0x66081f90
xor eax, eax
jmp 0x660820a9
Function at 0x4012d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x15c]
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x19c
mov dword [0x408004], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x11c]
mov dword [esp + 4], str.wscript.exe__s_arg1_2_ar3
mov dword [esp], ebx
mov dword [ebp - 0x160], 0x44
call fcn.00401100
lea eax, [ebp - 0x170]
mov dword [0x40800c], 1
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x401492
mov eax, dword [ebp - 0x170]
mov dword [esp + 4], 0xffffffff
mov dword [section..bss], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x174]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x15c
mov dword [esp], str..._wine_programs_wscript_tests_run.c
call fcn.00402e70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.GetExitCodeProcess_failed:__u_n
mov dword [esp + 8], eax
call fcn.004030e0
mov dword [esp + 4], 0x15d
mov dword [esp], str..._wine_programs_wscript_tests_run.c
call fcn.00402e70
mov eax, dword [ebp - 0x174]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.exit_code___u__expected__u_n
cmp eax, esi
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004030e0
mov eax, dword [ebp - 0x16c]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x170]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp + 4], 0x162
mov dword [esp], str..._wine_programs_wscript_tests_run.c
call fcn.00402e70
mov eax, dword [0x408008]
mov dword [esp + 4], str.expected_reportSuccess_n
mov dword [esp], eax
call fcn.004030e0
mov dword [0x408008], 0
mov dword [0x40800c], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x153
mov dword [esp], str..._wine_programs_wscript_tests_run.c
call fcn.00402e70
mov dword [esp], str.script.exe_is_not_available_n
call fcn.004031f0
mov dword [0x408008], 0
mov dword [0x40800c], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4014d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x14c
mov dword [ebp - 0x12c], edx
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strrchr]
mov dword [esp + 4], 0x16e
mov dword [esp], str..._wine_programs_wscript_tests_run.c
mov ebx, eax
call fcn.00402e70
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.no_script_extension_n
setne al
mov dword [esp], eax
call fcn.004030e0
test ebx, ebx
je 0x401650
lea esi, [ebp - 0x11c]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.test_s
mov dword [esp], esi
call fcn.00401100
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x176
mov dword [esp], str..._wine_programs_wscript_tests_run.c
call fcn.00402e70
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.CreateFile_failed:__u_n
mov dword [ebp - 0x130], edx
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004030e0
cmp ebx, 0xffffffff
je 0x401650
lea eax, [ebp - 0x120]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], 0x17c
mov dword [esp], str..._wine_programs_wscript_tests_run.c
call fcn.00402e70
mov edx, dword [ebp - 0x130]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.Could_not_write_to_file:__u_n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004030e0
test edi, edi
je 0x401650
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.004012d0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret