joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f963
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x40f9de
push ebx
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40f905
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x40f9ba
push str.CreateThread_failed
push 0x435184
call fcn.00406c35
pop ecx
pop ecx
mov ecx, 0x435184
call fcn.00406b8d
push 2
mov ecx, 0x435184
call fcn.00406bc7
mov dword [edi], ebx
inc dword [esi + 0x84]
mov eax, dword [0x43ea44]
test eax, eax
je 0x40f9d4
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add edi, 4
cmp ebp, dword [esi]
jb 0x40f973
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x4161a7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4241bc
call fcn.00417dd8
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.0040a089
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.00411028
lea ecx, [esi + 0x98d0]
call fcn.00411a41
lea ecx, [esi + 0xe65c]
mov byte [ebp - 4], 5
call fcn.0040c4d3
push 1
lea ecx, [esi + 0xe694]
mov byte [ebp - 4], 6
call fcn.0040a089
lea eax, [esi + 0xe6a4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6b4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6c4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.0040f7dc
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6d8], ebx
mov dword [esi + 0xe6dc], ebx
call fcn.0041430a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41c84f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a4f0]
jne 0x41c859
repz ret
jmp fcn.00421e20
Function at 0x422b8c
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.0041c8d0
and dword [ebp - 4], 0
cmp dword [0x43f658], 0
mov ebx, eax
jne 0x422c3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422cee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422cee
push eax
call fcn.0041c85e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f658], eax
call esi
push eax
call fcn.0041c85e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f65c], eax
call esi
push eax
call fcn.0041c85e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43f660], eax
call esi
push eax
call fcn.0041c85e
pop ecx
mov dword [0x43f668], eax
test eax, eax
je 0x422c3d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c85e
pop ecx
mov dword [0x43f664], eax
mov eax, dword [0x43f664]
cmp eax, ebx
je 0x422c95
cmp dword [0x43f668], ebx
je 0x422c95
push eax
call fcn.0041c8d9
push dword [0x43f668]
mov esi, eax
call fcn.0041c8d9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422c95
test edi, edi
je 0x422c95
call esi
test eax, eax
je 0x422c8c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422c8c
test byte [ebp - 0xc], 1
jne 0x422c95
or dword [ebp + 0x10], 0x200000
jmp 0x422cce
mov eax, dword [0x43f65c]
cmp eax, ebx
je 0x422cce
push eax
call fcn.0041c8d9
pop ecx
test eax, eax
je 0x422cce
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422cce
mov eax, dword [0x43f660]
cmp eax, ebx
je 0x422cce
push eax
call fcn.0041c8d9
pop ecx
test eax, eax
je 0x422cce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f658]
call fcn.0041c8d9
pop ecx
test eax, eax
je 0x422cee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422cf0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002e13
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10002e64
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x10002e75
push 0xd
pop eax
jmp 0x10002ea2
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10002e78
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x1000352d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10002dd2
mov ebx, eax
cmp ebx, esi
je 0x1000359d
lea ecx, [ebp - 0x70]
call fcn.10002d5d
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100135dc
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100035b5
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000352d
cmp eax, esi
jne 0x100035e7
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x100035a5
lea ecx, [ebp - 0x70]
call fcn.10002d5d
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10002d02
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10002d5d
mov eax, esi
jmp 0x10003583
Function at 0x10005148
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100051b1
cmp dword [ebp + 0x10], 1
je 0x10005189
cmp dword [ebp + 0x10], 2
je 0x10005189
push 0xd
pop eax
jmp 0x100051b1
mov eax, dword [ebp - 4]
test edi, edi
je 0x100051ab
test eax, eax
je 0x100051a6
test al, 1
jne 0x10005184
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x100051ab
jmp 0x10005184
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x100053d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareKuaiZipKuaiZipInterface
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000546d
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push str.FixAssoc
push dword [ebp - 4]
mov dword [ebp - 8], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1000546d
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10005350
lea eax, [ebp - 0x20]
push eax
call fcn.1000524c
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sbb eax, dword [ebp - 0xc]
push 0
push 0x15180
push eax
push ecx
call fcn.10014150
test edx, edx
jl 0x10005469
jg 0x1000546d
cmp eax, 7
jae 0x1000546d
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x10005b80
Capabilities:
Terminate thread

