joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64411ee2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x6441b268], eax
mov eax, dword [0x6441b268]
cmp eax, 0xffffffff
jne 0x64411f03
call sym._abort
nop
leave
ret

Function at 0x64412073
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x64424c2c
call sym.__pthread_once_raw
mov eax, dword [0x6441b268]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x644120ba
mov eax, dword [ebp - 0x20]
jmp 0x64412205
call sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x644120d1
cmp dword [ebp - 0x20], 0
jne 0x644120db
mov eax, 0
jmp 0x64412205
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._replace_spin_keys
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x644121ad
call sym._abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x6441b268]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x64412202
call sym._abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x644122c9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sym.___pthread_self_lite
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.__pthread_cleanup_dest
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x64412324
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call eax
mov eax, dword [0x6441b268]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6441244e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x644123b6
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x64412373
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x6441b268]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x6441244e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x644123e6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x6441244e
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x6441b268]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call eax
Function at 0x64413d78
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x6441b278
call sym._pthread_spin_lock
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x64413da4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x64413de6
mov dword [esp], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
mov dword [esp + 8], str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov dword [esp + 4], str.Assertion_failed:___s___file__s__line__d_n
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x6441b278
call sym._pthread_spin_unlock
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x4011d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401221
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401221
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40122a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40127c
test ebp, ebp
je 0x40127c
push edi
push eax
push ebp
call fcn.0044ce30
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.004012a0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x4038db
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1730]
mov eax, 0x17b0
call fcn.00447a80
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp + 0x172c], eax
mov eax, dword [ebp + 0x173c]
push ebx
push esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1740]
mov esi, 0x206
xor ebx, ebx
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1526]
push ebx
push eax
mov word [ebp + 0x1524], bx
call fcn.00447440
push esi
lea eax, [ebp + 0x131e]
push ebx
push eax
mov word [ebp + 0x131c], bx
call fcn.00447440
add esp, 0x18
push str.Dict
call fcn.0040361f
mov ecx, eax
call fcn.00408f78
push eax
lea eax, [ebp + 0x1524]
push 0x4b9de0
push eax
call fcn.004479ae
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x1524]
push eax
call esi
test eax, eax
jne 0x403989
push ebx
lea eax, [ebp + 0x1524]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str..dcel
push dword [ebp + 0x1738]
lea eax, [ebp + 0x1524]
push eax
lea eax, [ebp + 0x131c]
push str._s_d_s
push eax
call fcn.004479ae
add esp, 0x14
lea eax, [ebp + 0x131c]
push eax
call esi
test eax, eax
jne 0x403a7e
push edi
push ebx
push 0x80
push 2
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x131c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403a7d
push 0x1387
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.00447440
push ebx
call fcn.00447519
add esp, 0x10
push eax
push ebx
mov dword [ebp - 0x7c], edx
call fcn.00447519
pop ecx
push eax
push ebx
push ebx
push 1
push 1
push dword [ebp + 0x1738]
lea ecx, [ebp - 0x6c]
push 0x4e20
push str.__Dict__
push str.__GS__
call fcn.0040375d
push dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
call fcn.004037b7
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.004037b7
mov esi, 0x4b9dac
push esi
lea ecx, [ebp - 0x6c]
call fcn.004037b7
push esi
lea ecx, [ebp - 0x6c]
call fcn.004037b7
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x6c]
push eax
push edi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x172c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004471af
add ebp, 0x1730
leave
ret 0xc
Function at 0x404618
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404721
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x404720
push ebx
push 0x34
pop ebx
push edi
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jae 0x404676
mov dword [ebp - 4], edi
mov ebx, eax
push esi
push ebx
call fcn.0042c376
mov esi, eax
cmp esi, edi
pop ecx
je 0x40471e
push ebx
push edi
push esi
call fcn.00447440
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x404717
push str.__GS__
push esi
call fcn.00447ab0
test eax, eax
pop ecx
pop ecx
jne 0x4046d5
lea eax, [esi + 0xa]
push str.__Dict__
push eax
call fcn.00447ab0
pop ecx
pop ecx
cmp dword [esi + 0x18], edi
je 0x40471e
push 0x28
call fcn.0042c34b
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x4046f4
lea ecx, [ebx + 0xc]
call fcn.00403ca8
mov eax, ebx
jmp 0x4046f6
xor eax, eax
cmp eax, edi
mov dword [ebp + 8], eax
je 0x40471e
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
movzx ecx, byte [esi + 0x1c]
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.00420eb2
push esi
call fcn.0042c37b
pop ecx
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x405808
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x1c], 0
push 0
push 1
mov ecx, esi
call fcn.00401b15
pop esi
leave
ret
Function at 0x408924
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
mov edi, ecx
mov dword [ebp - 0x210], eax
call fcn.00446b43
test eax, eax
pop ecx
mov esi, 0x4ba828
jne 0x408960
mov dword [edi], 1
jmp 0x408970
push esi
push ebx
call fcn.004472c8
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [edi], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00447440
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push str._sSkinSkin.xml
push eax
call fcn.004479ae
add esp, 0x18
cmp dword [edi], 0
jne 0x4089bf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4089bf
mov dword [edi], 1
cmp dword [edi + 8], 0
jne 0x408a65
cmp dword [edi], 0
je 0x408a17
call fcn.0040557e
mov edx, dword [eax]
push 0
push 0x53
mov ecx, eax
call dword [edx + 0xc]
call fcn.0040557e
mov edx, dword [eax]
push 0
push 0x53
mov ecx, eax
call dword [edx + 0x2c]
call fcn.0040557e
mov edx, dword [eax]
push esi
mov esi, 0x96
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.0040557e
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
call fcn.0040557e
push 0x53
jmp 0x408a5e
call fcn.0040557e
mov edx, dword [eax]
push 1
push 0x53
mov ecx, eax
call dword [edx + 0xc]
call fcn.0040557e
mov edx, dword [eax]
push 1
push 0x53
mov ecx, eax
call dword [edx + 0x2c]
call fcn.0040557e
mov edx, dword [eax]
push ebx
mov esi, 0x96
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.0040557e
mov edx, dword [eax]
push 0x53
mov ecx, eax
call dword [edx + 0x14]
call fcn.0040557e
push esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
and dword [edi + 8], 0
mov ecx, edi
call fcn.00408718
push dword [ebp - 0x210]
mov ecx, edi
call fcn.00408007
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004471af
leave
ret 8

