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

Disassembly:
push 0xffffffffffffffff
push 0x5223bb
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 0x4bd16b
push ebx
push esi
push edi
push ebp
mov ecx, 0x56e210
call fcn.0040c380
mov esi, eax
mov eax, dword [0x5391a0]
cmp esi, ebp
mov dword [esp + 0x10], eax
je 0x4bd011
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, ebp
je 0x4bd011
lea ecx, [ebx + ebx + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebp
je 0x4bd011
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 0x4bd05d
lea ecx, [esp + 0x10]
call fcn.00405240
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405040
test eax, eax
je 0x4bd05d
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 0x4bd0aa
mov ebx, dword [sym.imp.MSVCRT.dll_wcschr]
mov ax, word [esi]
push eax
push 0x53abc8
call ebx
add esp, 8
test eax, eax
je 0x4bd088
cmp edi, ebp
jne 0x4bd08a
mov edi, esi
jmp 0x4bd08a
xor edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], bp
jne 0x4bd06e
cmp edi, ebp
je 0x4bd0aa
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 str.360se
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 0x4bd12b
mov eax, dword [esp + 8]
mov dword [eax + 0x990], 1
mov ecx, dword [0x59e2f0]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
inc ecx
mov dword [edx + 0x99c], ecx
mov edx, dword [0x539120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4bd16b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4bd16b
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0x41c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x424
ret
mov ecx, 0x587600
jmp 0x4bcf80
Function at 0x4bdec0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4bde34
lea eax, [esp + 8]
mov dword [ebx + 4], 1
push eax
push str.NotJoinPrivate
push str.option
mov dword [esp + 0x14], 0
call fcn.0040ea80
mov eax, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4bde34
mov ecx, dword [0x587f74]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ecx, 0x1d4c0
mov eax, 1
jbe 0x4bdda6
call esi
push 0
push eax
push 0x66
jmp 0x4bddb1
test ecx, ecx
jne 0x4bddbb
call esi
push 0
push eax
push 0x65
call fcn.004d7460
add esp, 0xc
xor eax, eax
mov ecx, dword [0x587f7c]
cmp ecx, 0x1d4c0
jbe 0x4bddda
call esi
push 0
push eax
push 0x68
call fcn.004d7460
add esp, 0xc
jmp 0x4bddf3
test ecx, ecx
jne 0x4bddef
call esi
push 0
push eax
push 0x67
call fcn.004d7460
add esp, 0xc
jmp 0x4bddf3
test eax, eax
jne 0x4bddfc
call fcn.004a83c0
test eax, eax
je 0x4bde34
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0
push ebx
push 0x4bd280
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4bde34
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, 0x587600
jmp 0x4bdd40

Function at 0x4be050
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 0x4be115
push 0
mov ecx, 0x56e210
call fcn.0040c380
mov edi, eax
test edi, edi
je 0x4be115
push esi
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4be09e
cmp word [eax + 2], 0
lea esi, [ebx + 8]
push edi
jne 0x4be0a2
push 0x569650
jmp 0x4be0a7
lea esi, [ebx + 8]
push edi
push 0x569638
push 0x104
push esi
call fcn.0042dfe0
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4be10d
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 0x568cb0
lea eax, [esp + 0x14]
push 0x40
push eax
call fcn.0042dfe0
add esp, 0x10
lea ecx, [esp + 0xc]
push esi
push ecx
push 0x569630
push 0x569628
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebx + 4], 1
pop esi
pop edi
pop ebx
add esp, 0x80
ret

Function at 0x4be1d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, ecx
call fcn.004be050
mov eax, dword [esi + 4]
test eax, eax
je 0x4be236
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x4be236
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 0x568cb0
push 0x20
push ecx
call fcn.0042dfe0
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 0x4be240
Capabilities:
Delete file

Disassembly:
sub esp, 0x80
push esi
mov esi, ecx
call fcn.004be050
mov eax, dword [esi + 4]
test eax, eax
je 0x4be2cc
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x55a14c
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
test eax, eax
je 0x4be27c
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 0x568cb0
lea eax, [esp + 0x10]
push 0x40
push eax
call fcn.0042dfe0
add esp, 0x10
lea ecx, [esp + 8]
push esi
push ecx
push 0x569630
push 0x569628
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
add esp, 0x80
ret

Function at 0x4be4e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x5881e8]
sub esp, 0x10
test eax, eax
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4be626
mov dword [0x5881e8], 1
mov eax, dword [ebx + 0x214]
test eax, eax
je 0x4be626
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 0x4be626
mov esi, dword [0x587fb4]
mov ecx, dword [0x587fb8]
test esi, esi
je 0x4be55b
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 0x4be626
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 0x4be5a0
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 0x4be57a
mov ecx, dword [0x587fb8]
mov esi, dword [0x587fb4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [0x587fb8], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
mov ecx, 0x587fb0
call fcn.004bedb0
mov edx, dword [ebx + 0x218]
mov ebp, dword [ebx + 0x214]
mov eax, edx
cmp eax, edx
je 0x4be5eb
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 0x4be5d1
mov eax, dword [ebx + 0x218]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x4be2e0
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
Function at 0x4be7a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push esi
push edi
mov esi, ecx
call fcn.004be050
mov eax, dword [esi + 4]
test eax, eax
je 0x4be8c6
lea eax, [esi + 8]
push eax
push 0
push 0x569630
push 0x569628
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
mov edi, eax
call dword [sym.imp.MSVCRT.dll_time]
sub eax, edi
add esp, 4
cmp eax, 0x15180
jge 0x4be7ee
test eax, eax
jge 0x4be8c6
mov ecx, esi
call fcn.004be730
mov ecx, esi
call fcn.004be630
push 0x1e
push 0
push str.biaoqian
mov ecx, esi
call fcn.004be8d0
push 0x1e
push 1
push str.addbar
mov ecx, esi
call fcn.004be8d0
push 0x1e
push 1
push str.anniu
mov ecx, esi
call fcn.004be8d0
push 0
push 0x1e
push 1
push str.skinbutton
mov ecx, esi
call fcn.004beb30
push 0
push 0x1e
push 1
push str.newblank3
mov ecx, esi
call fcn.004beb30
push 0
push 0x1e
push 1
push str.myapp3
mov ecx, esi
call fcn.004beb30
push 0
push 0x52
push 1
push str.menu
mov ecx, esi
call fcn.004beb30
mov ecx, esi
call fcn.004be750
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x104
push ecx
stosw word es:[edi], ax
call fcn.00402990
add esp, 8
lea edx, [esp + 8]
mov ecx, esi
push edx
push 0x1e
push 1
push str.jiasu
call fcn.004beb30
mov ecx, esi
call fcn.004be4e0
mov ecx, esi
call fcn.004be240
pop edi
pop esi
add esp, 0x208
ret
Function at 0x4be8d0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2360
call fcn.0051d7f0
push ebp
push esi
push edi
mov eax, 0x569718
mov edi, ecx
test eax, eax
mov dword [esp + 0x10], edi
je 0x4beb1f
mov esi, dword [esp + 0x2370]
xor ebp, ebp
cmp esi, ebp
je 0x4beb1f
call fcn.004be050
cmp dword [edi + 4], ebp
je 0x4beb1f
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xd6]
mov word [esp + 0xd4], bp
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call fcn.004521e0
push eax
call fcn.0049bb50
push eax
push esi
push 0x569718
push 0x5696e4
lea ecx, [esp + 0xec]
push 0x824
push ecx
call fcn.0042dfe0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x2398]
add esp, 0x1c
xor ebx, ebx
cmp eax, ebp
jbe 0x4bea83
jmp 0x4be984
mov esi, dword [esp + 0x2374]
push ebx
push 0x568cb0
lea edx, [esp + 0x20]
push 0x20
push edx
call fcn.0042dfe0
mov eax, dword [esp + 0x24]
add esp, 0x10
add eax, 8
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], bp
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
mov ecx, 0xa
div ecx
push esi
test edx, edx
je 0x4be9ea
push 0x5696d8
lea edx, [esp + 0x60]
push 0x40
push edx
call fcn.0042dfe0
add esp, 0x10
jmp 0x4bea0c
mov eax, 0xcccccccd
mul ebx
shr edx, 3
add edx, 0x61
lea eax, [esp + 0x5c]
push edx
push 0x5696c4
push 0x40
push eax
call fcn.0042dfe0
add esp, 0x14
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x4bea2f
lea edx, [esp + 0x10]
lea eax, [esp + 0xd8]
push edx
push 0x824
push eax
call fcn.004918e0
cmp eax, ebp
jl 0x4bea73
mov ecx, dword [esp + 0x10]
mov eax, 0x824
sub eax, ecx
mov edi, SysReAllocString
lea esi, [esp + 0x58]
lea ecx, [esp + ecx*2 + 0xd8]
je 0x4bea6d
cmp edi, ebp
je 0x4bea69
mov dx, word [esi]
cmp dx, bp
je 0x4bea69
mov word [ecx], dx
add ecx, 2
add esi, 2
dec eax
dec edi
cmp eax, ebp
jne 0x4bea4c
jmp 0x4bea6d
cmp eax, ebp
jne 0x4bea70
sub ecx, 2
mov word [ecx], bp
mov eax, dword [esp + 0x237c]
inc ebx
cmp ebx, eax
jb 0x4be97d
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x1122]
mov word [esp + 0x1120], bp
rep stosd dword es:[edi], eax
lea esi, [esp + 0xd8]
lea ecx, [esp + 0x1120]
stosw word es:[edi], ax
mov edx, 0x824
lea eax, [esp + 0x1120]
sub esi, ecx
pop ebx
lea ecx, [edx + 0x7ffff7da]
test ecx, ecx
je 0x4bead8
mov cx, word [esi + eax]
cmp cx, bp
je 0x4bead8
mov word [eax], cx
add eax, 2
dec edx
jne 0x4beaba
jmp 0x4beadc
cmp edx, ebp
jne 0x4beadf
sub eax, 2
mov edx, dword [esp + 0x2370]
push SysReAllocString
mov word [eax], bp
push edx
push ebp
lea eax, [esp + 0x2170]
push 0x104
push eax
call fcn.00519a30
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x111c]
add ecx, 0x210
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.004bf130
pop edi
pop esi
pop ebp
add esp, 0x2360
ret 0xc
Function at 0x4beb30
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2360
call fcn.0051d7f0
push ebp
push esi
push edi
mov eax, 0x5697fc
mov edi, ecx
test eax, eax
mov dword [esp + 0x10], edi
je 0x4bed96
mov esi, dword [esp + 0x2370]
xor ebp, ebp
cmp esi, ebp
je 0x4bed96
call fcn.004be050
cmp dword [edi + 4], ebp
je 0x4bed96
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xd6]
mov word [esp + 0xd4], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x237c]
cmp eax, ebp
jne 0x4bebc2
call fcn.0049bb50
push eax
call fcn.004521e0
push eax
push esi
push 0x5697fc
push 0x5697c4
lea ecx, [esp + 0xe8]
push 0x824
push ecx
call fcn.0042dfe0
add esp, 0x1c
jmp 0x4bebef
push eax
call fcn.0049bb50
push eax
call fcn.004521e0
push eax
push esi
push 0x5697fc
push 0x569778
lea edx, [esp + 0xec]
push 0x824
push edx
call fcn.0042dfe0
add esp, 0x20
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x2378]
push ebx
xor ebx, ebx
cmp eax, ebp
jbe 0x4becfa
push ebx
push 0x568cb0
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0042dfe0
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x18]
lea eax, [ecx + 8]
push eax
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], bp
cmp ebx, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
jbe 0x4bec68
push 0x5696d8
lea eax, [esp + 0x60]
push 0x40
push eax
jmp 0x4bec74
push 0x569768
lea ecx, [esp + 0x60]
push 0x40
push ecx
call fcn.0042dfe0
lea edx, [esp + 0x20]
add esp, 0x10
test edx, edx
je 0x4bec9f
lea eax, [esp + 0x10]
lea ecx, [esp + 0xd8]
push eax
push 0x824
push ecx
call fcn.004918e0
cmp eax, ebp
jl 0x4becea
mov ecx, dword [esp + 0x10]
mov eax, 0x824
sub eax, ecx
mov edi, SysReAllocString
lea esi, [esp + 0x58]
lea ecx, [esp + ecx*2 + 0xd8]
je 0x4becdd
cmp edi, ebp
je 0x4becd9
mov dx, word [esi]
cmp dx, bp
je 0x4becd9
mov word [ecx], dx
add ecx, 2
add esi, 2
dec eax
dec edi
cmp eax, ebp
jne 0x4becbc
jmp 0x4becdd
cmp eax, ebp
jne 0x4bece0
sub ecx, 2
mov esi, dword [esp + 0x2374]
mov word [ecx], bp
mov eax, dword [esp + 0x237c]
inc ebx
cmp ebx, eax
jb 0x4bec15
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x1122]
mov word [esp + 0x1120], bp
rep stosd dword es:[edi], eax
lea esi, [esp + 0xd8]
lea ecx, [esp + 0x1120]
stosw word es:[edi], ax
mov edx, 0x824
lea eax, [esp + 0x1120]
sub esi, ecx
pop ebx
lea ecx, [edx + 0x7ffff7da]
test ecx, ecx
je 0x4bed4f
mov cx, word [esi + eax]
cmp cx, bp
je 0x4bed4f
mov word [eax], cx
add eax, 2
dec edx
jne 0x4bed31
jmp 0x4bed53
cmp edx, ebp
jne 0x4bed56
sub eax, 2
mov edx, dword [esp + 0x2370]
push SysReAllocString
mov word [eax], bp
push edx
push ebp
lea eax, [esp + 0x2170]
push 0x104
push eax
call fcn.00519a30
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x111c]
add ecx, 0x210
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.004bf130
pop edi
pop esi
pop ebp
add esp, 0x2360
ret 0x10
Function at 0x4c04d0
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov eax, 0x466c
call fcn.0051d7f0
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62]
mov word [esp + 0x60], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x268]
push 0x569974
lea eax, [esp + 0x64]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, 6
mov esi, 0x56995c
lea edi, [esp + 0x470]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x7c
lea edi, [esp + 0x488]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c066f
lea edx, [esp + 0x60]
push edx
call fcn.004519a0
add esp, 4
test eax, eax
je 0x4c066f
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
mov word [esp + 0x678], bx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov ecx, 0xfff
mov dword [esp + 0x14], eax
lea edi, [esp + 0x67a]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x470]
mov dword [esp + 0xc], ebx
push ecx
push edx
stosw word es:[edi], ax
push 0x56994c
lea eax, [esp + 0x684]
push 0x1fff
push eax
mov dword [esp + 0x30], 0x44
mov word [esp + 0x60], 5
mov dword [esp + 0x5c], 0x80
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x678]
push ecx
push edx
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4c0653
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0x466c
ret
push 5
lea ecx, [esp + 0x474]
push ebx
lea edx, [esp + 0x68]
push ecx
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
add esp, 0x466c
ret
Function at 0x4c0680
Capabilities:
Check os version

Disassembly:
sub esp, 0x31c
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ebx, ebx
cmp eax, 2
mov dword [0x5884ec], edx
mov dword [0x5884f8], edx
mov dword [0x5884f0], edx
mov dword [0x5884f4], edx
mov dword [0x5884fc], edx
mov dword [0x588500], ebx
mov dword [0x588504], edx
mov dword [0x588508], edx
mov dword [0x58850c], edx
mov dword [0x588510], edx
mov dword [0x588514], edx
mov dword [0x588518], edx
mov esi, 1
jne 0x4c076c
mov eax, dword [esp + 0x10]
cmp eax, 5
jne 0x4c071b
mov eax, dword [esp + 0x14]
cmp eax, edx
jne 0x4c070f
mov dword [0x5884f8], esi
jmp 0x4c0776
cmp eax, esi
jne 0x4c0776
mov dword [0x5884f0], esi
jmp 0x4c0776
cmp eax, 6
jne 0x4c074e
mov eax, dword [esp + 0x14]
mov dword [0x5884f0], esi
cmp eax, esi
mov dword [0x5884f4], esi
jne 0x4c073c
mov dword [0x5884fc], esi
jmp 0x4c0776
jbe 0x4c0776
mov ebx, esi
mov dword [0x5884fc], esi
mov dword [0x588500], ebx
jmp 0x4c0776
jbe 0x4c0776
mov ebx, esi
mov dword [0x5884f0], esi
mov dword [0x5884f4], esi
mov dword [0x5884fc], esi
mov dword [0x588500], ebx
jmp 0x4c0776
cmp eax, esi
jne 0x4c0776
mov dword [0x5884ec], esi
mov cx, word [0x56e1d0]
xor eax, eax
mov word [esp + 0x120], cx
mov ecx, 0x81
lea edi, [esp + 0x122]
cmp ebx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
je 0x4c07b8
lea edx, [esp + 0x124]
push edx
call fcn.004c1610
push eax
call fcn.0043f930
add esp, 0xc
jmp 0x4c07c8
lea eax, [esp + 0x124]
push eax
call fcn.004c1680
add esp, 8
mov ax, word [esp + 0x120]
cmp ax, 0x37
jne 0x4c07f0
mov dword [0x588508], esi
call fcn.004c09d0
pop edi
pop esi
mov dword [0x588518], eax
pop ebx
add esp, 0x31c
ret
cmp ax, 0x36
jne 0x4c0810
mov dword [0x588504], esi
call fcn.004c09d0
pop edi
pop esi
mov dword [0x588518], eax
pop ebx
add esp, 0x31c
ret
cmp ax, 0x38
jne 0x4c0830
mov dword [0x58850c], esi
call fcn.004c09d0
pop edi
pop esi
mov dword [0x588518], eax
pop ebx
add esp, 0x31c
ret
cmp ax, 0x39
jne 0x4c0850
mov dword [0x588510], esi
call fcn.004c09d0
pop edi
pop esi
mov dword [0x588518], eax
pop ebx
add esp, 0x31c
ret
cmp ax, 0x31
jne 0x4c0867
cmp word [esp + 0x122], 0x30
jne 0x4c0867
mov dword [0x588514], esi
call fcn.004c09d0
pop edi
pop esi
mov dword [0x588518], eax
pop ebx
add esp, 0x31c
ret