Disassembly:
push 0
push dword [0x10034260]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x10034260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x1000763f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
mov ecx, 0x10034208
call fcn.10007517
mov dword [ebp - 0x74], eax
test eax, eax
jl 0x100077a7
and dword [ebp - 0x70], 0
and dword [ebp - 0x6c], 0
push ebx
push esi
push edi
mov ebx, 0x2001f
push ebx
push str._shellexContextMenuHandlers_
push SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.10002dd2
mov edi, str.KuaiyaShlExt
mov esi, str.KuaiZipShlExt
test eax, eax
jne 0x100076cb
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100076ad
cmp eax, 2
jne 0x10007700
push edi
lea ecx, [ebp - 0x70]
call fcn.10002d02
push esi
lea ecx, [ebp - 0x70]
call fcn.10002d02
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100076cb
cmp eax, 2
jne 0x10007700
push ebx
push str.directory_shellexContextMenuHandlers_
push SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.10002dd2
test eax, eax
jne 0x10007710
push edi
lea ecx, [ebp - 0x70]
call fcn.10002d02
push esi
lea ecx, [ebp - 0x70]
call fcn.10002d02
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10007710
cmp eax, 2
je 0x10007710
lea ecx, [ebp - 0x70]
call fcn.10002d5d
mov eax, dword [ebp - 0x74]
jmp 0x100077a4
push ebx
push str.drive_shellexContextMenuHandlers_
mov ebx, SysReAllocString
push ebx
lea ecx, [ebp - 0x70]
call fcn.10002dd2
test eax, eax
jne 0x10007747
push edi
lea ecx, [ebp - 0x70]
call fcn.10002d02
push esi
lea ecx, [ebp - 0x70]
call fcn.10002d02
mov esi, eax
test esi, esi
je 0x1000774a
cmp esi, 2
je 0x1000774a
jmp 0x1000779a
mov esi, dword [ebp - 0x74]
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0x1002a968
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test ebx, eax
jne 0x1000779a
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
push 2
push str.SOFTWAREMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x78]
call fcn.10002dd2
test eax, eax
jne 0x10007792
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x78]
call fcn.10002d5d
lea ecx, [ebp - 0x70]
call fcn.10002d5d
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100135dc
leave
ret
Function at 0x10007dcf
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f0]
sub esp, 0x470
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x3ec], eax
mov eax, dword [ebp + 0x3f8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x3fc]
push edi
mov dword [ebp - 0x7c], eax
push ecx
lea eax, [ebp + 0x1e4]
push eax
mov dword [ebp - 0x74], ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x1002a2a0
lea eax, [ebp + 0x1e4]
push eax
call edi
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.10013370
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x10007e5a
xor eax, eax
jmp 0x10007ece
mov dword [ebp - 0x70], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1002a29c
lea eax, [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x10007ea8
push 0x1002a294
lea eax, [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x10007ea8
test byte [ebp - 0x6c], 0x10
jne 0x10007ea8
mov ebx, dword [ebp - 0x74]
push dword [ebp - 0x74]
add ebx, 0x410
push ebx
call esi
lea eax, [ebp - 0x40]
push eax
push ebx
call edi
push ebx
push dword [ebp - 0x7c]
call dword [ebp - 0x80]
test eax, eax
jne 0x10007ebb
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007e5d
jmp 0x10007ec2
mov dword [ebp - 0x70], 1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x3ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100135dc
add ebp, 0x3f0
leave
ret 8

Function at 0x100084d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push esi
push edi
push 0x104
mov esi, ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.Lang
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov word [esi + 0x410], ax
lea edi, [esi + 0x208]
mov word [edi], ax
push 0x10029400
mov eax, str.KuaiZip
push eax
push eax
lea eax, [ebp - 0x74]
push str.software_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
lea eax, [ebp - 0x74]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008595
push ebx
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x80]
push eax
push 0
push str.LangModule
push ebx
mov dword [ebp - 0x78], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test ebx, ebx
je 0x10008594
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100135dc
add ebp, 0x198
leave
ret 4
Function at 0x10009f51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push dword [esp + 0x10]
push esi
push dword [0x100342ac]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call edi
push esi
call edi
push 1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
cmp word [esp + 0x14], 0x6d
jne 0x10009fb3
call fcn.10027920
test al, al
je 0x10009f99
push 0x1002a5a0
jmp 0x10009f9e
push 0x1002a598
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.KZMount.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x10009fc9
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x1002a598
push esi
call edi
push 0x100299e4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
ret
Function at 0x1000b423
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.2BBED632_A496_44b6_B4D3_DF7F33C1DA00_FileMap
push 0
push 6
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000b43e
pop esi
ret
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret

Function at 0x1000bb97
Capabilities:
Get disk information

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1000bbab
mov eax, dword [esp + 8]
ret
cmp eax, 4
mov eax, dword [esp + 0xc]
je 0x1000bbb8
mov eax, dword [esp + 0x10]
ret
Function at 0x1000d2b0
Capabilities:
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push edi
mov edi, dword [ebp + 0x1a4]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
mov esi, ecx
mov dword [ebp - 0x7c], ebx
call fcn.10013370
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x78]
push eax
call edi
xor eax, eax
cmp ax, word [ebp - 0x78]
jne 0x1000d31c
push 0x104
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.1000d151
cmp dword [esi + 0x2a4], 0
je 0x1000d346
push str.Archive
lea ecx, [ebp - 0x80]
call fcn.1000c01b
push dword [ebp - 0x80]
push ebx
call edi
push dword [ebp - 0x80]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1000d41c
lea ebx, [esi + 0x38]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jbe 0x1000d3e4
cmp dword [esi + 0x1c], 8
jb 0x1000d369
mov eax, dword [esi + 8]
jmp 0x1000d36c
lea eax, [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [esi + 0x1c], 8
jb 0x1000d37e
mov esi, dword [esi + 8]
jmp 0x1000d381
add esi, 8
cmp eax, esi
jne 0x1000d3d3
push 0
mov ecx, ebx
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x1000d399
mov eax, dword [eax + 4]
jmp 0x1000d39c
add eax, 4
push eax
push dword [ebp - 0x7c]
call edi
push 0
mov ecx, ebx
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x1000d3b6
mov eax, dword [eax + 4]
jmp 0x1000d3b9
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1000d41c
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x1000d41c
jmp 0x1000d417
push eax
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x1000d41c
push 0
mov ecx, ebx
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x1000d3f8
mov eax, dword [eax + 4]
jmp 0x1000d3fb
add eax, 4
push eax
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1000d41c
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 0x190]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.100135dc
add ebp, 0x194
leave
ret 0xc
Function at 0x1000d696
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x18
mov eax, 0x100284e2
call fcn.10013a45
mov eax, dword [ebp + 0x438]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x14]
mov edi, ecx
mov ecx, dword [ebp + 0x440]
add eax, eax
mov dword [ebp - 0x20], ecx
cmp eax, 0xbb8
jae 0x1000d6e2
xor eax, eax
inc eax
jmp 0x1000d84c
xor eax, eax
push 0x206
mov word [ebp + 0x224], ax
xor ebx, ebx
lea eax, [ebp + 0x226]
push ebx
push eax
call fcn.10013370
add esp, 0xc
lea eax, [ebp + 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.QZTMP
lea eax, [ebp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push str.w__ccsUNICODE
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100172d6
add esp, 0xc
cmp dword [ebp - 0x14], ebx
jne 0x1000d75a
xor eax, eax
jmp 0x1000d84c
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x1000d7e9
add edi, 0x50
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.1000c099
mov ecx, dword [ebp + 0x43c]
test dword [eax], ecx
je 0x1000d7e3
push ebx
mov ecx, esi
call fcn.1000be6a
push eax
lea ecx, [ebp]
call fcn.10008bd0
and dword [ebp - 4], 0
push 0x1002abb8
lea ecx, [ebp]
call fcn.1000a5fa
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1000d7ba
lea eax, [ebp + 4]
push dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
push edi
push 2
push eax
call fcn.1001718e
add esp, 0x10
cmp eax, edi
jne 0x1000d7d3
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp]
call fcn.100015a0
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x1000d779
push dword [ebp - 0x14]
call fcn.10016fb0
pop ecx
test eax, eax
jne 0x1000d753
cmp dword [ebp - 0x10], eax
je 0x1000d753
push 0x1003435c
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x20]
xor edi, edi
lea eax, [ebp - 0x10]
push str.___s_s_
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.100057f9
mov ecx, dword [ebp - 0x18]
add esp, 0x10
call fcn.1000cfa7
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.1000a5fa
lea ecx, [esi - 0x10]
call fcn.100051b7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.100135dc
add ebp, 0x430
leave
ret 0xc
Function at 0x1000e154
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x634
lea ebp, [esp - 4]
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x634], eax
push 0xc
mov eax, 0x100285e7
call fcn.10013a45
mov edi, dword [ebp + 0x640]
mov esi, dword [ebp + 0x644]
mov dword [ebp - 0x18], ecx
push 0
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.100014c0
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea eax, [ebp]
push eax
call fcn.1000d623
mov ecx, dword [ebp - 0x18]
push 0x1002ac38
push 0xffffffffffffffff
lea eax, [ebp]
push eax
call fcn.1000d696
mov ecx, edi
test eax, eax
jne 0x1000e1fd
call fcn.1000cfa7
xor esi, esi
push 0
push 1
lea ecx, [ebp]
call fcn.100015a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x634]
xor ecx, ebp
call fcn.100135dc
add ebp, 0x638
leave
ret 8
push 0x1002ac58
call fcn.10001440
push str._ieml.
mov ecx, edi
call fcn.1000a5fa
mov ebx, 0x1003435c
push ebx
lea ecx, [ebp - 0x10]
call fcn.10005472
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
test esi, esi
je 0x1000e23d
push esi
push str.______s_
push eax
call fcn.100057f9
add esp, 0xc
jmp 0x1000e24a
push str.___
push eax
call fcn.100057f9
pop ecx
pop ecx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.1000a5fa
lea eax, [ebp + 0x1c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x42c]
push eax
push 0
push 0x1002ac60
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov word [eax], cx
push ebx
lea ecx, [ebp - 0x14]
call fcn.10005472
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.1000a91c
push dword [ebp - 0x14]
lea eax, [ebp + 0x42c]
push esi
push eax
call fcn.100160e1
add esp, 0x10
push 0
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x18]
push 0
push esi
lea eax, [ebp + 0x224]
push eax
call fcn.1000d2b0
lea eax, [ebp + 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x42c]
push eax
call fcn.10009e9e
pop ecx
mov ecx, edi
test eax, eax
je 0x1000e324
mov esi, 0x1002a5ec
push esi
call fcn.1000a5fa
lea eax, [ebp + 0x42c]
push eax
mov ecx, edi
call fcn.1000a5fa
push esi
mov ecx, edi
jmp 0x1000e32b
lea eax, [ebp + 0x42c]
push eax
call fcn.1000a5fa
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1000e33c
lea eax, [ebp + 4]
push eax
push edi
call fcn.1000d5bf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100051b7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100051b7
xor esi, esi
inc esi
jmp 0x1000e1ca