joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100108f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a72f
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x428], edi
lea ecx, [edi + 0x18]
mov dword [ebp - 0x42c], edi
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.10013270
lea ecx, [edi + 0x4f0]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.10013270
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x208
lea ebx, [edi + 0xe0]
push 0
push ebx
call fcn.10033470
add esp, 0xc
lea eax, [edi + 0x2e8]
push 0x208
push 0
push eax
call fcn.10033470
add esp, 0xc
mov dword [edi + 0x7c0], 0
call fcn.100111f0
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push ebx
push 0
push 0
test eax, eax
je 0x100109b9
push 0x2a
jmp 0x100109bb
push 0x26
push 0
call esi
push str.DSOCCommoncfg.xml
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call ebx
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10033470
add esp, 0xc
call fcn.100111f0
test eax, eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
je 0x100109fb
push 0x2a
jmp 0x100109fd
push 0x26
push 0
call esi
lea eax, [ebp - 0x21c]
push eax
lea esi, [edi + 0x5b8]
push 0x104
push esi
call fcn.1004304a
add esp, 0xc
push str.DSOCCommonXGResource.xml
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a8
je 0x10010a6c
cmp eax, 0x3b6
je 0x10010a6c
push str.DSOCCommonXGResource_English.xml
lea eax, [ebp - 0x21c]
push eax
call ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010a6c
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.1004304a
add esp, 0xc
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [edi + 0x2e8]
push str._scfg_d.xml
push eax
call fcn.10010e20
add esp, 0x10
mov ecx, edi
call fcn.10010bb0
mov ecx, edi
call fcn.10010d40
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 - 0x14]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10010bb0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea edx, [esi + 0xe0]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10010bc7
sub edx, ecx
sar edx, 1
jne 0x10010c0a
mov ecx, dword [esi + 0x7c0]
test ecx, ecx
je 0x10010d25
push str.CfgXml_file_path_is_null_failed_
push str.CCfgXmlMgr::LoadCfgXmlData
push ecx
call fcn.10011390
lea eax, [esi + 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x18]
call fcn.10013300
lea ecx, [esi + 0x18]
call fcn.10013270
push 0
lea edi, [esi + 0x2e8]
push edi
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10010c73
mov eax, dword [esi + 0x7c0]
test eax, eax
je 0x10010d25
push edi
push str.config_:_s_is_not_exist__error_
push str.CCfgXmlMgr::LoadCfgXmlData
push 0xa
push eax
call fcn.100114f0
add esp, 0x14
lea eax, [esi + 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push edi
call fcn.10019da0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10010cd1
cmp dword [esi + 0x7c0], eax
je 0x10010d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.XG_ReadFileByVKey:_s_failed__error:_d_
push str.CCfgXmlMgr::LoadCfgXmlData
push 0xa
push dword [esi + 0x7c0]
call fcn.100114f0
add esp, 0x18
lea eax, [esi + 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
sub esp, 8
lea eax, [esp + 0x24]
lea ecx, [esi + 0x18]
push dword [esp + 0x20]
push ebx
push eax
call fcn.10013370
cmp dword [esp + 0x14], 0
je 0x10010d1c
cmp dword [esi + 0x7c0], 0
je 0x10010d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.m_docCfgXml.load_buffer:__s_failed__error:_d_
push str.CCfgXmlMgr::LoadCfgXmlData
push 0xa
push dword [esi + 0x7c0]
call fcn.100114f0
add esp, 0x18
push ebx
call fcn.1001bce1
add esp, 4
lea eax, [esi + 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010e40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78c
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x780
lea eax, [ebp - 0x78c]
push 0
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x78c]
push 0x3c0
push eax
call fcn.10010860
add esp, 0x14
lea eax, [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
Function at 0x10011000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.100043e0
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov ecx, dword [esi]
push 0
push 0
push dword [esi + 4]
or ecx, 2
push ecx
call fcn.10039e1c
mov edi, eax
add esp, 0x1c
or eax, 0xffffffff
mov edx, 2
test edi, edi
cmovs edi, eax
xor ecx, ecx
inc edi
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001c3b1
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call fcn.10033470
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push edi
push edi
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.10039dad
mov eax, dword [ebp + 8]
add esp, 0x20
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10011082
sub eax, edx
lea esi, [edi + 0x10]
sar eax, 1
xor ecx, ecx
add esi, eax
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001c3b1
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10033470
add esp, 0xc
push ebx
push dword [ebp + 8]
push str.__s____s__r_n
push esi
push edi
call fcn.10010eb0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x100110e6
push ebx
call fcn.1001bce1
add esp, 4
test edi, edi
je 0x100110f3
push edi
call fcn.1001bce1
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100112a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x1001137c
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100112c3
sub edx, ecx
sar edx, 1
je 0x1001137c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100112f7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10033470
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011312
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push esi
push 0x104
push eax
call fcn.1004317b
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1001137c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10011364
lea ecx, [ebp - 0x20c]
call fcn.100112a0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
Function at 0x100116f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x208
lea esi, [ecx + 0x1c]
push 0
push esi
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x624]
push 0x208
push 0
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x624]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x634]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x634], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.10033470
movzx eax, word [ebp - 0x62e]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x632]
push eax
movzx eax, word [ebp - 0x634]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push eax
push str._sDGLogFile_s_04d__02d__02d
lea eax, [ebp - 0x214]
push 0x103
push eax
call fcn.10010eb0
add esp, 0x20
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10011842
lea ecx, [ebp - 0x214]
call fcn.100112a0
test eax, eax
jne 0x10011842
push 0x208
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.1004304a
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
push str._s_s.log
push 0x103
push esi
call fcn.10010eb0
mov ecx, dword [ebp - 8]
add esp, 0x14
xor ecx, ebp
pop esi
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret 4
Function at 0x10011880
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push ecx
mov esi, ecx
call fcn.100116f0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x1001192a
test eax, eax
je 0x1001192a
lea ecx, [ebp - 8]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 4], 0
mov eax, dword [esi + 0x63c]
jl 0x1001191f
jg 0x100118de
cmp dword [ebp - 8], eax
jb 0x1001191f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100118f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x1001192a
test eax, eax
je 0x1001192a
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CreateFile:_s_failed__error:_d.
push str.CLogFile::InitLogFile
call fcn.10011000
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10011950
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.10033470
add esp, 0xc
call fcn.100111f0
test eax, eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
je 0x10011995
push 0x2a
jmp 0x10011997
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.DSOC
push eax
call esi
push str.LogConfig.ini
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011a2c
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x20c]
push eax
push 0xa
push str.LogLevel
push str.LogConfig
call esi
mov dword [edi + 0x638], eax
lea eax, [ebp - 0x20c]
push eax
push 7
push str.HistroyInternalDay
push str.LogConfig
call esi
mov dword [edi + 0x640], eax
lea eax, [ebp - 0x20c]
push eax
push 0xa
push str.SingleLogFileMaxSize
push str.LogConfig
call esi
shl eax, 0x14
mov dword [edi + 0x63c], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
Function at 0x10011a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 2
push 0
xorps xmm0, xmm0
mov edi, ecx
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10011aa8
mov ecx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 8], 0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10011a78
push 0
lea eax, [ebp - 8]
sub esi, edx
push eax
push esi
push ecx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10011aa8
cmp esi, dword [ebp - 8]
jne 0x10011aa8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10013020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x1001304a
mov dword [edi + 8], ebx
mov eax, edi
mov dword [edi], 1
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, ebx
call fcn.10012fb0
mov esi, eax
test esi, esi
je 0x10013083
push ebx
call fcn.1003732f
add esp, 4
mov dword [edi + 8], 0
mov dword [edi], esi
mov eax, edi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, 1
test esi, esi
cmovne eax, esi
push eax
call fcn.10041be7
add esp, 4
mov dword [ebp - 4], eax
push ebx
test eax, eax
jne 0x100130c6
call fcn.1003732f
add esp, 4
mov dword [edi + 8], 0
mov dword [edi], 3
mov eax, edi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push eax
call fcn.1003a035
push ebx
mov esi, eax
call fcn.1003732f
mov eax, dword [ebp + 8]
add esp, 0x14
cmp esi, eax
je 0x10013109
push dword [ebp - 4]
call fcn.10039e64
add esp, 4
mov dword [edi + 8], 0
mov dword [edi], 2
mov eax, edi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 1
push 1
sub esp, 8
push eax
push dword [ebp - 4]
push edi
call fcn.10013370
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100139f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a770
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
and dword [ebp - 0x30], 0xfffffe00
mov dword [ebp - 0x2c], 0
push 0x100700f0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.100097e0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
sub esp, 8
lea ecx, [ebp - 0x38]
push str.type
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.10009b00
push esi
sub esp, 8
lea ecx, [ebp - 0x38]
push str.data
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000a920
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0x18]
push eax
push str.OperateAuthorizeFileSql
call fcn.10001020
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 0x10
jb 0x10013af7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10013aed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013b2d
push edx
push ecx
call fcn.1001bf11
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10009b00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
call fcn.10041b97
int3
Function at 0x100145b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a94b
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push esi
push eax
call fcn.10033470
add esp, 0xc
call fcn.100111f0
test eax, eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
je 0x1001461e
push 0x2a
jmp 0x10014620
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._sDSOCCOMMONClientState.xml
push eax
call fcn.10010e20
add esp, 0xc
mov dword [ebp - 0x4e8], esi
lea ecx, [ebp - 0x4e8]
mov dword [ebp - 0x4e4], esi
call fcn.10013270
lea ecx, [ebp - 0x4e8]
mov dword [ebp - 4], 0
call fcn.10013300
lea ecx, [ebp - 0x4e8]
call fcn.10013270
lea eax, [ebp - 0x420]
push 0x100700a0
push eax
call fcn.1004386b
push eax
lea edx, [ebp - 0x4e8]
lea ecx, [ebp - 0x4fc]
call fcn.10013020
add esp, 0xc
cmp dword [ebp - 0x4fc], 0
jne 0x100146f6
push str.LoginState
lea eax, [ebp - 0x4ec]
push eax
push str.ClientState
lea eax, [ebp - 0x4f0]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.10013130
mov ecx, eax
call fcn.10013130
mov eax, dword [ebp - 0x4ec]
test eax, eax
je 0x100146f6
lea ecx, [ebp - 0x4ec]
mov dword [ebp - 0x4ec], eax
call fcn.10013210
push eax
call fcn.10042ff6
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x4e8]
call fcn.10013300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
Function at 0x10014720
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a98b
mov eax, dword fs:[0]
push eax
sub esp, 0x6f8
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.SDK_GetWorkMode
call edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x208
push esi
push eax
call fcn.10033470
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push esi
push eax
call fcn.10033470
add esp, 0xc
call fcn.100111f0
test eax, eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
je 0x100147b1
push 0x2a
jmp 0x100147b3
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._sDSOCCOMMONClientState.xml
push eax
call fcn.10010e20
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push str._sDSOCCOMMONcfg.xml
push eax
call fcn.10010e20
add esp, 0xc
mov dword [ebp - 0x6f0], esi
lea ecx, [ebp - 0x6f0]
mov dword [ebp - 0x6ec], esi
call fcn.10013270
lea ecx, [ebp - 0x6f0]
mov dword [ebp - 4], 0
call fcn.10013300
lea ecx, [ebp - 0x6f0]
call fcn.10013270
lea eax, [ebp - 0x420]
push 0x100700a0
push eax
call fcn.1004386b
push eax
lea edx, [ebp - 0x6f0]
lea ecx, [ebp - 0x704]
call fcn.10013020
add esp, 0xc
cmp dword [ebp - 0x704], 0
jne 0x100148ad
push str.WorkMode
lea eax, [ebp - 0x6f4]
push eax
push str.ClientState
lea eax, [ebp - 0x6f8]
push eax
lea ecx, [ebp - 0x6f0]
call fcn.10013130
mov ecx, eax
call fcn.10013130
mov eax, dword [ebp - 0x6f4]
test eax, eax
je 0x100148b7
lea ecx, [ebp - 0x6f4]
mov dword [ebp - 0x6f4], eax
call fcn.10013210
push eax
call fcn.10042ff6
add esp, 4
mov esi, eax
push str.GetWorkMode_nWorkMode
call edi
jmp 0x100148b7
push str.GetWorkMode_DGCLIENT_DISABLE
call edi
or esi, 0xffffffff
lea ecx, [ebp - 0x6f0]
call fcn.10013300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
Function at 0x10014b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005aa37
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10033470
add esp, 0xc
call fcn.100111f0
test eax, eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
je 0x10014b6c
push 0x2a
jmp 0x10014b6e
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.DSOCXGTMConfig.xml
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x250], 0xfffffe00
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 1
and dword [ebp - 0x240], 0xfffffe00
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x228]
call fcn.100097e0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 4
push eax
sub esp, 8
lea ecx, [ebp - 0x248]
push str.TMConfigPath
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.10009b00
push 0x10070458
lea ecx, [ebp - 0x228]
call fcn.100097e0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 5
push eax
sub esp, 8
lea ecx, [ebp - 0x248]
push str.Version
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.10009b00
lea eax, [ebp - 0x248]
push eax
sub esp, 8
lea ecx, [ebp - 0x258]
push str.TMConfig
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x258]
call fcn.1000a920
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x220]
lea edi, [esi + 5]
push edi
call fcn.1001c3b1
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call fcn.10033470
add esp, 0xc
mov dword [ebx], 0x1b
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push esi
push ecx
lea eax, [ebx + 4]
push eax
call fcn.100335d0
add esp, 0xc
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push 0
push 0xea60
push 4
push eax
push edi
push ebx
push str.XGMonitorService
call fcn.10001020
push ebx
call fcn.1001bce1
mov eax, dword [ebp - 0x21c]
add esp, 4
cmp eax, 0x10
jb 0x10014d34
mov ecx, dword [ebp - 0x230]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x10014d2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014d66
push edx
push ecx
call fcn.1001bf11
add esp, 8
lea ecx, [ebp - 0x248]
call fcn.10009b00
lea ecx, [ebp - 0x258]
call fcn.10009b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
call fcn.10041b97
int3