joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0x2e0
jne 0x1003a24b
cmp dword [0x10197978], 0xffffffff
je 0x1003a1ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [0x10197978]
cmp eax, 0x64
jae 0x1003a1af
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call sym.UserAndPayClient.dll_public_virtual:_long_int___thiscall_xx_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
jmp 0x1003a25f
mov ecx, dword [ebp - 0x10]
mov dword [0x10197978], ecx
jmp 0x1003a1c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10197978], eax
mov edx, dword [ebp + 0xc]
and edx, 0xffff
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x30
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CPaintManagerUI::SetDPI_int_
mov ecx, dword [ebp - 8]
add ecx, 0x30
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CPaintManagerUI::ResetDPIAssets_void_
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
push 0x14
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
sub ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 8]
add ecx, 0x30
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CControlUI____thiscall_xx_DuiLib::CPaintManagerUI::GetRoot_void_const
test eax, eax
je 0x1003a24b
mov ecx, dword [ebp - 8]
add ecx, 0x30
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CControlUI____thiscall_xx_DuiLib::CPaintManagerUI::GetRoot_void_const
mov ecx, eax
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CControlUI::NeedUpdate_void_
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call sym.UserAndPayClient.dll_public_virtual:_long_int___thiscall_xx_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d910
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1019142c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.mshtml.dll]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x1014a0c4]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x1014a0c8]
mov dword [ebp - 0x14], edx
mov eax, dword [0x1014a0cc]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x1014a0d0]
mov dword [ebp - 0xc], ecx
mov dx, word [0x1014a0d4]
mov word [ebp - 8], dx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1003da4e
mov edx, dword [ebp - 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1003da4e
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1003da44
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x1014a0d8
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1003da44
cmp dword [ebp - 0x30], 0
je 0x1003da44
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ddfee
mov esp, ebp
pop ebp
ret
Function at 0x10042cb0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.UserAndPayClient.dll_public:_static_void___cdecl_Talk2Svr::CTalk2Svr::CopyTwoTag_struct_tag_Check_Vip_Info___struct_tag_Check_Vip_Info__
add esp, 8
mov edx, dword [ebp - 4]
add edx, 0xd0
push edx
mov eax, dword [ebp - 4]
add eax, 0xb8
push eax
call fcn.10019b30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10042d17
mov edx, dword [ebp - 4]
add edx, 0xb8
push edx
mov eax, dword [ebp - 4]
add eax, 0xa0
push eax
call fcn.10019b70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10042d17
mov edx, dword [ebp - 4]
mov byte [edx + 0x2f9], 1
jmp 0x10042d21
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f9], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c4], 0
jne 0x10042d3f
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xc8
jne 0x10042da8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2f0], 0
jne 0x10042d6d
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2f0], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x1003f200
push 0
push 0
call fcn.100fb8d1
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], eax
push 0
push 0
push 0x5f4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2e4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esp, ebp
pop ebp
ret 4
Function at 0x10043660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x10042fd0
push 0
push 0
call fcn.100fb8d1
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2ec], eax
mov esp, ebp
pop ebp
ret