Function at 0x4c08d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x4c0904
cmp dword [esp + 4], 5
jne 0x4c0904
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x4c0906
xor eax, eax
add esp, 0x114
ret

Function at 0x4c0a40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
test esi, esi
jne 0x4c0a61
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x4c0a80
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3000
call fcn.0051d7f0
mov eax, dword [esp + 0x3004]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
je 0x4c0b91
mov ebx, dword [esp + 0x3014]
cmp ebx, esi
je 0x4c0b91
cmp dword [esp + 0x3018], esi
je 0x4c0b91
mov ebp, dword [esp + 0x301c]
cmp ebp, esi
je 0x4c0b91
mov edx, dword [esp + 0x3020]
cmp edx, esi
je 0x4c0b91
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x1012]
mov word [esp + 0x1010], si
push edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3018]
push 0x1000
stosw word es:[edi], ax
lea eax, [esp + 0x1018]
push eax
push 0x56e1d0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4c0b84
lea edx, [esp + 0x1010]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4c0b84
mov ecx, dword [ebp]
shr eax, 1
dec eax
cmp ecx, eax
jae 0x4c0b3a
mov eax, ecx
mov dword [ebp], eax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x1000
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1014]
push eax
push ecx
call fcn.004bf5a0
mov edx, dword [ebp]
mov ecx, dword [esp + 0x3028]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.004c41a0
add esp, 0x18
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3000
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3000
ret

Function at 0x4c0ba0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push 0xd
xor edi, edi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4c0c0d
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c0c0d
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4c0c02
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4c0c02
mov edi, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push eax
push 0x53a4a4
push edi
push ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [ebx + edi*2 - 2], 0
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret