joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eee0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1380]
mov eax, 0x1400
call fcn.00458500
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x137c], eax
push ebx
mov ebx, dword [ebp + 0x138c]
push esi
mov esi, dword [ebp + 0x1388]
push esi
lea eax, [ebp + 0x1d4]
push str._s.
push eax
call fcn.004567da
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x40efdb
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40efdb
cmp word [ebp - 0x50], 0x2e
je 0x40ef3f
cmp word [ebp - 0x4e], 0
je 0x40ef3f
cmp word [ebp - 0x4e], 0x2e
jne 0x40ef70
cmp word [ebp - 0x4c], 0
je 0x40ef3f
and word [ebp + 0x1174], 0
push 0x206
lea eax, [ebp + 0x1176]
push 0
push eax
call fcn.00456900
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x9a4]
push 0x4b70c8
push eax
call fcn.004567da
lea eax, [ebp + 0x1174]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040e9bd
lea eax, [ebp + 0x1174]
push ebx
push eax
call fcn.00458410
add esp, 0x2c
test eax, eax
jne 0x40ef3f
lea eax, [ebp + 0x9a4]
push eax
call fcn.0040ea9e
pop ecx
jmp 0x40ef3f
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x137c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0x1380
leave
ret

Function at 0x40effb
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f012
xor al, al
leave
ret
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x40f091
push esi
push edi
mov byte [ebp - 1], bl
call fcn.0045a114
mov esi, eax
cmp esi, ebx
pop ecx
je 0x40f084
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f084
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4de160
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f084
push 0x34
push dword [ebp - 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00459d60
add esp, 0xc
cmp dword [ebp - 0x44], 0xfeef04bd
sete byte [ebp - 1]
push esi
call fcn.00459cce
cmp byte [ebp - 1], bl
pop ecx
pop esi
jne 0x40f095
xor al, al
jmp 0x40f0bf
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ecx], eax
movzx eax, word [ebp - 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ecx], eax
movzx eax, word [ebp - 0x38]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x40f247
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xf60]
sub esp, 0xfe0
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0xf5c], eax
push esi
mov esi, dword [ebp + 0xf68]
push 0x7d0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x4b82b4
call fcn.0045697a
pop ecx
lea eax, [ebp + eax*2 - 0x44]
push eax
call fcn.004568d5
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004568ab
push 0x3c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00456900
add esp, 0x1c
xor ecx, ecx
inc ecx
push ecx
push 0
push 0
mov eax, str.open
push esi
push eax
push 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 0x200
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop esi
ja 0x40f2e3
lea eax, [ebp - 0x44]
push eax
call fcn.0040e7e9
pop ecx
mov ecx, dword [ebp + 0xf5c]
xor ecx, ebp
call fcn.004562c9
add ebp, 0xf60
leave
ret