Function at 0x10043950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x1019142c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x830], 0
mov dword [ebp - 4], 1
mov al, byte [0x1014117b]
mov byte [ebp - 0x810], al
push 0x7ff
push 0
lea ecx, [ebp - 0x80f]
push ecx
call fcn.100db6b0
add esp, 0xc
mov ecx, dword [ebp - 0x82c]
add ecx, 0x32c
call fcn.10021de0
push eax
push 0x800
lea edx, [ebp - 0x810]
push edx
push 0x1014118d
lea ecx, [ebp + 0x24]
call fcn.10021de0
push eax
lea ecx, [ebp + 0xc]
call fcn.10021de0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp - 0x82c]
add ecx, 0x32c
call fcn.10021de0
push eax
lea ecx, [ebp + 0x24]
call fcn.10021de0
push eax
push str.strSubKey:_s___s_____s_n
call fcn.1001f8a0
add esp, 0x10
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x828]
call fcn.100213a0
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [ebp + 8]
call fcn.1001d860
mov eax, dword [ebp - 0x830]
or eax, 1
mov dword [ebp - 0x830], eax
lea ecx, [ebp - 0x828]
call fcn.10022960
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10022960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.10022960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ddfee
mov esp, ebp
pop ebp
ret 0x34
Function at 0x10044b80
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x274
call fcn.10021de0
push eax
push str.m_strQQ:_s
call fcn.1001f8a0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x274
call fcn.100185f0
movzx eax, al
test eax, eax
jne 0x10044bdc
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x274
call fcn.10021de0
push eax
push 0x1014ae00
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x10044c0a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c8], 0
je 0x10044c0a
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x10044b30
push 0
push 0
call fcn.100fb8d1
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c8], eax
mov esp, ebp
pop ebp
ret
Function at 0x1004ef70
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x1004ef93
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2e4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x10196f90
call fcn.100254f0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x1004bfb0
push 0
push 0
call fcn.100fb8d1
add esp, 0x18
mov dword [ebp - 8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1004fa50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x1004fa63
xor al, al
jmp 0x1004fb12
mov eax, dword [ebp + 8]
push eax
call fcn.1004fb20
add esp, 4
test eax, eax
jne 0x1004fa7a
xor al, al
jmp 0x1004fb12
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x40], 0
push 0x38
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.100db6b0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
call fcn.1004fb80
movzx edx, al
test edx, edx
je 0x1004fac3
mov dword [ebp - 0x34], 0x1014c73c
jmp 0x1004faca
mov dword [ebp - 0x34], str.runas
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1004faff
mov byte [ebp - 1], 1
jmp 0x1004fb03
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 2], al
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x1004fb80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1019142c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.100db6b0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004fc34
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x11c], 5
jne 0x1004fbf2
cmp dword [ebp - 0x120], 1
jne 0x1004fbf2
mov al, 1
jmp 0x1004fc36
cmp dword [ebp - 0x11c], 6
jne 0x1004fc08
cmp dword [ebp - 0x120], 0
jne 0x1004fc08
xor al, al
jmp 0x1004fc36
cmp dword [ebp - 0x11c], 6
jne 0x1004fc1e
cmp dword [ebp - 0x120], 1
jne 0x1004fc1e
xor al, al
jmp 0x1004fc36
cmp dword [ebp - 0x11c], 6
jne 0x1004fc34
cmp dword [ebp - 0x120], 2
jne 0x1004fc34
xor al, al
jmp 0x1004fc36
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ddfee
mov esp, ebp
pop ebp
ret
Function at 0x100559e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x100559f0
xor eax, eax
jmp 0x10055b8d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x10055b4e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x1014d2d8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x1014d2d8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x1014d2d8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x1014d2d8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x1014d2d8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x1014d2d8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x1014d2d8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x1014d2d8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x100559f9
cmp dword [ebp + 0x10], 0
je 0x10055b87
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x1014d2d8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x10055b54
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x10055b90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x1014d2d8]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x1014d2d8]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret

Function at 0x10056c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x10056cdf
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10056cd5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x10056d39
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x10056cff
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.100db130
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100585f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x1005860b
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
je 0x10058615
mov eax, 0x1000000
jmp 0x1005873b
mov edx, dword [ebp - 0x10]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
add eax, 0x244
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 0xa], ax
add dword [ebp - 0x14], 2
cmp word [ebp - 0xa], 0
jne 0x1005863e
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x24]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x100586af
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x100586af
mov ecx, dword [ebp - 0x10]
add ecx, 0x242
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx + 2]
mov word [ebp - 0xc], ax
add dword [ebp - 0x18], 2
cmp word [ebp - 0xc], 0
jne 0x1005868e
mov edi, dword [ebp - 0x18]
mov ecx, dword [0x1014cb9c]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x100586f3
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x100586d7
mov dword [ebp - 0x1c], 1
jmp 0x100586de
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x100586f3
mov eax, 0x2000000
jmp 0x1005873b
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10056950
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10058719
mov eax, dword [ebp - 0x30]
jmp 0x1005873b
mov eax, dword [ebp - 0x20]
push eax
call fcn.10057050
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jne 0x10058739
mov eax, 0x200
jmp 0x1005873b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10060b90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011eedd
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x1019142c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10196600]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x10197994]
cmp eax, dword [edx + 4]
jle 0x10060c32
push 0x10197994
call fcn.100de1a5
add esp, 4
cmp dword [0x10197994], 0xffffffff
jne 0x10060c32
mov dword [ebp - 4], 0
cmp dword [0x10197434], 0
jne 0x10060c06
mov byte [ebp - 0x19d], 0
jmp 0x10060c12
call dword [0x10197434]
mov byte [ebp - 0x19d], al
mov cl, byte [ebp - 0x19d]
mov byte [0x10197998], cl
mov dword [ebp - 4], 0xffffffff
push 0x10197994
call fcn.100de166
add esp, 4
movzx edx, byte [0x10197998]
test edx, edx
jne 0x10060d27
lea eax, [ebp - 0x118]
push eax
call sym.UserAndPayClient.dll_public:_static_class_xx_DuiLib::CDuiString___cdecl_xx_DuiLib::CPaintManagerUI::GetInstancePath_void_
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_void_
mov byte [ebp - 4], 2
push str.node.dll
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CDuiString___thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x94]
call fcn.10070f84
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10060ced
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
jmp 0x10060d27
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.100691c0
add esp, 4
call fcn.100691b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ddfee
mov esp, ebp
pop ebp
ret
Function at 0x10061950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10061983
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x100619d9
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10061f20
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.10061ec0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov esp, ebp
pop ebp
ret