joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba90
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b908
mov eax, dword [0x4d5e9c]
cmp byte [eax], 0
je 0x40bb0c
mov eax, dword [0x4d5cac]
call fcn.00403058
call fcn.00402df8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b28
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bb54
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb42
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d5c54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d87f4]
call fcn.00405898
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c3a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c476
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404734
lea eax, [ebp - 4]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c460
mov eax, ebx
call fcn.00402c9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c459
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c443
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c488
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c443
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c460
mov eax, dword [ebp - 0x10]
call fcn.00402cb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c47d
lea eax, [ebp - 4]
call fcn.0040469c
ret
Function at 0x41afc4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d9300
cmp dword [edi], 0
jne 0x41b040
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d92fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x457ad8
mov ecx, 2
call fcn.00402e8c
mov edx, 0x41af9c
lea eax, [esi + 5]
call fcn.0041afbc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041afbc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b015
mov dword [0x4d92fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d564
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d5bc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d5fbc]
mov dl, 1
mov eax, dword [0x41d088]
call fcn.0040bc50
call fcn.004040e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d190
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e418
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e41e
ret
Function at 0x431a74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4d9534], 0
je 0x431bbd
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4d5e3c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x431bbd
mov eax, dword [0x4d9538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4d9534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x431b8c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4d9534]
call fcn.004140ac
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431b84
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x431b84
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x431b84
mov eax, dword [ebp - 0x14]
call fcn.0043bc98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431b84
push ebp
call fcn.00431a30
pop ecx
test al, al
jne 0x431b84
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a84
test al, al
je 0x431b84
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403a84
cmp byte [ebp - 1], 0
je 0x431b84
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x431b84
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4d9538]
call fcn.004311a0
inc edi
dec ebx
jne 0x431ad9
mov eax, dword [0x4d9538]
cmp dword [eax + 8], 0
jle 0x431ba4
mov eax, dword [0x4d9538]
call fcn.00431258
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431bbd
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00431894
pop ecx
test al, al
jne 0x431bbd
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440d7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d5fb0]
cmp byte [eax + 0xc], 0
je 0x440ee9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440ee2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d9544], 0
jne 0x440dd0
push 0x440ef0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440ef8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9544], eax
cmp dword [0x458574], 0
jne 0x440ecb
push 0x440f08
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458574], eax
cmp dword [0x458574], 0
je 0x440ecb
push 0x440f14
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9548], eax
push 0x440f24
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d954c], eax
push 0x440f38
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9550], eax
push 0x440f50
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9554], eax
push 0x440f68
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9558], eax
push 0x440f7c
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d955c], eax
push 0x440f94
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9560], eax
push 0x440fac
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9564], eax
push 0x440fc8
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9568], eax
push 0x440fd4
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d956c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440ee9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x446584]
test si, 4
je 0x446545
or bl, 1
test si, 8
je 0x44654f
or bl, 4
test si, 1
je 0x446559
or bl, 8
test si, 2
je 0x446563
or bl, 0x10
test si, 0x10
je 0x44656d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44657c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x446588
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4465c4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4465a2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4465b1
or bl, 4
test esi, 0x20000000
je 0x4465bc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dc78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dc8a
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f04
mov eax, dword [0x4d5c5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e01c
mov eax, dword [0x4d5c68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e028
mov eax, ebx
call fcn.0044e034
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
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, 0x449acc
push eax
push 0
push 0
mov eax, dword [0x4d5dc4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41da78]
call fcn.0041ef98
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41da78]
call fcn.0041ef98
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41da78]
call fcn.0041ef98
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e464
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e334
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e334
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e334
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ddc7
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ee80
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ee97
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f04
mov eax, dword [0x4d5da8]
cmp word [eax + 2], 0
jne 0x44eebf
mov eax, dword [0x4d5da8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450930
mov eax, dword [0x4d5e58]
cmp word [eax + 2], 0
jne 0x44eed9
mov eax, dword [0x4d5e58]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450b3c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411d00]
call fcn.00403858
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e254]
call fcn.0042409c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44f090
mov eax, dword [0x4d5cc4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424470
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4511fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d5cc4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c8bc
test eax, eax
je 0x44efe0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b64
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8f0
test eax, eax
je 0x44eff4
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
mov byte [ebx + 0xd4], 0
push ebx
push 0x450490
call fcn.0041b080
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4d5bbc]
cmp byte [eax], 0
jne 0x44f045
mov eax, ebx
call fcn.0044f1d4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004513d8
mov eax, ebx
call fcn.00451f38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f085
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459030]
jne 0x40107a
repz ret
jmp fcn.00401ac1