Function at 0x408c1e
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00410ba4
mov dword [esi], eax
call fcn.00410cdd
mov dword [esi + 8], eax
call fcn.00410b1a
mov dword [esi + 0xc], eax
call fcn.00410c93
mov dword [esi + 0x10], eax
call fcn.00410bff
mov dword [esi + 0x18], eax
call fcn.00410c49
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [esi + 0x1a0]
push eax
call edi
lea eax, [esi + 0x1b8]
push eax
call edi
lea eax, [esi + 0x1a8]
push eax
call edi
lea eax, [esi + 0x1e8]
push eax
call edi
lea eax, [esi + 0x1c8]
push eax
call edi
lea eax, [esi + 0x1d8]
push eax
call edi
mov eax, dword [0x4f22b8]
pop edi
mov dword [esi + 0x190], eax
pop esi
ret
Function at 0x408ca0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00447440
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x408cfb
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x408cf3
cmp dword [ebp - 0x78], eax
jne 0x408cfb
cmp byte [ebp + 0x9a], al
je 0x408cfd
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004471af
add ebp, 0xa0
leave
ret

Function at 0x408e08
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov esi, ecx
call fcn.00447440
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x408e47
mov esi, dword [esi + 0x44]
jmp 0x408e4a
add esi, 0x44
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x4b9de0
push eax
call fcn.004479ae
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x408e83
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a808
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004471af
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp + 0x188], eax
and word [ebp - 0x80], 0
push ebx
push esi
push edi
push 0x206
lea eax, [ebp - 0x7e]
push 0
push eax
mov esi, ecx
call fcn.00447440
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x408ed2
mov eax, dword [esi + 0x28]
jmp 0x408ed5
lea eax, [esi + 0x28]
push 0x4baa28
push eax
mov ebx, 0x4b9de0
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004479ae
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x408f08
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x3c], 8
jb 0x408f13
mov esi, dword [esi + 0x28]
jmp 0x408f16
add esi, 0x28
push str.Dict
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004479ae
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x408f41
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.004471af
add ebp, 0x18c
leave
ret
Function at 0x408fab
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x396]
push ebx
push eax
mov esi, ecx
mov word [ebp + 0x394], bx
call fcn.00447440
lea eax, [ebp + 0x394]
push str.SOFTWARE_
push eax
call fcn.00447992
lea eax, [ebp + 0x394]
push str.DongFangInput
push eax
call fcn.00447968
add esp, 0x1c
cmp dword [esi + 0x58], 8
jb 0x409015
mov eax, dword [esi + 0x44]
jmp 0x409018
lea eax, [esi + 0x44]
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.00447992
cmp dword [esi + 0x3c], 8
pop ecx
pop ecx
jb 0x409032
mov esi, dword [esi + 0x28]
jmp 0x409035
add esi, 0x28
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00447992
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
push 2
push ebx
lea eax, [ebp + 0x394]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409092
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, 0x104
push edi
lea eax, [ebp + 0x18c]
push eax
push 1
push ebx
push str.CfgRootPath
push dword [ebp - 0x80]
call esi
push edi
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.CfgUserPath
push dword [ebp - 0x80]
call esi
pop edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x59c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004471af
add ebp, 0x5a0
leave
ret
Function at 0x4098f5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x409916
mov eax, dword [esi + 0x44]
jmp 0x409919
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x4b9de0
push eax
call fcn.004479ae
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409951
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a808
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.00447968
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.004021a3
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004471af
leave
ret

Function at 0x409980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x4099a1
mov eax, dword [esi + 0x44]
jmp 0x4099a4
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x4b9de0
push eax
call fcn.004479ae
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4099dc
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a808
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.00447968
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xe8]
call fcn.004021a3
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004471af
leave
ret

Function at 0x409ad2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x409af3
mov eax, dword [esi + 0x44]
jmp 0x409af6
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push 0x4b9de0
push eax
call fcn.004479ae
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409b2e
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a808
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x158]
call fcn.004021a3
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004471af
leave
ret