joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b247f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x104
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [esp + 8]
cmp eax, ecx
mov eax, 1
je 0x4b2481
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x4b2490
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1084
call fcn.0051c5a0
mov edx, dword [esp + 0x1088]
xor eax, eax
test edx, edx
push esi
je 0x4b2595
mov esi, dword [esp + 0x1090]
test esi, esi
je 0x4b2595
mov edx, dword [esp + 0x1094]
test edx, edx
je 0x4b2595
mov eax, dword [0x585f98]
test eax, eax
je 0x4b2588
call fcn.004b2400
test eax, eax
jne 0x4b2588
push edi
mov ecx, 0x411
lea edi, [esp + 0x46]
mov word [esp + 0x44], ax
rep stosd dword es:[edi], eax
push esi
push 0x538a2c
push 8
push str._tp:
stosw word es:[edi], ax
push str._s_d__s__s_
lea eax, [esp + 0x58]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
lea ecx, [esp + 0x44]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], 0x56bd2c
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x4b2579
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x1084
ret 0x10
push esi
call fcn.004061d0
mov ecx, eax
call fcn.0042fa90
pop esi
add esp, 0x1084
ret 0x10
Function at 0x4b2c40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5205e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x66c
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esp
call fcn.004b28e0
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x676]
mov word [ebp - 0x678], si
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [0x58bccc]
push 0x103
stosw word es:[edi], ax
lea eax, [ebp - 0x678]
push eax
push ecx
call fcn.0043f220
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46e]
mov word [ebp - 0x470], si
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [ebp - 0x678]
stosw word es:[edi], ax
push 0x566ca4
push edx
push str._sskin_s
lea eax, [ebp - 0x470]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [ebp - 0x268]
lea edx, [ebp - 0x470]
mov word [ebp - 0x26a], si
push ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x4b2dbe
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x23c]
push 0x537460
push eax
call edi
add esp, 8
test eax, eax
je 0x4b2da1
lea ecx, [ebp - 0x23c]
push 0x54c114
push ecx
call edi
add esp, 8
test eax, eax
je 0x4b2da1
test byte [ebp - 0x268], 0x10
jne 0x4b2da1
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 5
jl 0x4b2da1
lea esi, [ebp + eax*2 - 0x244]
push 4
push str..zip
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b2da1
mov word [esi], ax
lea eax, [ebp - 0x23c]
push str.IE6Default
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4b2dcf
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004b29b0
lea ecx, [ebp - 0x268]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b2d12
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x23c]
push edx
lea ecx, [eax + 0x24]
call fcn.004b4030
jmp 0x4b2da1
Function at 0x4b32c0
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x61c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x630]
xor ebp, ebp
cmp esi, ebp
jne 0x4b32fb
push ebp
push eax
push 0xc83
call fcn.004d6c30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0xc34]
lea ecx, [esp + 0x21c]
push eax
push ecx
mov ecx, esi
call fcn.004b4360
call fcn.004f7e90
cmp eax, ebp
je 0x4b333b
mov ecx, eax
call fcn.004f98c0
lea ecx, [esi + 0x24a0]
call fcn.0049bd00
mov ecx, 0x56bcc8
call fcn.0040bfa0
test eax, eax
je 0x4b3480
call fcn.004c1630
test eax, eax
jne 0x4b3480
mov dx, word [0x56bc90]
mov ecx, 0x81
lea edi, [esp + 0x426]
mov word [esp + 0x424], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [esp + 0x220]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x538a48
push eax
push 0x538a2c
push 8
push str._tp:
push str._s_d__s__s___s_d
lea ecx, [esp + 0x440]
push 0x103
push ecx
call ebx
add esp, 0x24
lea edx, [esp + 0x424]
push 5
push ebp
push edx
push 0x56bd2c
push str.runas
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x4b33ec
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x61c
ret 4
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004b43d0
push eax
push 0x5384a4
lea eax, [esp + 0x18]
push 0x104
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push str._preview
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebp
je 0x4b3460
lea edx, [esp + 0x10]
lea ecx, [esp + 0x10]
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x10], bp
lea eax, [esp + 0x10]
push eax
push 0x5395f8
push 0x104
push ecx
call ebx
lea edx, [esp + 0x20]
push 1
push edx
call fcn.0043fd00
add esp, 0x18
mov ecx, esi
call fcn.004b43d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x61c
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x21c]
push eax
call ebx
test eax, eax
je 0x4b351c
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004b43d0
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push eax
push 0x5384a4
lea ecx, [esp + 0x18]
push 0x104
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push str._preview
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebp
je 0x4b3512
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
sub eax, ecx
push edx
sar eax, 1
push 0x5395f8
push 0x104
mov word [esp + eax*2 + 0x1c], bp
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.0043fd00
add esp, 0x18
mov ecx, esi
call fcn.004b43d0
push eax
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x61c
ret 4
Function at 0x4b4590
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b4671
lea edi, [esi + 0x22c]
mov ecx, edi
call fcn.00492940
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4b45e2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b45d3
push 1
push ebx
mov ecx, edi
call fcn.00492e90
jmp 0x4b45e2
mov ecx, dword [0x58bcc8]
push ebx
push ecx
mov ecx, edi
call fcn.00492cf0
mov ecx, edi
call fcn.00493900
test eax, eax
je 0x4b4671
mov edx, dword [esi + 4]
push 2
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, edi
mov dword [esi + 0x460], 0
call fcn.004939c0
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, edi
cdq
sub eax, edx
sub ecx, ebx
mov edx, eax
mov eax, dword [esp + 0x18]
sar edx, 1
sub eax, edx
sub ecx, 4
add eax, 0xa
jns 0x4b4636
xor eax, eax
test ecx, ecx
jge 0x4b4641
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov edx, dword [esi + 4]
push 0x50
push edi
push ebx
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push 0
push 0x27
push 0x27
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
ret 0x14

Function at 0x4b4680
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push 0
push 0x2008
push 0
push 0
push eax
push 0x80880000
push 0x56bc90
push str.XWnd
mov esi, ecx
push 0x80080
call fcn.0050a7b0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
pop esi
add esp, 0x10
ret

Function at 0x4b5710
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x58507c]
test eax, eax
je 0x4b5732
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b5732
mov ecx, dword [0x58507c]
jmp fcn.004b5310
ret
Function at 0x4b96e0
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x585094]
sub esp, 0x60
test al, 1
jne 0x4b9703
or al, 1
push 0
mov byte [0x585094], al
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [0x585090], eax
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4b982f
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4b9722
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b9734
pop esi
add esp, 0x60
ret 8
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4b982f
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x24]
pop edi
test eax, eax
jne 0x4b9763
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x40]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea edx, [esp + 4]
lea eax, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x4b9816
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4b9816
mov eax, dword [esp + 0xc]
cmp ax, 0x76c
jae 0x4b97ab
xor eax, eax
jmp 0x4b9816
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xe]
mov dword [esp + 0x28], edx
and ecx, 0xffff
and eax, 0xffff
lea edx, [esp + 0x1c]
dec ecx
sub eax, 0x76c
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCRT.dll_mktime]
add esp, 4
mov ecx, dword [0x585090]
sub ecx, eax
cmp ecx, 0x93a80
jle 0x4b982f
xor eax, eax
pop esi
add esp, 0x60
ret 8
mov eax, 1
pop esi
add esp, 0x60
ret 8

Function at 0x4b99c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b99f1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b99ea
test al, 1
jne 0x4b99ea
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4bc110
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4bc27d
mov eax, dword [esi + 0x9a0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test eax, eax
jne 0x4bc139
call ebp
mov dword [esi + 0x9a0], eax
jmp 0x4bc147
call ebp
cmp eax, dword [esi + 0x9a0]
jne 0x4bc27d
mov eax, dword [esi + 0x288]
cmp eax, 0x28
jge 0x4bc27d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [esp + 0x14]
shl eax, 4
mov dword [eax + esi + 8], edi
call ebx
mov ecx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 0x288]
shl ecx, 4
mov dword [ecx + esi + 0xc], eax
call ebx
mov edx, dword [esi + 0x288]
inc edx
shl edx, 4
mov dword [edx + esi], eax
call ebp
mov ecx, dword [esi + 0x288]
shl ecx, 4
cmp edi, 0xfa0
mov dword [ecx + esi + 0x14], eax
jne 0x4bc1d6
cmp dword [esi + 0x970], 0xffffffff
jne 0x4bc26e
mov edx, dword [esi + 0x288]
pop edi
shl edx, 4
pop ebx
mov eax, dword [edx + esi + 0xc]
mov dword [esi + 0x970], eax
mov eax, dword [esi + 0x288]
inc eax
mov dword [esi + 0x288], eax
pop esi
pop ebp
ret 4
cmp edi, 0x1194
jne 0x4bc212
cmp dword [esi + 0x974], 0xffffffff
jne 0x4bc26e
mov ecx, dword [esi + 0x288]
mov eax, dword [esi + 0x288]
shl ecx, 4
inc eax
pop edi
mov edx, dword [ecx + esi + 0xc]
mov dword [esi + 0x288], eax
mov dword [esi + 0x974], edx
pop ebx
pop esi
pop ebp
ret 4
cmp edi, 0x1388
jne 0x4bc24a
cmp dword [esi + 0x978], 0xffffffff
jne 0x4bc26e
mov eax, dword [esi + 0x288]
pop edi
shl eax, 4
pop ebx
mov ecx, dword [eax + esi + 0xc]
mov eax, dword [esi + 0x288]
inc eax
mov dword [esi + 0x978], ecx
mov dword [esi + 0x288], eax
pop esi
pop ebp
ret 4
cmp edi, 0x157c
jne 0x4bc26e
cmp dword [esi + 0x97c], 0xffffffff
jne 0x4bc26e
mov edx, dword [esi + 0x288]
shl edx, 4
mov eax, dword [edx + esi + 0xc]
mov dword [esi + 0x97c], eax
mov eax, dword [esi + 0x288]
pop edi
inc eax
pop ebx
mov dword [esi + 0x288], eax
pop esi
pop ebp
ret 4
Function at 0x4bd290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52111b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [ecx + 4]
push ebp
xor ebp, ebp
mov dword [esp + 8], ecx
cmp eax, ebp
jne 0x4bc58b
push ebx
push esi
push edi
push ebp
mov ecx, 0x56bcc8
call fcn.0040c120
mov esi, eax
mov eax, dword [0x5371a0]
cmp esi, ebp
mov dword [esp + 0x10], eax
je 0x4bc431
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, ebp
je 0x4bc431
lea ecx, [ebx + ebx + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebp
je 0x4bc431
lea ecx, [ebx + ebx]
mov dword [eax], 1
mov edx, ecx
mov word [eax + ebx*2 + 0xc], bp
lea edi, [eax + 0xc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [esp + 0x10], edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x430], ebp
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x4bc47d
lea ecx, [esp + 0x10]
call fcn.00405210
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405010
test eax, eax
je 0x4bc47d
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
xor edi, edi
cmp word [esi], bp
je 0x4bc4ca
mov ebx, dword [sym.imp.MSVCRT.dll_wcschr]
mov ax, word [esi]
push eax
push 0x538bc8
call ebx
add esp, 8
test eax, eax
je 0x4bc4a8
cmp edi, ebp
jne 0x4bc4aa
mov edi, esi
jmp 0x4bc4aa
xor edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], bp
jne 0x4bc48e
cmp edi, ebp
je 0x4bc4ca
mov word [edi], bp
mov eax, dword [esp + 0x10]
sub edi, eax
sar edi, 1
mov dword [eax - 8], edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x1c]
push 0x1a
push ecx
push ebp
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 0x53b058
lea eax, [esp + 0x224]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
je 0x4bc54b
mov eax, dword [esp + 8]
mov dword [eax + 0x990], 1
mov ecx, dword [0x59c2f0]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
inc ecx
mov dword [edx + 0x99c], ecx
mov edx, dword [0x537120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4bc58b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4bc58b
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.0051c54a
add esp, 4
mov ecx, dword [esp + 0x41c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x424
ret
mov ecx, 0x5850a8
jmp 0x4bc3a0
Function at 0x4bd2e0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4bd254
lea eax, [esp + 8]
mov dword [ebx + 4], 1
push eax
push str.NotJoinPrivate
push str.option
mov dword [esp + 0x14], 0
call fcn.0040e740
mov eax, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4bd254
mov ecx, dword [0x585a1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ecx, 0x1d4c0
mov eax, 1
jbe 0x4bd1c6
call esi
push 0
push eax
push 0x66
jmp 0x4bd1d1
test ecx, ecx
jne 0x4bd1db
call esi
push 0
push eax
push 0x65
call fcn.004d6610
add esp, 0xc
xor eax, eax
mov ecx, dword [0x585a24]
cmp ecx, 0x1d4c0
jbe 0x4bd1fa
call esi
push 0
push eax
push 0x68
call fcn.004d6610
add esp, 0xc
jmp 0x4bd213
test ecx, ecx
jne 0x4bd20f
call esi
push 0
push eax
push 0x67
call fcn.004d6610
add esp, 0xc
jmp 0x4bd213
test eax, eax
jne 0x4bd21c
call fcn.004a7850
test eax, eax
je 0x4bd254
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0
push ebx
push 0x4bc6a0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4bd254
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 8
ret
mov ecx, 0x5850a8
jmp 0x4bd160

Function at 0x4bd470
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4bd535
push 0
mov ecx, 0x56bcc8
call fcn.0040c120
mov edi, eax
test edi, edi
je 0x4bd535
push esi
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4bd4be
cmp word [eax + 2], 0
lea esi, [ebx + 8]
push edi
jne 0x4bd4c2
push str._sstat.ini
jmp 0x4bd4c7
lea esi, [ebx + 8]
push edi
push str._s_stat.ini
push 0x104
push esi
call fcn.0042dce0
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bd52d
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov edx, eax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x566988
lea eax, [esp + 0x14]
push 0x40
push eax
call fcn.0042dce0
add esp, 0x10
lea ecx, [esp + 0xc]
push esi
push ecx
push 0x567328
push 0x567320
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebx + 4], 1
pop esi
pop edi
pop ebx
add esp, 0x80
ret

Function at 0x4bd5f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, ecx
call fcn.004bd470
mov eax, dword [esi + 4]
test eax, eax
je 0x4bd656
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x4bd656
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xc]
push eax
push 0x566988
push 0x20
push ecx
call fcn.0042dce0
add esp, 0x10
add esi, 8
lea edx, [esp + 0xc]
push esi
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8
Function at 0x4bd660
Capabilities:
Delete file

Disassembly:
sub esp, 0x80
push esi
mov esi, ecx
call fcn.004bd470
mov eax, dword [esi + 4]
test eax, eax
je 0x4bd6ec
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5580e4
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
test eax, eax
je 0x4bd69c
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov edx, eax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x566988
lea eax, [esp + 0x10]
push 0x40
push eax
call fcn.0042dce0
add esp, 0x10
lea ecx, [esp + 8]
push esi
push ecx
push 0x567328
push 0x567320
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
add esp, 0x80
ret

Function at 0x4bd900
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x585c90]
sub esp, 0x10
test eax, eax
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4bda46
mov dword [0x585c90], 1
mov eax, dword [ebx + 0x214]
test eax, eax
je 0x4bda46
mov ecx, dword [ebx + 0x218]
sub ecx, eax
mov eax, 0xdfac1f75
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x4bda46
mov esi, dword [0x585a5c]
mov ecx, dword [0x585a60]
test esi, esi
je 0x4bd97b
mov edi, ecx
mov eax, 0xdfac1f75
sub edi, esi
imul edi
add edx, edi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x4bda46
mov eax, dword [ebx + 0x214]
mov edx, dword [ebx + 0x218]
push ebp
mov dword [esp + 0x14], eax
mov ebp, ecx
mov eax, ecx
mov dword [esp + 0x10], edx
cmp eax, ebp
mov edx, esi
je 0x4bd9c0
mov esi, eax
mov edi, edx
add eax, 0x1250
mov ecx, 0x494
add edx, 0x1250
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4bd99a
mov ecx, dword [0x585a60]
mov esi, dword [0x585a5c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [0x585a60], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
mov ecx, 0x585a58
call fcn.004be1d0
mov edx, dword [ebx + 0x218]
mov ebp, dword [ebx + 0x214]
mov eax, edx
cmp eax, edx
je 0x4bda0b
mov esi, eax
mov edi, ebp
add eax, 0x1250
mov ecx, 0x494
add ebp, 0x1250
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x4bd9f1
mov eax, dword [ebx + 0x218]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x4bd700
push 0
push 0
mov dword [esp + 0x34], eax
mov dword [ebx + 0x218], ebp
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret