joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
push ebx
push esi
mov ebx, ecx
call fcn.004a4470
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x4a3135
push ebp
push edi
mov ecx, ebx
call fcn.004a2ec0
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.004a4b50
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4a300e
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.004a4ae0
test eax, eax
je 0x4a300e
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.004a3140
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.004ede60
mov esi, edi
cmp esi, ebp
jl 0x4a2f6d
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.004ede60
push 0x98
call fcn.0049b1f0
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 [0x5bd78c]
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.004ede60
push 0x8c
call fcn.0049b1f0
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.004ede60
mov ecx, ebx
call fcn.004a2c80
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x26c
ret
Function at 0x4a3590
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.004a4470
mov eax, dword [esp + 0x214]
mov ecx, dword [0x59d7b8]
cmp ecx, eax
je 0x4a35b7
mov ebx, 1
push edi
push eax
call fcn.004a4470
mov ecx, eax
call fcn.004a46a0
mov ecx, 0x81
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 [esi + 0x24c]
pop edi
test eax, eax
je 0x4a35f7
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 0x4a3608
call fcn.004a1ea0
jmp 0x4a360d
call fcn.004a2c30
test ebx, ebx
je 0x4a363a
xor edx, edx
cmp word [esp + 8], dx
setne dl
add edx, 0x7613
mov esi, edx
call fcn.00422810
mov eax, dword [eax + 4]
push 0
push esi
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x4a6a80
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 0x4a6a97
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 0x5646e0
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x4a6b28
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
test ebx, ebx
jne 0x4a6ac5
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 0x4a6ac5
xor esi, esi
jmp 0x4a6af7
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.0051c5a0
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 0x4a72b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp word [eax], 0
push edi
je 0x4a7359
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, eax
add esp, 4
inc ebp
je 0x4a7359
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4a7359
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 0x4a7359
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 0x4a71b0
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 0x4a7370
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x584fc8]
sub esp, 0xc
test eax, eax
push esi
mov esi, ecx
jne 0x4a73cc
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 0x538164
push str.Software360360se3
push SysReAllocStringLen
mov dword [0x584fc8], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4a73cc
mov eax, dword [esp + 4]
mov dword [esi], eax
pop esi
add esp, 0xc
ret
Function at 0x4a7840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
call fcn.004a7370
mov eax, dword [esi]
pop esi
cmp eax, 0xff
jne 0x4a7472
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 0x4a7472
cmp word [esp + 8], ax
je 0x4a7472
lea eax, [esp + 8]
push str.windbg.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4a7472
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
mov ecx, 0x584bb0
jmp 0x4a73e0
Function at 0x4a7bf0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x12a4
call fcn.0051c5a0
mov ax, word [0x56bc90]
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x12c8]
mov esi, ecx
push edi
mov word [esp + 0x64], ax
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x66]
mov ebp, ebx
rep stosd dword es:[edi], eax
and ebp, 0x20
stosw word es:[edi], ax
test bl, 2
mov edi, 1
je 0x4a7c35
mov edi, 6
mov eax, ebx
and eax, 0x40
je 0x4a7c41
mov edi, 0xf
lea ecx, [esi + 0x21c]
lea edx, [esi + 0x14]
push ecx
push str._tmp:
test eax, eax
push edx
push 0x55859c
mov ecx, 0x56bcc8
je 0x4a7cf1
call fcn.0040db20
xor ecx, ecx
mov edx, dword [esp + 0x12d8]
mov ch, byte [esi + 0x10]
push eax
mov eax, dword [0x5868fc]
mov cl, byte [esi + 0xc]
push str._gw:
push eax
mov eax, dword [esp + 0x12d8]
push str._mw:
push ecx
mov ecx, dword [esp + 0x12e4]
push 0x538bfc
push ebx
push 0x538a48
push edx
mov edx, dword [esp + 0x12ec]
push 0x538bdc
push eax
push 0x538bec
push ecx
push 0x538be4
push edx
push 0x538bf4
push edi
push str._tp:
push str._sandboxse
push 0x56bd2c
push str.__s___s__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s__s___s__s_
lea eax, [esp + 0xc8]
push 0x927
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x6c
jmp 0x4a7d75
call fcn.0040db20
xor ecx, ecx
mov edx, dword [esp + 0x12d8]
mov ch, byte [esi + 0x10]
push eax
mov eax, dword [0x5868fc]
mov cl, byte [esi + 0xc]
push str._gw:
push eax
mov eax, dword [esp + 0x12d8]
push str._mw:
push ecx
mov ecx, dword [esp + 0x12e4]
push 0x538bfc
push ebx
push 0x538a48
push edx
mov edx, dword [esp + 0x12ec]
push 0x538bdc
push eax
push 0x538bec
push ecx
push 0x538be4
push edx
push 0x538bf4
push edi
push str._tp:
push 0x56bd2c
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 eax, [esp + 0xc4]
push 0x927
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x68
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
mov ecx, ebp
neg ecx
sbb ecx, ecx
push eax
push edi
and ecx, 0x40
push edi
push ecx
push 1
push edi
lea edx, [esp + 0x80]
push edi
push edx
push edi
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 0x80
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, edi
je 0x4a7de8
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4a7de8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x12c8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
cmp eax, 1
jne 0x4a7e1f
xor eax, eax
mov dword [esi + 0x424], edi
test ebp, ebp
sete al
mov dword [esi + 0x430], eax
mov dword [esi + 0x428], edx
mov dword [esi + 0x42c], ecx
mov eax, dword [esp + 0x12c4]
test eax, eax
je 0x4a7e39
mov esi, dword [esp + 0x14]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x12a4
ret 0x18
Function at 0x4a8990
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2090
call fcn.0051c5a0
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 0x4a89f8
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 0x5384a4
push 0x1047
push 0x59d804
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
pop edi
call fcn.004ac7f0
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
add esp, 0x2090
ret