Function at 0x409195
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404bf5
and dword [ebp - 4], 0
cmp dword [0x45b794], 0
mov ebx, eax
jne 0x409246
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4092f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4092f7
push eax
call fcn.00404b83
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45b794], eax
call esi
push eax
call fcn.00404b83
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45b798], eax
call esi
push eax
call fcn.00404b83
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45b79c], eax
call esi
push eax
call fcn.00404b83
pop ecx
mov dword [0x45b7a4], eax
test eax, eax
je 0x409246
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b83
pop ecx
mov dword [0x45b7a0], eax
mov eax, dword [0x45b7a0]
cmp eax, ebx
je 0x40929e
cmp dword [0x45b7a4], ebx
je 0x40929e
push eax
call fcn.00404bfe
push dword [0x45b7a4]
mov esi, eax
call fcn.00404bfe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40929e
test edi, edi
je 0x40929e
call esi
test eax, eax
je 0x409295
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409295
test byte [ebp - 0xc], 1
jne 0x40929e
or dword [ebp + 0x10], 0x200000
jmp 0x4092d7
mov eax, dword [0x45b798]
cmp eax, ebx
je 0x4092d7
push eax
call fcn.00404bfe
pop ecx
test eax, eax
je 0x4092d7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4092d7
mov eax, dword [0x45b79c]
cmp eax, ebx
je 0x4092d7
push eax
call fcn.00404bfe
pop ecx
test eax, eax
je 0x4092d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45b794]
call fcn.00404bfe
pop ecx
test eax, eax
je 0x4092f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4092f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b010
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x2c3901c]
sub esp, 0x1c
push ebx
mov ebx, dword [0x2c38e68]
push esi
mov esi, dword [0x459f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b040
push 0x457948
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c3901c]
mov dword [0x45b8f4], esi
cmp eax, 0x114e
jne 0x40b06e
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
lea eax, [esp + 0xc]
push eax
push str.liyezejozonoduhu
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2c3901c]
cmp eax, 0x2f
jne 0x40b08b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call fcn.0040af50
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x66c8e180
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
test byte [0x66cdf8c8], 8
jne 0x66c8e1b8
mov eax, dword [ebx]
test eax, eax
je 0x66c8e1ab
mov edx, dword [ebx + 4]
mov eax, 0xffffffff
lock xadd dword [edx], eax
cmp eax, 1
je 0x66c8e1e8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x66ce9000
mov dword [esp + 8], str.__ExceptionPtrDestroy
mov dword [esp + 4], 0x66cdf8c8
mov dword [esp], 3
call fcn.66c8c800
jmp 0x66c8e194
mov eax, dword [ebx]
cmp dword [eax], 0xe06d7363
je 0x66c8e240
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebx + 4]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov edx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
test edx, edx
je 0x66c8e255
mov eax, dword [edx + 4]
test eax, eax
je 0x66c8e255
mov ecx, esi
call 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 sub.kernel32.dll_HeapFree
mov eax, dword [ebx]
sub esp, 0xc
jmp 0x66c8e1f2

Function at 0x66c933b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0xbc
test byte [0x66ce1808], 8
jne 0x66c93490
cmp byte [esi + 0x3d], 0
mov eax, 1
je 0x66c93433
mov edx, dword [esi + 0x38]
test edx, edx
je 0x66c93433
mov eax, dword [esi]
mov ecx, esi
mov dword [esp], 0xffffffff
call dword [eax + 0xc]
mov ecx, eax
sub esp, 4
xor eax, eax
cmp ecx, 0xffffffff
je 0x66c93433
lea edi, [esi + 0x40]
lea ebx, [ebp - 0x98]
lea eax, [ebp - 0x9c]
mov dword [esp + 4], ebx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp], edi
call sym.msvcp140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const
sub esp, 0x10
cmp eax, 1
je 0x66c93444
cmp eax, 3
je 0x66c93471
test eax, eax
je 0x66c93440
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esi + 0x3d], 0
mov eax, dword [esi + 0x4c]
mov dword [esp + 8], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9c]
sub eax, ebx
mov dword [esp + 4], eax
call sub.ucrtbase.dll_fwrite
test eax, eax
je 0x66c93431
cmp byte [esi + 0x3d], 0
jne 0x66c93400
mov eax, dword [esi]
mov ecx, esi
mov dword [esp], 0xffffffff
call dword [eax + 0xc]
sub esp, 4
cmp eax, 0xffffffff
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x66ce9fe2
mov dword [esp + 8], str.basic_filebuf_char__Endwrite
mov dword [esp + 4], 0x66ce1808
mov dword [esp], 3
call fcn.66c8edb0
jmp 0x66c933cb
Function at 0x66c949f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0xbc
test byte [0x66ce1808], 8
jne 0x66c94ad8
cmp byte [esi + 0x3e], 0
mov eax, 1
je 0x66c94a74
mov edx, dword [esi + 0x38]
test edx, edx
je 0x66c94a74
mov eax, dword [esi]
mov ecx, esi
mov dword [esp], 0xffff
call dword [eax + 0xc]
mov ecx, eax
sub esp, 4
xor eax, eax
cmp cx, 0xffff
je 0x66c94a74
lea edi, [esi + 0x40]
lea ebx, [ebp - 0x98]
lea eax, [ebp - 0x9c]
mov dword [esp + 4], ebx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp], edi
call sym.msvcp140.dll_public:_int___thiscall_std::codecvt_unsigned_short_int__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const
sub esp, 0x10
cmp eax, 1
je 0x66c94a84
cmp eax, 3
je 0x66c94ab1
test eax, eax
je 0x66c94a80
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esi + 0x3e], 0
mov eax, dword [esi + 0x4c]
mov dword [esp + 8], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9c]
sub eax, ebx
mov dword [esp + 4], eax
call sub.ucrtbase.dll_fwrite
test eax, eax
je 0x66c94a72
cmp byte [esi + 0x3e], 0
jne 0x66c94a41
mov eax, dword [esi]
mov ecx, esi
mov dword [esp], 0xffff
call dword [eax + 0xc]
sub esp, 4
cmp ax, 0xffff
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x66ce9fe2
mov dword [esp + 8], str.basic_filebuf_wchar__Endwrite
mov dword [esp + 4], 0x66ce1808
mov dword [esp], 3
call fcn.66c8edb0
jmp 0x66c94a0b
Function at 0x66cae620
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
test byte [0x66ce1808], 8
jne 0x66cae658
mov dword [esp], ebx
call sub.kernel32.dll_DeleteFileW
mov edx, eax
sub esp, 4
xor eax, eax
test edx, edx
jne 0x66cae64f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ebx, dword [ebp - 4]
leave
ret
mov edx, 0xffffffff
mov eax, ebx
call fcn.66c8e860
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.tr2_sys__Unlink_wchar
mov dword [esp + 4], 0x66ce1808
mov dword [esp], 3
call fcn.66c8edb0
jmp 0x66cae633

Function at 0x66caeed0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x66ce1808], 8
jne 0x66caefa0
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x120116
mov dword [esp], eax
call sub.kernel32.dll_CreateFileW
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x66caef63
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.kernel32.dll_SetFilePointerEx
sub esp, 0x14
mov dword [esp], ebx
test eax, eax
jne 0x66caef78
call sub.kernel32.dll_CloseHandle
sub esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_SetEndOfFile
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call sub.kernel32.dll_CloseHandle
sub esp, 4
test esi, esi
je 0x66caef63
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
jne 0x66caeff8
mov dword [esp + 4], edi
mov dword [esp], 0x66cea02a
call fcn.66c8e7a0
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, 0xffffffff
call fcn.66c8e860
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x66cea2a0
mov dword [esp + 8], str._Resize
mov dword [esp + 4], 0x66ce1808
mov dword [esp], 3
call fcn.66c8edb0
jmp 0x66caeeec
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], str._lx_08lx
call fcn.66c8e7a0
mov ebx, eax
jmp 0x66caefb6

Function at 0x66caf310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
test byte [0x66ce1808], 8
jne 0x66caf348
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, dword [ebp - 4]
sub esp, 8
test eax, eax
leave
setne al
movzx eax, al
ret
mov edx, 0xffffffff
mov eax, ebx
call fcn.66c8e860
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._Current_get
mov dword [esp + 4], 0x66ce1808
mov dword [esp], 3
call fcn.66c8edb0
jmp 0x66caf323