Function at 0x40f2f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0045697a
test eax, eax
pop ecx
je 0x40f350
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00456900
add esp, 0xc
xor ecx, ecx
inc ecx
push ecx
push 0
push 0
mov eax, str.open
push esi
push eax
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40f350
push esi
call fcn.0040e7e9
pop ecx
pop esi
leave
ret
Function at 0x40fbee
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x20
mov eax, 0x4af243
call fcn.004562d8
mov eax, dword [ebp + 0x238]
mov ebx, dword [ebp + 0x234]
mov edi, dword [ebp + 0x230]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 0x20], esi
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x40fc56
push 0x4de180
mov ecx, edi
call fcn.00401640
mov eax, edi
jmp 0x40fd45
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043a762
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x28]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, esi
jne 0x40fc96
push edi
call fcn.0043a767
mov ecx, dword [ebp - 0x10]
mov dword [esp], 0x4de180
call fcn.00401640
jmp 0x40fd42
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call sub.VERSION.dll_VerQueryValueW
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4de160
push edi
mov dword [ebp - 0x20], esi
call sub.VERSION.dll_VerQueryValueW
push 0x206
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.00456900
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], esi
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp + 0x1c]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0040f1e0
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x14], esi
jne 0x40fd1d
push edi
call fcn.0043a767
jmp 0x40fc82
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.00401640
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.00403660
push esi
push 1
lea ecx, [ebp]
call fcn.00401840
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.004562c9
add ebp, 0x228
leave
ret
Function at 0x410815
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x63c
lea ebp, [esp - 4]
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x63c], eax
push 0x40
mov eax, 0x4af353
call fcn.004562d8
mov ebx, dword [ebp + 0x648]
xor esi, esi
push 0x228
lea eax, [ebp + 4]
push esi
push eax
mov dword [ebp], esi
call fcn.00456900
mov edi, 0x206
push edi
lea eax, [ebp + 0x436]
push esi
push eax
mov word [ebp + 0x434], si
call fcn.00456900
add esp, 0x18
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x410884
xor eax, eax
jmp 0x4108e2
lea ecx, [ebp]
push ecx
push eax
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4108d2
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x434]
push eax
call fcn.004568d5
lea eax, [ebp + 0x434]
push eax
call fcn.004599a3
lea eax, [ebp + 0x434]
push eax
call fcn.0040e5f0
add esp, 0x10
test al, al
jne 0x410905
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x410897
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x63c]
xor ecx, ebp
call fcn.004562c9
add ebp, 0x640
leave
ret
push edi
lea eax, [ebp + 0x22e]
push esi
push eax
mov word [ebp + 0x22c], si
call fcn.00456900
add esp, 0xc
push dword [ebp + 8]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea ecx, [ebp + 0x22c]
push ecx
push esi
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
sub esp, 0x1c
lea eax, [ebp + 0x22c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00401640
sub esp, 0x1c
lea eax, [ebp + 0x434]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [ebp - 4], esi
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040f813
xor esi, esi
inc esi
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.004107c0
lea ecx, [ebp - 0x4c]
call fcn.0040f60f
mov eax, esi
jmp 0x4108e2

Function at 0x415e90
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, esi
mov dword [esi + 4], ecx
pop esi
ret 4
Function at 0x415f23
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x415ed6
push edi
push edi
mov dword [0x4f4a50], edi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push edi
push 0x4b8aa0
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [0x4f4a50]
sub eax, dword [ebp - 0x10]
cmp ecx, 1
jle 0x415fa8
cmp ecx, edi
jle 0x415fa8
mov esi, 0x4f49b8
mov edx, dword [esi]
cmp edx, eax
jle 0x415fa2
mov eax, edx
add esi, 0x10
dec ecx
jne 0x415f9a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416008
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push 0x4b8aa0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret

Function at 0x416052
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push 0x4b8aa0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x41609c
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push 0x4b8aa0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x416101
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0xb90], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x782]
push edi
push eax
mov word [ebp + 0x780], di
call fcn.00456900
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.004568d5
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.00456900
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.004567da
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.00456900
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.00456900
add esp, 0x44
push 0x104
lea eax, [ebp + 0x988]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x988]
push 0x5c
push eax
call fcn.004567aa
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x578]
push eax
call esi
test eax, eax
je 0x4162d9
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.0045697a
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.004568d5
lea eax, [ebp + 0x370]
push eax
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._s_s.txt
push eax
call fcn.004567da
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.0045c853
add esp, 0x2c
lea eax, [ebp + 0x578]
push eax
mov word [ebp + 0x36e], di
mov dword [ebp - 0x7c], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x41625b
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x4b8abc
push eax
call fcn.004588c0
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4162d8
cmp dword [ebp - 0x7c], edi
jne 0x416290
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.00458778
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.0045697a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00458778
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.00458778
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.00458778
push esi
call fcn.0045859d
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0xb94
leave
ret
Function at 0x4162f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fb4]
mov eax, 0x2034
call fcn.00458500
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x1fb0], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1ba2]
push edi
push eax
mov word [ebp + 0x1ba0], di
call fcn.00456900
lea eax, [ebp + 0x1ba0]
push str.C:log_
push eax
call fcn.004568d5
push 0x7fe
lea eax, [ebp + 0xf92]
push edi
push eax
mov word [ebp + 0xf90], di
call fcn.00456900
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._sgswb.log
push eax
call fcn.004567da
push esi
lea eax, [ebp + 0x1792]
push edi
push eax
mov word [ebp + 0x1790], di
call fcn.00456900
push esi
lea eax, [ebp + 0x1daa]
push edi
push eax
mov word [ebp + 0x1da8], di
call fcn.00456900
add esp, 0x44
push 0x104
lea eax, [ebp + 0x1da8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1da8]
push 0x5c
push eax
call fcn.004567aa
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x1998]
push eax
call esi
test eax, eax
je 0x416518
lea eax, [ebp + 0x1da8]
push ebx
push eax
call fcn.0045697a
lea eax, [ebp + eax*2 + 0x1daa]
push eax
lea eax, [ebp + 0x1790]
push eax
call fcn.004568d5
lea eax, [ebp + 0x1790]
push eax
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._s_s.txt
push eax
call fcn.004567da
lea eax, [ebp + 0x1fc0]
push eax
push dword [ebp + 0x1fbc]
lea eax, [ebp + 0xf90]
push 0x3ff
push eax
call fcn.0045c853
push edi
call fcn.00459781
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edx
call fcn.0045949d
lea ecx, [ebp + 0xf90]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x70]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.004567da
add esp, 0x58
lea eax, [ebp + 0x1998]
push eax
mov word [ebp + 0x178e], di
mov dword [ebp - 0x74], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x41649a
mov dword [ebp - 0x74], ebx
lea eax, [ebp + 0x1998]
push 0x4b8abc
push eax
call fcn.004588c0
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x416517
cmp dword [ebp - 0x74], edi
jne 0x4164cf
push esi
push 2
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x78], 0xfeff
call fcn.00458778
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call fcn.0045697a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00458778
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xd
call fcn.00458778
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xa
call fcn.00458778
push esi
call fcn.0045859d
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0x1fb0]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0x1fb4
leave
ret
Function at 0x416764
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x418], ecx
mov word [ebp - 0x20c], bx
call fcn.00456900
push esi
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call fcn.00456900
push dword [ebp + 8]
mov esi, 0x4b6f00
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004567da
add esp, 0x24
cmp byte [ebp + 0xc], bl
mov edi, str.Actions
je 0x4167d6
push ebx
jmp 0x4167ed
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004567da
add esp, 0xc
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [ebp + 0xc], bl
pop edi
pop esi
pop ebx
jne 0x41682e
push dword [ebp + 8]
mov ecx, dword [ebp - 0x418]
call fcn.004165d5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004562c9
leave
ret 8

Function at 0x41683c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4168f7
push esi
xor esi, esi
inc esi
cmp esi, 1
je 0x4168e9
cmp esi, 0xf
je 0x4168e9
cmp esi, 0x10
je 0x4168e9
cmp esi, 0x18
je 0x4168e9
cmp esi, 0x19
je 0x4168e9
cmp esi, 0x52
je 0x4168e9
cmp esi, 0x63
je 0x4168e9
cmp esi, 0x9d
je 0x4168e9
cmp esi, 0x62
jne 0x4168df
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00456900
push esi
lea eax, [ebp - 0x20c]
push 0x4b6f00
push eax
call fcn.004567da
add esp, 0x18
push edi
push 0x4bbbcc
lea eax, [ebp - 0x20c]
push eax
push str.Actions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4168e9
push 1
push esi
mov ecx, edi
call fcn.00416764
inc esi
cmp esi, 0x9e
jl 0x416865
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004562c9
leave
ret

Function at 0x4176ea
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x417644
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x417719
cmp eax, 0xffffffff
je 0x417719
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x418f2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x4f4c68], edi
mov esi, ecx
je 0x419073
cmp dword [esi + 0x20], 8
jb 0x418f50
mov eax, dword [esi + 0xc]
jmp 0x418f53
lea eax, [esi + 0xc]
push ebx
push 0x4bbce4
push eax
push dword [0x4f0bd8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x419072
push ebx
push dword [0x4f0bd8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x4f0bd8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.00459d60
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 0xc]
call fcn.00417e9b
cmp eax, edi
pop ecx
pop ecx
je 0x419072
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x4f4c6c
call fcn.00418ced
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x4f0bd8]
push edi
push ebx
push edi
push edi
push edi
push SysReAllocString
push 0x80c80000
push edi
push dword [0x4f0bd4]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x24], eax
call edi
test eax, 0x10000000
jne 0x419038
mov byte [esi + 0x2c], 1
jmp 0x41905c
test eax, 0x21000000
je 0x419045
mov byte [esi + 0x2c], 5
jmp 0x41905c
push 8
push dword [esi + 0x24]
mov byte [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ecx, esi
call fcn.00418703
push 0xfffffffffffffffc
push ebx
call edi
push 0x418d62
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4198ed
Capabilities:
Copy file

Disassembly:
call fcn.004196fd
mov ecx, eax
jmp fcn.00419c9f

Function at 0x4198f9
Capabilities:
Copy file

Disassembly:
call fcn.004196fd
mov ecx, eax
jmp fcn.0041a132

Function at 0x419a12
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xe8], 8
jb 0x419a26
mov eax, dword [esi + 0xd4]
jmp 0x419a2c
lea eax, [esi + 0xd4]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov ebp, 0x4b83bc
push ebp
push str.ModifySetConfig
mov ebx, str.SetModify
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x419a5a
mov eax, dword [esi + 0xd4]
jmp 0x419a60
lea eax, [esi + 0xd4]
push eax
push ebp
push str.ModifySetConfig64
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x419a7b
mov eax, dword [esi + 0xd4]
jmp 0x419a81
lea eax, [esi + 0xd4]
push eax
push ebp
push str.TempModifySetConfig
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x419a9c
mov eax, dword [esi + 0xd4]
jmp 0x419aa2
lea eax, [esi + 0xd4]
push eax
push ebp
push 0x4bbfbc
push ebx
call edi
pop edi
lea eax, [esi + 0xb4]
cmp dword [eax + 0x18], 8
pop ebp
pop ebx
jb 0x419ac0
mov eax, dword [eax + 4]
jmp 0x419ac3
add eax, 4
add esi, 0x98
cmp dword [esi + 0x18], 8
jb 0x419ad4
mov esi, dword [esi + 4]
jmp 0x419ad7
add esi, 4
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop esi
ret