joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x510121
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004ff160
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004ed020
push ebp
lea ecx, [esi + 0x12f0]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x513c80
call fcn.004ddb00
lea ecx, [esi + 0x1328]
mov byte [esp + 0x18], 2
call fcn.004e31c0
mov dword [esi + 0x135c], ebp
mov dword [esi + 0x1360], ebp
mov eax, 3
mov dword [esi], 0x517594
mov dword [edi], 0x517590
mov dword [esi + 0x298], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x28], 0x517580
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi + 0x284], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x28c], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x290], 5
mov dword [esi + 0x294], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e8], ebp
mov dword [esi + 0x12ec], ebp
mov dword [esi + 0x244], ebp
mov dword [esi + 0x258], 1
mov dword [esi + 0x240], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1368]
xor ecx, ecx
mov edx, eax
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x280], ebp
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x1354], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], 0xffffffff
mov dword [esi + 0x1358], ebp
mov dword [esi + 0x1364], 2
mov dword [edx], ecx
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x10
mov dword [esi + 0x1378], ebp
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49c407
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x510121
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004ff160
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004ed020
push ebp
lea ecx, [esi + 0x12f0]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x513c80
call fcn.004ddb00
lea ecx, [esi + 0x1328]
mov byte [esp + 0x18], 2
call fcn.004e31c0
mov dword [esi + 0x135c], ebp
mov dword [esi + 0x1360], ebp
mov eax, 3
mov dword [esi], 0x517594
mov dword [edi], 0x517590
mov dword [esi + 0x298], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x28], 0x517580
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi + 0x284], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x28c], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x290], 5
mov dword [esi + 0x294], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e8], ebp
mov dword [esi + 0x12ec], ebp
mov dword [esi + 0x244], ebp
mov dword [esi + 0x258], 1
mov dword [esi + 0x240], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1368]
xor ecx, ecx
mov edx, eax
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x280], ebp
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x1354], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], 0xffffffff
mov dword [esi + 0x1358], ebp
mov dword [esi + 0x1364], 2
mov dword [edx], ecx
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x10
mov dword [esi + 0x1378], ebp
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x49c9d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x24c]
test eax, eax
jne 0x49ca7d
lea eax, [esp + 4]
push 0
push eax
call fcn.0049c690
mov edx, dword [0x5dc944]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esi + 4]
sub eax, ecx
push 0
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push 0x44000080
push 0x559900
push str.edit
push 0x20
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x24c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x24c]
push esi
push str.CLASSPROC
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, dword [esi + 0x24c]
push 0x49c3b0
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
call fcn.0049cb60
mov edx, dword [esi + 0x24c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x10
ret
Function at 0x49d660
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x218
push esi
mov esi, ecx
cmp word [esi + 0x30], 0
je 0x49d6f4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49d6f4
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
pop edi
test eax, eax
je 0x49d6b5
lea ecx, [esp + 0x14]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x14], 0
push 1
jne 0x49d6d5
mov edx, dword [esi + 4]
push 0
push edx
call fcn.004ff6b0
add esp, 0xc
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.0049c690
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push 1
push ecx
push edx
call fcn.004ff6b0
add esp, 0xc
pop esi
add esp, 0x218
ret
Function at 0x49da00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
push ebx
push esi
mov ebx, ecx
call fcn.0049ef20
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x49dc25
push ebp
push edi
mov ecx, ebx
call fcn.0049d9b0
push 0
push 0
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebx + 0x12e8], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 1
mov ecx, esi
mov dword [ebx + 0x12ec], eax
call fcn.0049f600
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x49dafe
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 1
stosw word es:[edi], ax
lea eax, [esp + 0x78]
push 0x103
push eax
push esi
call fcn.0049f590
test eax, eax
je 0x49dafe
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
lea edi, [esi + 1]
lea ecx, [esp + 0x74]
push edx
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 0x42
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, ebx
mov dword [esp + 0x6c], eax
push esi
call fcn.0049dc30
mov ecx, dword [ebx + 0x12ec]
push 0
push 0
push esi
lea eax, [esp + 0x50]
push 0
push eax
push 1
push esi
push ecx
lea ecx, [ebx + 0x1328]
call fcn.004e3840
mov esi, edi
cmp esi, ebp
jl 0x49da5d
xor eax, eax
mov ecx, 0xc
push eax
push eax
lea edi, [esp + 0x1c]
push esi
lea edx, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x12ec]
push edx
lea ebp, [ebx + 0x1328]
push 1
push esi
push eax
mov ecx, ebp
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 0x800
call fcn.004e3840
push 0x98
call fcn.00496ed0
mov edx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x43
mov dword [esp + 0x2c], 0x1001
mov dword [esp + 0x40], edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [0x602788]
add esp, 8
neg ecx
sbb ecx, ecx
push 0
push 0
and ecx, 8
push 0xffffffffffffffff
lea edx, [esp + 0x20]
mov dword [esp + 0x48], eax
push 0
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x12ec]
push edx
lea eax, [esi + 1]
push 1
push eax
push ecx
mov ecx, ebp
call fcn.004e3840
push 0x8c
call fcn.00496ed0
mov edx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x42
mov dword [esp + 0x2c], 0x1000
mov dword [esp + 0x40], edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x12ec]
push 0
push 0
push 0xffffffffffffffff
push 0
push edx
add esi, 2
push 1
push esi
push eax
mov ecx, ebp
call fcn.004e3840
mov ecx, ebx
call fcn.0049d770
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x26c
ret
Function at 0x49e080
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
push esi
push edi
mov esi, ecx
call fcn.0049ef20
mov eax, dword [esp + 0x214]
push eax
call fcn.0049ef20
mov ecx, eax
call fcn.0049f150
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
test eax, eax
je 0x49e0d4
lea ecx, [esp + 8]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 8], 0
mov ecx, esi
je 0x49e0ee
call fcn.0049c990
pop edi
pop esi
add esp, 0x208
ret 4
call fcn.0049d720
pop edi
pop esi
add esp, 0x208
ret 4
Function at 0x4a1540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov eax, dword [eax + 4]
push edi
test eax, eax
jne 0x4a1557
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 0x553ca8
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x4a15e8
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
test ebx, ebx
jne 0x4a1585
mov ebx, 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]
test ebx, ebx
jne 0x4a1585
xor esi, esi
jmp 0x4a15b7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0050c9c0
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a1d70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp word [eax], 0
push edi
je 0x4a1e19
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, eax
add esp, 4
inc ebp
je 0x4a1e19
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4a1e19
mov eax, dword [esp + 0x18]
lea ebx, [ebp + ebp]
mov dword [esi], 0
mov dword [esi + 4], 0
push ebx
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 4], edi
je 0x4a1e19
mov ecx, ebx
xor eax, eax
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
push edx
push 0
push esi
push 0x4a1c70
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4a1e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x5d5c98]
sub esp, 0xc
test eax, eax
push esi
mov esi, ecx
jne 0x4a1e8c
mov eax, 4
lea ecx, [esp + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push eax
push ecx
push edx
push 0x5280f0
push str.Software360360se3
push SysReAllocStringLen
mov dword [0x5d5c98], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4a1e8c
mov eax, dword [esp + 4]
mov dword [esi], eax
pop esi
add esp, 0xc
ret
Function at 0x4a21c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
call fcn.004a1e30
mov eax, dword [esi]
pop esi
cmp eax, 0xff
jne 0x4a1f32
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push str.Debugger
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4a1f32
cmp word [esp + 8], ax
je 0x4a1f32
lea eax, [esp + 8]
push str.windbg.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4a1f32
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
mov ecx, 0x5d5880
jmp 0x4a1ea0
Function at 0x4a2570
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x12a4
call fcn.0050c9c0
mov ax, word [0x559900]
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esp + 0x12c8]
push edi
mov word [esp + 0x64], ax
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x66]
lea edx, [esi + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x21c]
mov ebx, ebp
push ecx
push str._tmp:
push edx
push 0x5482ac
mov ecx, 0x559928
and ebx, 0x20
stosw word es:[edi], ax
call fcn.0040be10
xor ecx, ecx
mov edx, dword [esp + 0x12d8]
mov ch, byte [esi + 0x10]
push eax
mov eax, dword [0x5d7584]
mov cl, byte [esi + 0xc]
push str._gw:
push eax
mov eax, dword [esp + 0x12d8]
push str._mw:
push ecx
push 0x5288a0
push ebp
push 0x5286ec
push edx
push 0x528880
mov ecx, dword [esp + 0x12f8]
push eax
mov edx, dword [esp + 0x12f4]
mov eax, ebp
and al, 2
push 0x528890
neg al
sbb eax, eax
push ecx
and eax, 5
push 0x528888
push edx
inc eax
push 0x528898
push eax
push str._tp:
push 0x55998c
push str.__s___s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s__s___s__s_
lea ecx, [esp + 0xc4]
push 0x927
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x68
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
xor ebp, ebp
xor edx, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
push eax
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 0x80
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
push ebp
mov edx, ebx
push ebp
neg edx
sbb edx, edx
lea eax, [esp + 0x74]
and edx, 0x40
push edx
push 1
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebp
je 0x4a26c0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4a26c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x12c8]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp eax, 1
jne 0x4a26f7
xor eax, eax
mov dword [esi + 0x424], edx
test ebx, ebx
sete al
mov dword [esi + 0x430], eax
mov dword [esi + 0x428], ebp
mov dword [esi + 0x42c], ecx
mov eax, dword [esp + 0x12c4]
test eax, eax
je 0x4a2711
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12a4
ret 0x18

Function at 0x4a3230
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2090
call fcn.0050c9c0
push esi
mov esi, ecx
push 0x445
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, eax
test edx, edx
je 0x4a3298
push edi
mov ecx, 0x823
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x1047
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
push edx
push 0x528430
push 0x1047
push 0x5e2800
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
pop edi
call fcn.004a6e50
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
add esp, 0x2090
ret
Function at 0x4a3920
Capabilities:
Get common file path
Get system information on windows

Disassembly:
sub esp, 0x22c
call fcn.004a32c0
mov eax, dword [esp + 0x230]
push eax
call fcn.0040c090
add esp, 4
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x14], 1
jne 0x4a3957
mov dword [0x5e12f0], 0
cmp word [0x5e48c0], 0
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push edi
je 0x4a3975
push 0x5e48c0
call esi
cmp eax, 0xffffffff
jne 0x4a39c8
mov dx, word [0x559900]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], dx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x2c]
push str.Downloadspic_
push ecx
call esi
add eax, 0x41
push eax
push str._c:_s
push 0x103
push 0x5e48c0
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, dword [0x5557e0]
xor edi, edi
test eax, eax
jbe 0x4a39f7
mov esi, str.MainBarText
mov edx, dword [esi + 0x20]
push edx
push esi
push 0x52861c
call fcn.0040c9c0
mov eax, dword [0x5557e0]
add esp, 0xc
inc edi
add esi, 0x30
cmp edi, eax
jb 0x4a39d8
mov eax, dword [0x5557e4]
xor edi, edi
test eax, eax
jbe 0x4a3a2d
mov esi, 0x555354
mov eax, dword [esi + 4]
mov ecx, dword [esi]
dec eax
lea edx, [esi - 0x20]
push eax
push ecx
push edx
push 0x52861c
call fcn.0040c7a0
mov eax, dword [0x5557e4]
add esp, 0x10
inc edi
add esi, 0x30
cmp edi, eax
jb 0x4a3a07
mov eax, dword [0x5e12f8]
mov ecx, dword [0x5e12f0]
mov dword [0x5d757c], eax
mov dword [0x5d7580], ecx
call fcn.004a3a60
mov ecx, section..taihang
call fcn.004952f0
call fcn.0040f930
pop edi
pop esi
add esp, 0x22c
ret

Function at 0x4a7580
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x4a75bc
cmp word [esi], 0
je 0x4a75bc
call fcn.004a7560
mov ecx, dword [eax]
lea edx, [esp + 4]
push 0
push edx
push 0
push esi
push 0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4a75d9
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4a75d9
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x4a9d60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x478
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], 0
push 0x105
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
push eax
call fcn.004a9f70
add esp, 8
test eax, eax
jne 0x4a9d99
pop edi
add esp, 0x478
ret
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x272]
mov word [esp + 0x270], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x270]
push 0x105
push ecx
call fcn.004a9fb0
add esp, 8
test eax, eax
jne 0x4a9dd9
mov eax, 1
pop edi
add esp, 0x478
ret
lea edx, [esp + 0x40]
push esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x44], 0
push edx
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x4a9e1b
xor esi, esi
jmp 0x4a9eae
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4a9e33
xor esi, esi
jmp 0x4a9eae
mov eax, dword [esp + 8]
cmp ax, 0x76c
jae 0x4a9e41
xor eax, eax
jmp 0x4a9eac
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x12]
and edx, 0xffff
and ecx, 0xffff
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xa]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xe]
sub eax, 0x76c
and edx, 0xffff
mov dword [esp + 0x34], eax
and ecx, 0xffff
lea eax, [esp + 0x20]
dec edx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.MSVCRT.dll_mktime]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x274]
push ecx
push 0
push str.LastWriter
push 0x52861c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edx, edx
cmp eax, esi
setne dl
pop esi
mov eax, edx
pop edi
add esp, 0x478
ret

Function at 0x4a9ee0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x5559a4]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4a9f32
lea eax, [esp]
mov dword [esp], 1
push eax
push str.ShowNumMenu
push str.skin
call fcn.0040c9c0
add esp, 0xc
test eax, eax
jne 0x4a9f1c
mov dword [0x5559a4], 1
jmp 0x4a9f32
mov eax, dword [esp]
test eax, eax
mov dword [0x5559a4], eax
jne 0x4a9f32
call fcn.004a9d60
test eax, eax
je 0x4a9f63
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 0
push edx
push 0x4aa030
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4a9f63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
ret

Function at 0x4a9f70
Capabilities:
Check if file exists

Disassembly:
push esi
push str.newSkin.dat
mov ecx, 0x559928
call fcn.0040a420
mov esi, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push str._sdata_s
dec eax
push eax
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
ret