joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404340
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x7d1
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
cmp esi, 0x111
je 0x404408
cmp esi, 0x110
jne 0x4043fc
push 1
push ebx
mov esi, eax
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.user32.dll_EnableWindow]
mov eax, dword [0x411010]
shr eax, 1
and eax, 1
mov edi, dword [sym.imp.user32.dll_CheckDlgButton]
push eax
push 0x7d5
push ebx
call edi
mov eax, dword [0x411010]
shr eax, 2
and eax, 1
push eax
push 0x7d6
push ebx
call edi
mov eax, dword [0x411010]
shr eax, 3
and eax, 1
push eax
push 0x7d7
push ebx
call edi
mov eax, dword [0x411010]
and eax, 1
push eax
push 0x7d8
push ebx
call edi
push 0
push 0x7f
push 0xc5
push esi
call dword [sym.imp.user32.dll_SendMessageW]
push 0x4115d8
push esi
call dword [sym.imp.user32.dll_SetWindowTextW]
mov edi, 1
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
cmp dx, 1
je 0x40445f
movzx ecx, dx
cmp ecx, 2
je 0x404454
cmp ecx, 0x7d1
jne 0x4043fc
and edx, 0xffff0000
cmp edx, 0x4000000
jne 0x4043fc
push 1
push ebx
mov esi, eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov edi, eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
xor ecx, ecx
test eax, eax
setg cl
push ecx
push edi
call dword [sym.imp.user32.dll_EnableWindow]
jmp 0x4043f7
push 2
push ebx
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x4043f7
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov edi, 1
test eax, eax
jle 0x4043fc
mov esi, dword [sym.imp.user32.dll_IsDlgButtonChecked]
push 0x7d5
push ebx
call esi
mov edx, esi
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx]
mov dword [ebp - 0x10], eax
mov esi, ecx
push 0x7d6
push ebx
call edx
test eax, eax
lea esi, [esi + esi + 4]
cmove esi, dword [ebp - 0x10]
push 0x7d7
push ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
lea ecx, [esi + 8]
test eax, eax
cmove ecx, esi
mov esi, ecx
push 0x7d8
push ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
xor ecx, ecx
test eax, eax
setne cl
or ecx, esi
mov dword [0x411010], ecx
push 0x80
push 0x4115d8
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_GetWindowTextW]
push 1
push ebx
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x4043fc
Function at 0x404500
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, edx
push ecx
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x40456a
call dword [sym.imp.user32.dll_EmptyClipboard]
test eax, eax
je 0x404560
xor eax, eax
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x404520
push eax
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
xor ebx, ebx
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
nop
movzx ecx, word [esi + ebx]
mov word [eax + ebx], cx
add ebx, 2
test cx, cx
jne 0x404540
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.user32.dll_SetClipboardData]
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.user32.dll_CloseClipboard]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404570
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
mov ebx, dword [ebp + 0xc]
xor edi, edi
push 0x7d1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
cmp ebx, 0x111
je 0x40462f
cmp ebx, 0x110
jne 0x404620
mov edi, dword [0x40d34c]
mov eax, dword [edi]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 9
push 0x110a
push dword [eax + 4]
call ebx
mov dword [ebp - 0x34], 0x11
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x80
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x113e
push dword [eax + 4]
call ebx
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.user32.dll_EnableWindow]
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.user32.dll_SetWindowTextW]
push 0
push 0x7f
push 0xc5
push esi
call ebx
mov edi, 1
mov eax, edi
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
cmp ax, 1
je 0x404686
movzx ecx, ax
cmp ecx, 2
je 0x404679
cmp ecx, 0x7d1
jne 0x404620
and eax, 0xffff0000
cmp eax, 0x4000000
jne 0x404620
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
mov edi, eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
xor ecx, ecx
test eax, eax
setg cl
push ecx
push edi
call dword [sym.imp.user32.dll_EnableWindow]
jmp 0x40461b
push 2
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x40461b
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov edi, 1
test eax, eax
jle 0x404620
push 0x80
push 0x4116d8
push esi
call dword [sym.imp.user32.dll_GetWindowTextW]
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x404620
Function at 0x404b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x404ce6
mov eax, dword [ebp - 0x18]
sub esp, 0x30
lea ecx, [ebp - 0x10]
mov dword [esp + 0x20], ecx
lea ecx, [ebp - 0x14]
mov dword [esp + 0x1c], ecx
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x404c1d
xor ebx, ebx
test byte [0x411014], 2
je 0x404cdd
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegQueryInfoKey_failed:__ld_n
mov dword [esp + 8], str.add_favourite_key_items
mov dword [esp], 1
call sym._wine_dbg_log_1
add esp, 0x14
jmp 0x404cdd
cmp dword [ebp - 0x14], 0
je 0x404ccd
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 1]
mov dword [ebp - 0x10], ecx
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
test edi, edi
je 0x404c60
push 0
push 0
push 0x800
push edi
call dword [sym.imp.user32.dll_AppendMenuW]
cmp dword [ebp - 0x14], 0
je 0x404cd1
xor ebx, ebx
jmp 0x404c87
lea eax, [ebx + 0x80e8]
push esi
push eax
push 0
push edi
call dword [sym.imp.user32.dll_AppendMenuW]
inc ebx
cmp ebx, dword [ebp - 0x14]
jae 0x404cd3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegEnumValueW]
test eax, eax
jne 0x404c81
cmp dword [ebp - 0x20], 1
jne 0x404c81
test edi, edi
jne 0x404c70
cmp dword [ebp - 0x1c], 0
je 0x404c81
push esi
push 0
push 0x180
push dword [ebp - 0x1c]
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x404c81
xor ebx, ebx
jmp 0x404cdd
xor ebx, ebx
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406d90
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.ucrtbase.dll_exit]
nop dword [eax + eax]
Function at 0x407030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, 1
push eax
call dbg.output_formatstring
add esp, 4
push 0
call dword [sym.imp.ucrtbase.dll_exit]
nop word cs:[eax + eax]

