joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d07b
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d0ca
xor eax, eax
jmp 0x40d19d
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0044fd00
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x53de0c
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
jne 0x40d181
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0044fd00
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp + 0x198]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x198]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.00450218
pop ecx
pop ecx
lea eax, [ebp + 0x198]
push eax
call esi
test eax, eax
je 0x40d19b
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x78]
call fcn.00450242
pop ecx
pop ecx
jmp 0x40d198
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.00450242
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop ebx
call fcn.0044fa75
add ebp, 0x3a4
leave
ret

Function at 0x40d1b3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push esi
push edi
mov edi, dword [ebp + 0x7b0]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0044fd00
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0044fd00
push edi
lea eax, [ebp - 0x2c]
push 0x53dedc
push eax
call fcn.0045025e
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d22b
xor al, al
jmp 0x40d23d
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov al, 1
mov ecx, dword [ebp + 0x7a4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044fa75
add ebp, 0x7a8
leave
ret
Function at 0x40d254
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
push edi
mov edi, dword [ebp + 0x7b4]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0044fd00
push 0x10
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0044fd00
push edi
lea eax, [ebp - 0x28]
push 0x53dedc
push eax
call fcn.0045025e
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d2f0
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.0044fa75
add ebp, 0x7ac
leave
ret
Function at 0x40d513
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x1588]
mov eax, 0x1608
call fcn.00450330
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x1584], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1590]
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x137e]
push ebx
push eax
mov word [ebp + 0x137c], bx
call fcn.0044fd00
push edi
lea eax, [ebp + 0x137c]
push 0x53dedc
push eax
call fcn.0045025e
lea eax, [ebp + 0x137c]
push eax
call fcn.0044f427
lea ecx, [eax - 1]
add esp, 0x1c
test ecx, ecx
jle 0x40d592
lea eax, [ebp + eax*2 + 0x137c]
cmp word [eax - 2], 0x5c
je 0x40d592
mov word [eax], 0x5c
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1d4]
push str._s.
push eax
call fcn.0045025e
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 0x40d670
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40d670
cmp word [ebp - 0x50], 0x2e
je 0x40d5ca
cmp word [ebp - 0x4e], bx
je 0x40d5ca
cmp word [ebp - 0x4e], 0x2e
jne 0x40d5f9
cmp word [ebp - 0x4c], bx
je 0x40d5ca
test byte [ebp - 0x7c], 0x10
je 0x40d63f
push esi
lea eax, [ebp + 0x1176]
push ebx
push eax
mov word [ebp + 0x1174], bx
call fcn.0044fd00
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1174]
push 0x53de44
push eax
call fcn.0045025e
lea eax, [ebp + 0x1174]
push eax
call fcn.0040d513
add esp, 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x9a4]
push 0x53ded0
push eax
call fcn.0045025e
add esp, 0x10
lea eax, [ebp + 0x9a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d5ca
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x1584]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
add ebp, 0x1588
leave
ret