Function at 0x4a9090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa34
mov eax, dword [str.WN.IME]
mov ecx, dword [0x566494]
mov edx, dword [0x566498]
mov dword [esp + 8], eax
mov ax, word [0x56649c]
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
mov word [esp + 0x20], ax
mov ecx, 0x7e
xor eax, eax
lea edi, [esp + 0x22]
mov dword [esp + 0x1c], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
mov esi, str.freeime.ime
lea edi, [esp + 0x838]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x7c
lea edi, [esp + 0x850]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov ecx, 0x81
lea edi, [esp + 0x632]
mov word [esp + 0x630], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
lea edx, [esp + 0x630]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0x538ecc
push str.Keyboard_LayoutPreload
push SysReAllocStringLen
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x206
call esi
test eax, eax
jne 0x4a9217
mov ecx, 0x81
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x426]
lea edx, [esp + 0x424]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x630]
push ecx
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts_s
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x430]
push str.Ime_File
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x206
call esi
test eax, eax
jne 0x4a9217
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x14]
push ecx
push edx
call esi
add esp, 8
test eax, eax
je 0x4a9208
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x838]
push eax
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4a9217
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xa34
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xa34
ret
Function at 0x4a9230
Capabilities:
Get common file path
Get system information on windows

Disassembly:
sub esp, 0x22c
call fcn.004a8a20
mov eax, dword [esp + 0x230]
push eax
call fcn.0040dda0
add esp, 4
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x14], 1
jne 0x4a9267
mov dword [0x59c2f0], 0
cmp word [0x59f8c4], 0
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push edi
je 0x4a9285
push 0x59f8c4
call esi
cmp eax, 0xffffffff
jne 0x4a92d8
mov dx, word [0x56bc90]
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 0x59f8c4
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, dword [0x566398]
xor edi, edi
test eax, eax
jbe 0x4a9307
mov esi, str.MainBarText
mov edx, dword [esi + 0x20]
push edx
push esi
push 0x5389a8
call fcn.0040e740
mov eax, dword [0x566398]
add esp, 0xc
inc edi
add esi, 0x30
cmp edi, eax
jb 0x4a92e8
mov eax, dword [0x56639c]
xor edi, edi
test eax, eax
jbe 0x4a933d
mov esi, 0x565f0c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
dec eax
lea edx, [esi - 0x20]
push eax
push ecx
push edx
push 0x5389a8
call fcn.0040e520
mov eax, dword [0x56639c]
add esp, 0x10
inc edi
add esi, 0x30
cmp edi, eax
jb 0x4a9317
mov eax, dword [0x59c2f8]
mov dword [0x5868f4], eax
call fcn.004a9090
pop edi
pop esi
test eax, eax
je 0x4a935c
mov dword [0x5868f4], 0
mov ecx, dword [0x59c2f0]
mov dword [0x5868f8], ecx
call fcn.004a9390
mov ecx, section..taihang
call fcn.00499610
mov ecx, 0x586a2c
call fcn.004d8860
call fcn.00412dc0
add esp, 0x22c
ret
Function at 0x4aac70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x670
mov ecx, dword [esp + 0x678]
push ebx
lea eax, [esp + 0x5c]
push ecx
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x10], 0x147
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0x21
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
mov dword [esp + 4], eax
test eax, eax
jle 0x4aadb5
push ebp
mov ebp, dword [esp + 0x688]
push esi
mov esi, dword [esp + 0x680]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x688]
lea edx, [esp + 0x14]
push edx
push 0x400
push ebx
push eax
mov word [esp + 0x78], 0
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4aada5
lea ecx, [esp + 0x68]
push ecx
call fcn.004beab0
mov eax, dword [esp + 0x690]
add esp, 4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x270]
push edx
push eax
push str._s____s
push 0x208
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
je 0x4aad55
mov edx, dword [esp + 0x694]
lea ecx, [esp + 0x270]
inc edx
push edx
push ebp
push ecx
push eax
push esi
call fcn.004aac70
add esp, 0x14
jmp 0x4aada5
mov eax, dword [esp + 0x1c]
test ah, 8
jne 0x4aada5
test byte [esp + 0x20], 3
jne 0x4aada5
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4aada5
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
push 0
lea edx, [esp + 0x278]
push 0x40b
push esi
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], edx
call edi
cmp ebp, dword [esp + 0x24]
jne 0x4aada5
push 0
push eax
push 0x14e
push esi
call edi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x4aacca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret

Function at 0x4acf50
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x4acf8c
cmp word [esi], 0
je 0x4acf8c
call fcn.004acf30
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 0x4acfa9
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 0x4acfa9
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x4afb20
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.004afd30
add esp, 8
test eax, eax
jne 0x4afb59
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.004afd70
add esp, 8
test eax, eax
jne 0x4afb99
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 0x4afbdb
xor esi, esi
jmp 0x4afc6e
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4afbf3
xor esi, esi
jmp 0x4afc6e
mov eax, dword [esp + 8]
cmp ax, 0x76c
jae 0x4afc01
xor eax, eax
jmp 0x4afc6c
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 0x5389a8
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 0x4afca0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x566658]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4afcf2
lea eax, [esp]
mov dword [esp], 1
push eax
push str.ShowNumMenu
push str.skin
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x4afcdc
mov dword [0x566658], 1
jmp 0x4afcf2
mov eax, dword [esp]
test eax, eax
mov dword [0x566658], eax
jne 0x4afcf2
call fcn.004afb20
test eax, eax
je 0x4afd23
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 0
push edx
push 0x4afdf0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4afd23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
ret

Function at 0x4afd30
Capabilities:
Check if file exists

Disassembly:
push esi
push str.newSkin.dat
mov ecx, 0x56bcc8
call fcn.0040c170
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
Function at 0x4afd70
Capabilities:
Check if file exists

Disassembly:
push esi
push str.Update.ini
push str.SkinUpdate
mov ecx, 0x56bcc8
call fcn.0040c170
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push str._sdata_s_s
dec eax
push eax
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
ret

Function at 0x4b10d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x210
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 0x56bc90
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
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 0x4b1145
cmp word [esp + 8], ax
je 0x4b1145
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret

Function at 0x4b1d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004b2160
mov eax, dword [esi + 4]
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [esi + 0x1874]
mov ecx, ebx
call fcn.00426160
lea edx, [ebx + 0x5d4e0]
mov ecx, 0x412
xor eax, eax
mov edi, edx
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x214]
push ecx
push 0x5384a4
push 0x824
push edx
call ebp
mov dx, word [0x56bc90]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], dx
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esi + 0x125c]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esi + 0xc]
push str._s_s.zip
push 0x103
push eax
call ebp
lea edx, [ebx + 0x5d0d0]
mov ecx, 0x82
xor eax, eax
mov edi, edx
add esp, 0x14
rep stosd dword es:[edi], eax
lea eax, [esi + 0xc]
push eax
push 0x5384a4
push 0x104
push edx
call ebp
mov esi, dword [esi + 4]
add esp, 0x10
mov ecx, ebx
mov dword [ebx + 0x269c], 0x4b1e90
mov dword [ebx + 0x2698], esi
call fcn.00426090
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret