joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d2d4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x44d2f0
cmp dword [esi + 4], 0
je 0x44d31d
test byte [ebx + 0x55], 1
jne 0x44d30f
mov eax, ebx
call fcn.0044be74
test eax, eax
jne 0x44d30f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44d42d
mov edx, esi
mov eax, ebx
call fcn.0044cdf8
jmp 0x44d42d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44d426
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044f1c8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00449afc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044d2d4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044f1c8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d42d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453c38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e71e4]
cmp byte [eax + 0xc], 0
je 0x453da5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453d9e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8b30], 0
jne 0x453c8c
push 0x453dac
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x453db4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b30], eax
cmp dword [0x4e5e54], 0
jne 0x453d87
push 0x453dc4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e5e54], eax
cmp dword [0x4e5e54], 0
je 0x453d87
push 0x453dd0
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b34], eax
push 0x453de0
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b38], eax
push 0x453df4
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b3c], eax
push 0x453e0c
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b40], eax
push 0x453e24
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b44], eax
push 0x453e38
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b48], eax
push 0x453e50
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b4c], eax
push 0x453e68
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b50], eax
push 0x453e84
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b54], eax
push 0x453e90
mov eax, dword [0x4e5e54]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8b58], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453da5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x458230
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404624
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45827f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404894
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45fa50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45faa0]
test si, 4
je 0x45fa64
or bl, 1
test si, 8
je 0x45fa6e
or bl, 4
test si, 1
je 0x45fa78
or bl, 8
test si, 2
je 0x45fa82
or bl, 0x10
test si, 0x10
je 0x45fa8c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fa9b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45faa4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45fadc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fabd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45facc
or bl, 4
test esi, 0x20000000
je 0x45fad7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4661a0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4661b2
add esp, 0xfffffff0
call fcn.00403af0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426148
mov eax, dword [0x4e6bec]
mov dword [eax + 4], ebx
mov dword [eax], 0x466544
mov eax, dword [0x4e6c00]
mov dword [eax + 4], ebx
mov dword [eax], 0x466550
mov eax, ebx
call fcn.0046655c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b45c]
call fcn.00403748
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b45c]
call fcn.00403748
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b45c]
call fcn.00403748
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b45c]
call fcn.00403748
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b45c]
call fcn.00403748
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x462974
push eax
push 0
push 0
mov eax, dword [0x4e6e4c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427c48]
call fcn.004293e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427c48]
call fcn.004293e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427c48]
call fcn.004293e0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00466a60
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4668e0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4668e0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4668e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4662ef
call fcn.00403b48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4666c4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46686f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x466850
mov dl, 1
mov eax, dword [0x41bae0]
call fcn.00403748
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404624
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46683f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0045409c
test al, al
je 0x466832
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x466880
lea eax, [ebp - 0x254]
call fcn.00409f44
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x466832
xor eax, eax
push ebp
push 0x46682b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4668b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x466814
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404894
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x466814
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466832
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x466735
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420174
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466876
lea eax, [ebp - 0x260]
call fcn.00404624
ret

Function at 0x467200
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e8b7c]
cmp byte [eax + 0xa5], 0
jne 0x467271
cmp dword [0x4e8b94], 0
jne 0x467232
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4671bc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e8b94], eax
cmp dword [0x4e8b90], 0
jne 0x46724d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e8b90], eax
cmp dword [0x4e8b98], 0
jne 0x467271
push esp
push 0
push 0
push 0x467160
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4e8b98], eax
pop edx
ret
Function at 0x467904
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e8b7c]
cmp dword [eax + 0x30], 0
je 0x4679ae
cmp dword [ebx + 0x94], 0
jne 0x4679a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x467894
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4679a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46796e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4679a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041dd50
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46797d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46850c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x468541
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404714
jmp 0x46854e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404678
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x469708
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x469749
mov eax, esi
call fcn.0044f4cc
test al, al
je 0x469749
mov eax, dword [ebx + 0x84]
call fcn.0044f1c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x469749
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044f1c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48eb4c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x48eb71
cmp dword [esp + 4], 5
jb 0x48eb71
mov al, 1
jmp 0x48eb73
xor eax, eax
add esp, 0x94
ret
Function at 0x4c3f98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c41f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c3ffb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c3a60
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d99c
cmp al, 1
jne 0x4c3ffb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c3d78
test al, al
je 0x4c4187
cmp dword [ebp - 8], 0
jge 0x4c4019
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c3a60
mov eax, dword [ebp - 0x210]
call fcn.004048e4
cmp ebx, eax
jge 0x4c4063
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c3a60
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4e71b8]
and eax, 0xff
bt dword [edx], eax
jae 0x4c4063
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c4077
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c3f74
cmp ebx, dword [ebp - 8]
je 0x4c4179
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c40a3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403980
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e6990]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c4166
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403980
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e6990]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044f1c8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403980
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e6990]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044f1c8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c416d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c41da
cmp dword [ebp - 8], 0
jge 0x4c4192
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c3a60
mov eax, dword [ebp - 0x218]
call fcn.004048e4
cmp eax, dword [ebp - 8]
jg 0x4c41cc
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c3a60
mov eax, dword [ebp - 0x21c]
call fcn.004048e4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c3f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c41ff
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404648
ret
Function at 0x10004d50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov edi, dword [ebp + 8]
test byte [0x1000a05c], 8
jne 0x10004ef0
lea eax, [edi + 0x58]
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x48]
sub esp, 4
lea edx, [eax - 7]
cmp edx, 1
jbe 0x10004f6e
mov ecx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub eax, 1
mov dword [ebp - 0x18], ecx
cmp eax, 1
jbe 0x10004f20
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x28]
mov dword [ebp - 0x10], 0
lea ebx, [eax - 0x230]
cmp esi, eax
je 0x10004e83
mov dword [ebp + 8], edi
jmp 0x10004e08
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10004df8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x10004df8
mov dword [ebp - 0x10], 0x20001a
test byte [0x1000a05c], 4
jne 0x10004ea8
nop
lea esi, [esi]
mov eax, dword [ebx + 0x230]
lea ebx, [eax - 0x230]
cmp esi, eax
je 0x10004e80
cmp word [ebx + 0x28], 0
je 0x10004dc8
lea edi, [ebx + 0x28]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x10004dc8
mov dword [ebp - 0x10], 0x20001a
test byte [0x1000a05c], 4
je 0x10004dc8
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x34]
mov eax, edi
mov dword [ebp - 0x1c], ecx
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.Couldnt_delete__s___lu__n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.BackgroundCopyJob_Cancel
mov dword [esp + 4], 0x1000a05c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10004dc8
mov edi, dword [ebp + 8]
mov dword [edi + 0x48], 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov eax, dword [ebp - 0x10]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.Couldnt_delete__s___lu__n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.BackgroundCopyJob_Cancel
mov dword [esp + 4], 0x1000a05c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10004df8
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._p._n
mov dword [esp + 8], str.BackgroundCopyJob_Cancel
mov dword [esp + 4], 0x1000a05c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x10004d69
mov eax, dword [edi + 0x130]
mov dword [edi + 0x48], 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], esi
call eax
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [edi + 0x134]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp], esi
call ebx
sub esp, 4
jmp 0x10004da1
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0x80200002
mov dword [ebp - 0x18], eax
jmp 0x10004e8a
Function at 0x10004f90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
test byte [0x1000a05c], 8
jne 0x100050c0
lea eax, [esi + 0x58]
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x48]
sub esp, 4
sub eax, 7
cmp eax, 1
jbe 0x100050ed
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x28]
xor edi, edi
lea ebx, [eax - 0x230]
cmp edx, eax
je 0x10005095
mov ecx, edi
mov dword [ebp + 8], esi
mov edi, edx
jmp 0x10005009
mov ecx, 0x200017
mov eax, dword [ebx + 0x230]
lea ebx, [eax - 0x230]
cmp edi, eax
je 0x10005090
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10004ff0
mov dword [esp + 8], 0xb
mov eax, dword [ebx + 0xc]
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x10]
sub esp, 0xc
test eax, eax
jne 0x10004ff5
test byte [0x1000a05c], 2
je 0x10004ff0
mov eax, dword [ebx + 0xc]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [ebp - 0x10], eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0xc], str.Couldnt_rename_file__s_____s_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.BackgroundCopyJob_Complete
mov dword [esp + 4], 0x1000a05c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_4
jmp 0x10004ff0
mov esi, dword [ebp + 8]
mov edi, ecx
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x48], 7
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p._n
mov dword [esp + 8], str.BackgroundCopyJob_Complete
mov dword [esp + 4], 0x1000a05c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x10004fa9
mov edi, 0x80200002
jmp 0x10005095
Function at 0x100089a0
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 0x100089f8
cmp byte [esi + ebx - 1], 0xa
je 0x100089cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100190c4], 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 0x10009020
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 0x100091f8
mov edi, dword [0x100190c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10009107
test byte [0x1000a0d8], 8
jne 0x100091a0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1000a0e8], 8
jne 0x10009160
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 0x100090a9
cmp esi, 3
jbe 0x10009118
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 0x100090ba
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 + 0x1001485c]
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 0x100090a9
mov dword [esp], 0x1000a0e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10009080
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 0x10009080
mov dword [esp], 0x1000a0d8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000906b
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 0x10009073
mov eax, 0xffffffff
jmp 0x10009107