Function at 0x4071d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x4072bd
lea eax, [ebp - 0xe]
push esi
push 1
push 2
push eax
call dword [sym.imp.ucrtbase.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4072bd
movzx eax, byte [ebp - 0xe]
mov edi, eax
xor edi, 0xff
movzx ecx, byte [ebp - 0xd]
mov ebx, ecx
xor ebx, 0xfe
xor edx, edx
or bx, di
mov edi, dbg.get_lineW
mov ebx, dbg.get_lineA
cmove ebx, edi
sete dl
mov dword [ebp - 0x3c], edx
mov dword [0x412180], ebx
mov dword [ebp - 0x44], esi
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov word [ebp - 0x3e], cx
mov word [ebp - 0x38], 0xffff
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
lea esi, [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
push eax
push esi
call dword [ecx*4 + 0x40e0c0]
add esp, 8
test eax, eax
jne 0x407260
mov eax, dword [ebp - 0x38]
lea ecx, [eax - 3]
cmp cx, 1
ja 0x40728a
xor ebx, ebx
cmp ax, 3
sete bl
jmp 0x4072bd
push dword [ebp - 0x2c]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov ebx, 1
cmp dword [ebp - 0x34], 0
je 0x4072bd
push dword [ebp - 0x30]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [ebp - 0x30], 0
push dword [ebp - 0x34]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4072d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [global_size.0]
cmp dword [ebp + 8], 0
je 0x4072f6
test eax, eax
je 0x40731a
mov esi, dword [global_next.0]
test esi, esi
jne 0x4073e4
jmp 0x4072fa
test eax, eax
je 0x407309
push dword [global_buf.0]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [global_size.0], 0
xor esi, esi
jmp 0x40741e
mov dword [global_size.0], 0x1000
push 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
mov dword [global_buf.0], eax
mov word [eax], 0
mov dword [global_next.0], eax
jmp 0x4073e4
mov ebx, 0xfffffffe
mov eax, dword [global_next.0]
nop word [eax + eax]
cmp word [eax + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x407360
mov edi, ebx
sar edi, 1
mov esi, dword [global_buf.0]
lea ecx, [ebx + 2]
push ecx
push eax
push esi
call sym._memmove
add esp, 0xc
mov eax, dword [global_size.0]
mov ecx, eax
sub ecx, edi
cmp ecx, 2
ja 0x4073b5
lea ecx, [eax + eax]
mov dword [ebp - 0x10], ecx
mov dword [global_size.0], ecx
shl eax, 2
push eax
push esi
call dword [sym.imp.ucrtbase.dll_realloc]
add esp, 8
mov esi, eax
mov dword [global_buf.0], eax
mov eax, dword [ebp - 0x10]
add esi, ebx
not edi
add edi, eax
push dword [ebp + 8]
push edi
push 2
push esi
call dword [sym.imp.ucrtbase.dll_fread]
add esp, 0x10
test eax, eax
je 0x407428
mov esi, dword [global_buf.0]
lea eax, [esi + eax*2]
mov word [ebx + eax], 0
mov dword [global_next.0], esi
push 0x40e104
push esi
call dword [sym.imp.ucrtbase.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x407350
lea ecx, [eax + 2]
mov dword [global_next.0], ecx
cmp word [eax], 0xd
jne 0x407419
cmp word [ecx], 0xa
jne 0x407419
lea ecx, [eax + 4]
mov dword [global_next.0], ecx
mov word [eax], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [global_next.0], 0
mov esi, dword [global_buf.0]
jmp 0x40741e
Function at 0x407440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push dword [global_lineW]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov eax, dword [global_size]
cmp dword [ebp + 8], 0
je 0x40747e
test eax, eax
je 0x4074ac
mov esi, dword [global_next]
test esi, esi
jne 0x407559
mov dword [global_lineW], 0
jmp 0x40748c
mov dword [global_lineW], 0
test eax, eax
je 0x40749b
push dword [global_buf]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [global_size], 0
xor eax, eax
jmp 0x4075c7
mov dword [global_size], 0x1000
push 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
mov dword [global_buf], eax
mov byte [eax], 0
mov dword [global_next], eax
jmp 0x407559
push esi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov edi, eax
mov ebx, dword [global_buf]
inc eax
push eax
push esi
push ebx
call sym._memmove
add esp, 0xc
mov esi, dword [global_size]
mov eax, esi
sub eax, edi
cmp eax, 2
ja 0x407527
add esi, esi
mov dword [global_size], esi
push esi
push ebx
call dword [sym.imp.ucrtbase.dll_realloc]
add esp, 8
mov ebx, eax
mov dword [global_buf], eax
add ebx, edi
mov eax, edi
not eax
add eax, esi
push dword [ebp + 8]
push eax
push 1
push ebx
call dword [sym.imp.ucrtbase.dll_fread]
add esp, 0x10
test eax, eax
je 0x4075cc
mov esi, dword [global_buf]
add edi, esi
mov byte [eax + edi], 0
mov dword [global_next], esi
push 0x40e10a
push esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4074e0
lea ecx, [eax + 1]
mov dword [global_next], ecx
cmp byte [eax], 0xd
jne 0x40758c
cmp byte [ecx], 0xa
jne 0x40758c
lea ecx, [eax + 2]
mov dword [global_next], ecx
mov byte [eax], 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, eax
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ebx, eax
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, ebx
mov dword [global_lineW], ebx
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [global_next], 0
mov ebx, dword [global_buf]
test ebx, ebx
je 0x40761a
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov esi, eax
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov edi, eax
push esi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, edi
mov dword [global_lineW], edi
jmp 0x4075c7
xor eax, eax
mov dword [global_lineW], eax
jmp 0x4075c7
Function at 0x407630
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4076a6
cmp word [esi], 0
je 0x4076a6
lea edx, [ebp - 0x10]
mov ecx, esi
call dbg.parse_key_name
mov edi, eax
mov ebx, dword [ebp - 0x10]
test eax, eax
je 0x407664
test ebx, ebx
jne 0x407685
jmp 0x40768b
test ebx, ebx
je 0x40766e
mov word [ebx - 2], 0
push esi
push 0xbcc
call dbg.output_message
add esp, 8
call sym._error_exit
test ebx, ebx
je 0x40768b
cmp word [ebx], 0
jne 0x40769e
push esi
push 0xbce
call dbg.output_message
add esp, 8
call sym._error_exit
push ebx
push edi
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4080b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x4080c5
cmp eax, 0x20
jne 0x4080db
add esi, 2
movzx eax, word [esi]
cmp eax, 0x1f
jg 0x4080c0
cmp eax, 9
je 0x4080c5
test eax, eax
je 0x4080e0
jmp 0x4080ec
cmp eax, 0x3b
jne 0x4080ec
push dword [edi + 0x18]
push dword [edi + 0x10]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [edi + 0x30], 2
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4087b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push 0
push dword [edi + 0x18]
push dword [edi + 0x10]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [edi + 0x1c]
add eax, 0xfffffffd
cmp eax, 1
ja 0x4087e9
push dword [edi + 0x24]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
cmp word [edi + 0xc], 1
mov eax, 2
sbb eax, 0
mov dword [edi + 0x30], eax
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, edx
mov ebx, ecx
push 0x40e20c
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x408a09
push 0x40e210
push ebx
call dword [sym.imp.ucrtbase.dll__wfopen]
add esp, 8
mov edi, eax
test eax, eax
jne 0x4089e2
push 0x40e216
call dword [sym.imp.ucrtbase.dll__wperror]
add esp, 4
push ebx
push 0xbbf
call dbg.output_message
add esp, 8
call sym._error_exit
xor edi, edi
test esi, esi
je 0x408a33
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
push edi
push 2
push 1
push global_bom
call esi
add esp, 0x10
push edi
push 0x26
push 2
push global_header
call esi
jmp 0x408a43
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push eax
call dword [sym.imp.ucrtbase.dll__fileno]
add esp, 4
push 0x8000
push eax
call dword [sym.imp.ucrtbase.dll__setmode]
add esp, 8
test esi, esi
jne 0x4089e6
push edi
push 1
push 0xa
push str.REGEDIT4_r_n
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4091f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
cmp dword [ebp + 8], 0
je 0x40922d
mov eax, 0xfffffffe
nop word cs:[eax + eax]
cmp word [edx + eax + 2], 0
lea eax, [eax + 2]
jne 0x409210
sar eax, 1
push ecx
push eax
push 2
push edx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x14
jmp 0x4092a3
test edx, edx
je 0x40928c
sub esp, 0x20
movaps xmm0, xmmword [0x40e0b0]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x10], ecx
mov ebx, edx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x10]
jmp 0x40928e
xor esi, esi
push ecx
push esi
call dword [sym.imp.ucrtbase.dll_fputs]
add esp, 8
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x40b08d
mov esi, eax
xor eax, eax
cmp byte [edi + esi - 1], 0xa
je 0x40b06a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, 0x412244
lock xchg dword [ecx], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40b08f
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x40b500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x4121b8]
test eax, eax
jne 0x40b559
mov edi, dword fs:[0x18]
mov ebx, dword [edi + 0x34]
push 0x40e504
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x4121b8
lock xchg dword [eax], ecx
mov dword [edi + 0x34], ebx
mov edi, dword [ebp + 8]
mov eax, dword [0x4121b8]
push esi
call eax
add esp, 4
movzx eax, al
bt eax, edi
jae 0x40b70f
mov ecx, dword [0x412244]
mov ebx, dword fs:[0x18]
xor eax, eax
cmp ecx, dword [ebx + 0x24]
je 0x40b714
lea edi, [ebp - 0xd8]
test byte [0x411255], 8
je 0x40b620
mov eax, dword [0x4121b8]
test eax, eax
jne 0x40b5d9
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x40e504
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x4121b8
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x4121b8]
push 0x411255
call eax
add esp, 4
test al, 8
je 0x40b620
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
lea eax, [ebp - 0xd8]
push ecx
push edx
push str._3u._03u:
push eax
call dbg.sprintf
add esp, 0x10
lea edi, [eax + ebp]
add edi, 0xffffff28
test byte [0x411265], 8
je 0x40b68d
mov eax, dword [0x4121b8]
test eax, eax
jne 0x40b66c
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x40e504
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x4121b8
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x4121b8]
push 0x411265
call eax
add esp, 4
test al, 8
je 0x40b68d
push dword [ebx + 0x20]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
add edi, eax
push dword [ebx + 0x24]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
mov edx, dword [ebp + 8]
cmp edx, 3
ja 0x40b6e2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b6e2
add edi, eax
lea eax, [ebp - 0xd8]
sub eax, edi
add eax, 0xc8
mov edx, dword [edx*4 + 0x40e528]
inc esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 4], eax
call dbg.snprintf
add esp, 0x18
lea edi, [ebp - 0xd8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40b714
mov eax, 0xffffffff
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret