joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8f364a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d4c]
test eax, eax
je 0x6d8f36b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d4c]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.6d8f48f0
pop ecx
pop edi
pop esi
ret

Function at 0x6d8f3d88
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6d8f3dbd
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6d8f3db0
push eax
call fcn.6d8f4838
push 2
call fcn.6d8f4827
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
pop esi
ret

Function at 0x6d8fe17a
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebx
push edi
jne 0x6d8fe200
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
test ecx, ecx
je 0x6d8fe1a0
push 1
push esi
push edi
call ecx
add esp, 0xc
jmp 0x6d8fe1ad
push dword [eax + 0x38]
push 1
push 1
push esi
call ebx
add esp, 0x10
cmp eax, 1
je 0x6d8fe1c0
mov dword [0x6d919e8c], 0x66
xor eax, eax
jmp 0x6d8fe215
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
lea edi, [esi + 1]
test ecx, ecx
je 0x6d8fe1dd
movzx eax, byte [esi]
push eax
push edi
push dword [esp + 0x14]
call ecx
add esp, 0xc
jmp 0x6d8fe1ec
push dword [eax + 0x38]
movzx eax, byte [esi]
push eax
push 1
push edi
call ebx
add esp, 0x10
movzx ecx, byte [esi]
cmp eax, ecx
jne 0x6d8fe1b2
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov byte [edi], 2
jmp 0x6d8fe210
movzx eax, byte [esi + 1]
mov al, byte [eax + esi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
inc byte [esi + 1]
dec byte [esi]
xor eax, eax
inc eax
pop edi
pop ebx
ret
Function at 0x6d90335e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x6d90338c
push esi
call fcn.6d907b5a
cmp dword [esi + 0x40], 0
pop ecx
je 0x6d903385
xor eax, eax
mov dword [esi + 0x14], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x6d9033fc
mov eax, dword [esi + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x6d9033ee
mov eax, dword [esi + 8]
test eax, eax
je 0x6d9033ad
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b4]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x6d9033ea
cmp eax, 2
je 0x6d9033ee
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x6d9033a2
cmp eax, 3
je 0x6d9033d1
cmp eax, 1
jne 0x6d9033a2
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x6d9033a2
mov ecx, dword [esi + 0x140]
add dword [eax + 8], ecx
jmp 0x6d9033a2
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x6d90341a
cmp eax, 0xcc
je 0x6d90341a
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.6d903229
pop esi
ret

Function at 0x6d90d236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d917070]
jne 0x6d90d240
repz ret
jmp fcn.6d90d70c
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403203
pop dword [ebp - 0x24]
mov eax, 0x9daff114
add eax, 0x629040ef
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x54840d6b
add dword [ebp - 0x34], 0xf9ce37e0
mov dword [ebp - 0x30], 0x3e65082f
sub dword [ebp - 0x30], 0xc31bbea
mov dword [ebp - 0x2c], 0xdb748afd
sub dword [ebp - 0x2c], 0x8f2846cf
mov dword [ebp - 0x28], 0x335eec95
add dword [ebp - 0x28], 0xcca1136b
lea eax, [ebp - 0x34]
push eax
mov eax, 0xbef6709f
add eax, 0x414a0fed
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x9564f97a
sub dword [ebp - 0x34], 0x20f29024
mov dword [ebp - 0x30], 0x81d1b7c3
add dword [ebp - 0x30], 0xbf9aa9b2
mov dword [ebp - 0x2c], 0x96e07be4
sub dword [ebp - 0x2c], 0x33710f78
mov dword [ebp - 0x28], 0xd2591e12
add dword [ebp - 0x28], 0x2da6e1ee
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xe7982dbe
sub eax, 0xe757acea
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3a5f1
push 0
call eax
mov ecx, 0x1f846fdb
add ecx, 0xe07be741
mov edx, eax
mov ebx, 0x9aef1a97
sub ebx, 0x9aae0a97
add ebx, dword [ebp - 0x24]
mov esi, 0xb284887d
mov dword [ebp - 0x18], 0xb004c3c6
mov edi, dword [ebx]
add dword [ebp - 4], eax
xor edi, esi
add dword [ebp - 0x10], eax
mov dword [edx], edi
xor dword [ebp - 0xc], eax
add edx, 0xe7b4c54c
sub edx, 0xe7b4c548
add ebx, 4
loop 0x40331f
add eax, 0xd8768111
sub eax, 0xd87531ce
xor ebx, ebx
add ebx, eax
add eax, 0x2edf1c1
sub eax, 0x2edf1bc
mov ecx, 0xfb76a926
add ecx, 0x4c956da
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10007280
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
je 0x100072a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
sub esp, 4
lea eax, [edi + edi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x10007329
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
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], esi
mov dword [esp], ebx
call sym.atl110.dll_AtlAxCreateControlLicEx
sub esp, 0x20
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 1
jmp 0x1000731f

Function at 0x10007380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x1000b028], 8
jne 0x10007450
mov dword [esp + 8], 5
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x100074a0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x100074a0
mov dword [esp], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edx, dword [ebp - 0x10]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x100074b0
call sym._AX_ConvertDialogTemplate
mov ebx, eax
test eax, eax
je 0x1000742f
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_CreateDialogIndirectParamW]
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
mov ebx, edi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeResource]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__p__s__p__p__Ix__n
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], str.AtlAxCreateDialogW
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0x1000b028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000739c
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeResource]
sub esp, 4
jmp 0x1000743b
Function at 0x100074d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, 0x10
je 0x100075b8
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x20], ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, eax
sub esp, 0x18
lea eax, [eax + eax]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x100075c4
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x18]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.atl110.dll_AtlAxCreateDialogW
sub esp, 0x14
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym.atl110.dll_AtlAxCreateDialogW
xor esi, esi
jmp 0x100075a9
Function at 0x10007770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x1000b028], 8
jne 0x10007820
mov dword [esp + 8], 5
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x10007810
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x10007810
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
call sym._AX_ConvertDialogTemplate
mov esi, eax
test eax, eax
je 0x10007810
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_DialogBoxIndirectParamW]
sub esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0x14
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.instance__p__name__s__owner__p__proc__p__param__Ix_n
mov dword [esp + 8], str.AtlAxDialogBoxW
mov dword [esp + 4], 0x1000b028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000778b
Function at 0x10007870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, 0x10
je 0x10007958
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x20], ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, eax
sub esp, 0x18
lea eax, [eax + eax]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x10007964
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x18]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.atl110.dll_AtlAxDialogBoxW
sub esp, 0x14
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym.atl110.dll_AtlAxDialogBoxW
xor esi, esi
jmp 0x10007949
Function at 0x10009120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
test eax, eax
je 0x10009290
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x10009250
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
test edi, edi
je 0x100092c0
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], edi
mov dword [ebp - 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov ecx, eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
add ecx, 1
mov dword [esp + 4], 2
mov dword [ebp - 0x14], ecx
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp - 0x14]
mov dword [esp + 8], edi
mov dword [ebp - 0x14], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
sub esp, 0x18
mov word [edx + eax*2], cx
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ebp - 0x10], edx
call sym._string_register
mov edx, dword [ebp - 0x10]
mov esi, eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10009273
test byte [0x1000b038], 4
jne 0x100092f8
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1000b038], 4
jne 0x10009328
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
test byte [0x1000b038], 4
je 0x1000925d
mov dword [esp + 0xc], str.could_not_load_resource_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000925d
mov dword [esp + 0xc], str.Could_not_find_source_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000925d
mov dword [esp + 0xc], str.Could_not_load_resource_file_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000929d
Function at 0x100096e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x34
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x100097d0
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x10009800
test byte [0x1000b038], 4
jne 0x100098f0
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov esi, dword [sym.imp.ucrtbase.dll_free]
movzx eax, di
mov edx, edi
or eax, 0x80070000
test edi, edi
cmovg edx, eax
mov edi, edx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1000b038], 4
jne 0x100098b0
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovg edi, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
lea edx, [eax + 1]
mov dword [ebp - 0x24], eax
mov dword [esp], edx
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 2
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edi
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, esi
sub esp, 0x18
mov word [esi + ecx*2], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call sym._string_register
mov dword [esp], esi
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, eax
call esi
jmp 0x100097af
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Could_not_open_file__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.file_register
mov dword [esp + 4], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x100097dd
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_read_file__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.file_register
mov dword [esp + 4], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000978f
Function at 0x1000a360
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x1000abb8
mov edi, dword [0x1001b0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x1000aac7
test byte [0x1000b050], 8
jne 0x1000ab60
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1000b060], 8
jne 0x1000ab20
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 sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1000aa69
cmp esi, 3
jbe 0x1000aad8
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 0x1000aa7a
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]
add esp, 0xe0
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 + 0x10015900]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x1000aa69
mov dword [esp], 0x1000b060
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000aa40
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 sym._sprintf
add edi, eax
jmp 0x1000aa40
mov dword [esp], 0x1000b050
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000aa2b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
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 sym._sprintf
lea edi, [ebx + eax]
jmp 0x1000aa33
mov eax, 0xffffffff
jmp 0x1000aac7