Function at 0x40d719
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.0044f427
test eax, eax
pop ecx
je 0x40d771
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0044fd00
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 0x40d771
push esi
call fcn.0040d1b3
pop ecx
pop esi
leave
ret
Function at 0x40ddb6
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x4d4
lea ebp, [esp - 4]
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x4d4], eax
push 0xc
mov eax, 0x536e1c
call fcn.0044fa84
mov esi, dword [ebp + 0x4e0]
mov edi, dword [ebp + 0x4e4]
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x18], 7
call fcn.004012d9
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x40decc
lea eax, [ebp + 0x1c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40decc
cmp word [ebp + 0x1c], bx
mov dword [ebp - 0x14], ebx
je 0x40decc
lea esi, [ebp + 0x1c]
xor edi, edi
push 0x53f760
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40deb3
push 0x53f758
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40deb3
mov ax, word [esi]
mov word [ebp + 0x4cc], ax
mov ax, word [ebp + edi + 0x1e]
mov word [ebp + 0x4ce], ax
push 0x64
lea eax, [ebp + 0x404]
push eax
lea eax, [ebp + 0x4cc]
push eax
mov word [ebp + 0x4d0], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40df03
lea eax, [ebp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x18]
mov esi, eax
push esi
lea eax, [ebp + 0x404]
push eax
push edi
call fcn.00453db2
add esp, 0xc
test eax, eax
je 0x40df1b
add dword [ebp - 0x14], 4
mov edi, dword [ebp - 0x14]
add edi, edi
lea esi, [ebp + edi + 0x1c]
cmp word [esi], bx
jne 0x40de35
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.004035d2
push ebx
push 1
lea ecx, [ebp]
call fcn.00401376
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4d4]
xor ecx, ebp
call fcn.0044fa75
add ebp, 0x4d8
leave
ret
mov ecx, dword [ebp - 0x10]
call fcn.004035d2
push ebx
push 1
lea ecx, [ebp]
call fcn.00401376
mov eax, dword [ebp - 0x10]
jmp 0x40dee0
lea eax, [ebp + 0x4cc]
push eax
lea ecx, [ebp]
call fcn.004039fd
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp]
call fcn.004039fd
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.004021ca
jmp 0x40df0b
Function at 0x40e05a
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x38
mov eax, 0x536e64
call fcn.0044fa84
mov eax, dword [ebp + 0x24c]
push 1
xor esi, esi
push esi
push esi
push eax
push str.open
push esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40e229
push 0x206
lea eax, [ebp + 0x3a]
push esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov word [ebp + 0x38], si
call fcn.0044fd00
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x20019
push ebx
push esi
push 0x53f6c4
push SysReAllocString
call edi
test eax, eax
je 0x40e0ed
xor eax, eax
jmp 0x40e22c
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push str.shell
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x40e0e6
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push str.opencommand
push dword [ebp - 0x14]
call edi
cmp eax, esi
jne 0x40e0e6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x53de0c
push dword [ebp - 0x18]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x10], esi
jbe 0x40e0e6
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401a45
push esi
push 0x53f76c
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.0040d960
mov edi, eax
cmp edi, 0xffffffff
push esi
lea ecx, [ebp + 0x1c]
jne 0x40e185
push ebx
call fcn.00401376
jmp 0x40e0e6
push 0x53ef74
call fcn.0040d960
push 0x53de0c
lea ecx, [ebp]
mov dword [ebp - 0x20], eax
call fcn.00401a45
cmp dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
lea ecx, [ebp + 0x1c]
jne 0x40e1bf
add edi, 5
push edi
push esi
push eax
call fcn.0040dd4d
mov byte [ebp - 4], 2
jmp 0x40e1ce
add edi, 4
push edi
push esi
push eax
call fcn.0040dd4d
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp]
call fcn.004018bf
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.00401376
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40e1f0
lea eax, [ebp + 4]
push ebx
push esi
push dword [ebp - 0x28]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
push esi
lea ecx, [ebp]
push ebx
ja 0x40e21a
call fcn.00401376
push esi
lea ecx, [ebp + 0x1c]
jmp 0x40e17a
call fcn.00401376
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401376
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 + 0x240]
xor ecx, ebp
call fcn.0044fa75
add ebp, 0x244
leave
ret
Function at 0x414468
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x41441b
push edi
push edi
mov dword [0x5a81e8], 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 0x53fe7c
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 [0x5a81e8]
sub eax, dword [ebp - 0x10]
cmp ecx, 1
jle 0x4144ed
cmp ecx, edi
jle 0x4144ed
mov esi, 0x5a8150
mov edx, dword [esi]
cmp edx, eax
jle 0x4144e7
mov eax, edx
add esi, 0x10
dec ecx
jne 0x4144df
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41454d
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 0x53fe7c
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 0x414597
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 0x53fe7c
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 0x4145e1
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 0x53fe7c
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 0x414646
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x59d680]
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.0044fd00
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.00450242
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0044fd00
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.0045025e
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.0044fd00
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.0044fd00
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.00452736
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 0x41481e
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.0044f427
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.00450242
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.0045025e
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.00453979
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 0x4147a0
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x53f704
push eax
call fcn.0045247d
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x41481d
cmp dword [ebp - 0x7c], edi
jne 0x4147d5
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.00452335
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.0044f427
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00452335
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.00452335
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.00452335
push esi
call fcn.0045215a
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.0044fa75
add ebp, 0xb94
leave
ret

Function at 0x418d71
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x418cbb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x418da0
cmp eax, 0xffffffff
je 0x418da0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x418fc5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x59d680]
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.0044fd00
push esi
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call fcn.0044fd00
push dword [ebp + 8]
mov esi, 0x53ef4c
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0045025e
add esp, 0x24
cmp byte [ebp + 0xc], bl
mov edi, str.Actions
je 0x419037
push ebx
jmp 0x41904e
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.0045025e
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 0x41908f
push dword [ebp + 8]
mov ecx, dword [ebp - 0x418]
call fcn.00418e85
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fa75
leave
ret 8

Function at 0x41909d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59d680]
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 0x419158
push esi
xor esi, esi
inc esi
cmp esi, 1
je 0x41914a
cmp esi, 0xf
je 0x41914a
cmp esi, 0x10
je 0x41914a
cmp esi, 0x18
je 0x41914a
cmp esi, 0x19
je 0x41914a
cmp esi, 0x52
je 0x41914a
cmp esi, 0x63
je 0x41914a
cmp esi, 0x9d
je 0x41914a
cmp esi, 0x62
jne 0x419140
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0044fd00
push esi
lea eax, [ebp - 0x20c]
push 0x53ef4c
push eax
call fcn.0045025e
add esp, 0x18
push edi
push 0x5402fc
lea eax, [ebp - 0x20c]
push eax
push str.Actions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x41914a
push 1
push esi
mov ecx, edi
call fcn.00418fc5
inc esi
cmp esi, 0x9e
jl 0x4190c6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0044fa75
leave
ret
Function at 0x41a582
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x5a8300], edi
mov esi, ecx
je 0x41a6c8
cmp dword [esi + 0x20], 8
jb 0x41a5a5
mov eax, dword [esi + 0xc]
jmp 0x41a5a8
lea eax, [esi + 0xc]
push ebx
push 0x540374
push eax
push dword [0x59b990]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x41a6c7
push ebx
push dword [0x59b990]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x59b990]
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.00453430
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.00419619
cmp eax, edi
pop ecx
pop ecx
je 0x41a6c7
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x5a8304
call fcn.0041a342
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x59b990]
push edi
push ebx
push edi
push edi
push edi
push SysReAllocString
push 0x80c80000
push edi
push dword [0x59b98c]
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 0x41a68d
mov byte [esi + 0x2c], 1
jmp 0x41a6b1
test eax, 0x21000000
je 0x41a69a
mov byte [esi + 0x2c], 5
jmp 0x41a6b1
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.00419eb3
push 0xfffffffffffffffc
push ebx
call edi
push 0x41a3b7
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 0x41af80
Capabilities:
Copy file

Disassembly:
call fcn.0041ad9c
mov ecx, eax
jmp fcn.0041b3ac

Function at 0x41b0c7
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xe8], 8
jb 0x41b0db
mov eax, dword [esi + 0xd4]
jmp 0x41b0e1
lea eax, [esi + 0xd4]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov ebp, 0x53dec0
push ebp
push str.ModifySetConfig
mov ebx, str.SetModify
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x41b10f
mov eax, dword [esi + 0xd4]
jmp 0x41b115
lea eax, [esi + 0xd4]
push eax
push ebp
push str.ModifySetConfig64
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x41b130
mov eax, dword [esi + 0xd4]
jmp 0x41b136
lea eax, [esi + 0xd4]
push eax
push ebp
push str.TempModifySetConfig
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x41b151
mov eax, dword [esi + 0xd4]
jmp 0x41b157
lea eax, [esi + 0xd4]
push eax
push ebp
push 0x540664
push ebx
call edi
pop edi
lea eax, [esi + 0xb4]
cmp dword [eax + 0x18], 8
pop ebp
pop ebx
jb 0x41b175
mov eax, dword [eax + 4]
jmp 0x41b178
add eax, 4
add esi, 0x98
cmp dword [esi + 0x18], 8
jb 0x41b189
mov esi, dword [esi + 4]
jmp 0x41b18c
add esi, 4
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop esi
ret