joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b40
Capabilities:
Check for time delay via queryperformancecounter
Find taskbar

Disassembly:
sub esp, 0x38
push ebx
push ebp
push edi
call fcn.00409b70
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x30
call ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ecx
call fcn.00409ad0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x30
mov dword [esi + 0xc], eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push 0x55d24c
call ebp
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x20]
push ecx
push eax
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
push edx
push eax
call edi
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x34]
push edx
push 0
push 0x30
mov dword [esi + 0x10], ecx
call ebx
push 0
push 0x55d24c
call ebp
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
call edi
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x34]
push edx
push 0
push 0x30
mov dword [esi + 0x18], ecx
call ebx
push 0
push 0x55d24c
call ebp
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
lea edx, [esp + 0x20]
push edx
push ebx
call edi
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edx, [esi + 0x1c0]
push edx
mov dword [esi + 0x1c], eax
mov dword [esi + 4], ecx
call edi
lea eax, [esi + 0x1d8]
push eax
call edi
lea ecx, [esi + 0x1c8]
push ecx
call edi
lea edx, [esi + 0x208]
push edx
call edi
lea eax, [esi + 0x1e8]
push eax
call edi
lea ecx, [esi + 0x1f8]
push ecx
call edi
mov edx, dword [0x577918]
pop edi
pop ebp
mov dword [esi + 0x1ac], edx
pop ebx
add esp, 0x38
ret

Function at 0x405c90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.0042faa0
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x405ccd
mov esi, dword [esi + 0x44]
jmp 0x405cd0
add esi, 0x44
push str.AllSkin
push esi
lea ecx, [esp + 0xc]
push str._s_s_
push ecx
call fcn.0042a2e5
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x405d00
lea eax, [esp]
call fcn.004074e0
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00429fbb
add esp, 0x20c
ret
Function at 0x405d20
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov esi, ecx
mov word [esp + 0x18], 0
call fcn.0042faa0
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x405d5f
mov eax, dword [esi + 0x28]
jmp 0x405d62
lea eax, [esi + 0x28]
push 0x55c548
push eax
lea ecx, [esp + 0x14]
push str._s_s_
push ecx
call fcn.0042a2e5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x405d9a
push 0
lea eax, [esp + 0x10]
push eax
call ebx
cmp dword [esi + 0x3c], 8
jb 0x405da5
mov esi, dword [esi + 0x28]
jmp 0x405da8
add esi, 0x28
push str.Dict
push esi
lea ecx, [esp + 0x14]
push str._s_s_
push ecx
call fcn.0042a2e5
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x405dd3
push eax
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429fbb
add esp, 0x20c
ret

Function at 0x405df0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x405e12
mov eax, dword [esi + 0x44]
jmp 0x405e15
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.0042a2e5
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405e45
lea eax, [esp + 4]
call fcn.004074e0
lea eax, [esp + 4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405e50
mov edx, dword [str.Config.ini]
mov ecx, dword [0x55c570]
mov dword [eax], edx
mov edx, dword [0x55c574]
mov dword [eax + 4], ecx
mov ecx, dword [0x55c578]
mov dword [eax + 8], edx
mov edx, dword [0x55c57c]
mov dword [eax + 0xc], ecx
mov cx, word [0x55c580]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ea0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
add esi, 0x5c
call fcn.00401250
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00429fbb
add esp, 0x20c
ret
Function at 0x405ee0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x405f02
mov eax, dword [esi + 0x44]
jmp 0x405f05
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.0042a2e5
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405f35
lea eax, [esp + 4]
call fcn.004074e0
lea eax, [esp + 4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405f40
mov edx, dword [str.Related.ini]
mov ecx, dword [0x55c588]
mov dword [eax], edx
mov edx, dword [0x55c58c]
mov dword [eax + 4], ecx
mov ecx, dword [0x55c590]
mov dword [eax + 8], edx
mov edx, dword [0x55c594]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x55c598]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x405f90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405f90
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
add esi, 0xe8
call fcn.00401250
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00429fbb
add esp, 0x20c
ret

Function at 0x406060
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.0042faa0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4060ba
push eax
push 0x2a
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4060c1
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
add esi, 0x120
push eax
call fcn.00401250
push 1
push 0x55c4b4
mov ecx, esi
call fcn.00402590
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00429fbb
add esp, 0x20c
ret

Function at 0x4061a0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x4061c2
mov eax, dword [esi + 0x44]
jmp 0x4061c5
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.0042a2e5
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4061f5
lea eax, [esp + 4]
call fcn.004074e0
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406200
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
add esi, 0x174
call fcn.00401250
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00429fbb
add esp, 0x20c
ret
Function at 0x406d00
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x438
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push 0x206
lea eax, [esp + 0x23e]
push 0
push eax
mov word [esp + 0x244], 0
call fcn.0042faa0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
lea ecx, [esp + 0x14]
push 0
push ecx
mov edi, eax
mov dword [esp + 0x18], 0
call fcn.0042faa0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406dfd
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406dc5
mov edi, edi
cmp dword [esp + 0x14], edi
je 0x406da7
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406d90
jmp 0x406dc5
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x30]
mov word [esp + eax + 0x238], cx
add eax, 2
test cx, cx
jne 0x406db0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x238]
push ecx
call fcn.0042add7
mov ecx, eax
add esp, 4
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406de1
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [ebp + 0x190]
call fcn.00401250
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00429fbb
add esp, 0x438
ret 4

Function at 0x406e20
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.0042faa0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x406e92
mov eax, dword [esp + 8]
test eax, eax
je 0x406e6e
cmp eax, 1
jne 0x406e92
cmp byte [esp + 0x11a], 1
jne 0x406e92
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00429fbb
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.00429fbb
add esp, 0x120
ret

Function at 0x406eb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push esi
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x406ee9
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00429fbb
add esp, 0x1c
ret 4
lea eax, [esp + 0xc]
push eax
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 8]
push ecx
push 0
push 0x400
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jl 0x406ed5
mov eax, dword [esp + 8]
mov edx, edi
sub edx, eax
jmp 0x406f20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406f20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x1c]
test eax, eax
setne al
pop esi
xor ecx, esp
call fcn.00429fbb
add esp, 0x1c
ret 4
Function at 0x406f50
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ecx
push esi
push edi
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x406f74
push eax
mov edi, ebx
call fcn.00406eb0
test al, al
je 0x406f74
mov al, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push ebx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x406fb3
mov edi, ebx
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406f90
mov ecx, 9
mov esi, str.AppDataLocalLow
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406f6e
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x406fc0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
push 0x206
lea eax, [esp + 0x1e]
push 0
push eax
mov word [esp + 0x24], 0
call fcn.0042faa0
add esp, 0xc
lea ebx, [esp + 0x18]
call fcn.00406f50
test al, al
jne 0x407035
push 0
push 0x1a
mov ecx, ebx
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, ebx
lea edx, [eax + 2]
jmp 0x407020
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407020
sub eax, edx
sar eax, 1
je 0x4070cd
lea edi, [esp + 0x18]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407040
mov edx, dword [0x55c4b4]
mov dword [edi], edx
lea edi, [esp + 0x18]
add edi, 0xfffffffe
jmp 0x407060
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407060
mov ecx, 7
mov esi, str.SmartCloudIME
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x18]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407080
mov dword [edi], edx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4070a6
lea eax, [esp + 0x18]
call fcn.004074e0
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4070b0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea esi, [ebp + 0x40]
call fcn.00401250
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429fbb
add esp, 0x218
ret 4
Function at 0x4070f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
push 0x206
lea eax, [esp + 0x1e]
push 0
push eax
mov word [esp + 0x24], 0
call fcn.0042faa0
add esp, 0xc
lea ebx, [esp + 0x18]
call fcn.00406f50
test al, al
jne 0x407165
push 0
push 0x1a
mov ecx, ebx
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, ebx
lea edx, [eax + 2]
jmp 0x407150
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407150
sub eax, edx
sar eax, 1
je 0x4071fd
lea edi, [esp + 0x18]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407170
mov edx, dword [0x55c4b4]
mov dword [edi], edx
lea edi, [esp + 0x18]
add edi, 0xfffffffe
jmp 0x407190
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407190
mov ecx, 0xa
mov esi, str.SmartCloudIME.users
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x18]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4071b0
mov dword [edi], edx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4071d6
lea eax, [esp + 0x18]
call fcn.004074e0
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4071e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea esi, [ebp + 0x24]
call fcn.00401250
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429fbb
add esp, 0x218
ret 4
Function at 0x407220
Capabilities:
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x61c], eax
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0042faa0
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 4], cx
add eax, 2
test cx, cx
jne 0x407251
push esi
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407270
cmp dword [ebx + 0x58], 8
mov ecx, 8
mov esi, 0x55c4b8
rep movsd dword es:[edi], dword [esi]
jb 0x407293
mov ecx, dword [ebx + 0x44]
jmp 0x407296
lea ecx, [ebx + 0x44]
lea edx, [esp + 0x214]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4072a0
cmp dword [ebx + 0x3c], 8
jb 0x4072bc
mov ecx, dword [ebx + 0x28]
jmp 0x4072bf
lea ecx, [ebx + 0x28]
lea edx, [esp + 0x41c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4072c6
lea ecx, [esp + 8]
push ecx
push 2
push 0
lea edx, [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407334
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
lea eax, [esp + 0x218]
push eax
push 1
push 0
push str.CfgRootPath
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x420]
push edx
push 1
push 0
push str.CfgUserPath
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x624]
pop edi
pop esi
xor ecx, esp
call fcn.00429fbb
add esp, 0x620
ret

Function at 0x407420
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
mov edi, ecx
mov esi, edx
call fcn.0042faa0
add esp, 0xc
cmp dword [edi + 0x11c], 8
jb 0x407471
mov edi, dword [edi + 0x108]
jmp 0x407477
add edi, 0x108
push edi
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x55c3b8
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
lea eax, [esp + 0x10]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edx
mov word [esi + 4], dx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x4074a6
sub eax, edi
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00401250
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00429fbb
add esp, 0x210
ret 4
Function at 0x4074e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074f0
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040eb15
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407525
xor edi, edi
test ebp, ebp
mov byte [esp + 0xf], 1
jl 0x40758d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40756c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x407566
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407587
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x407546
pop ebx
push esi
call fcn.0040eb10
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
mov byte [esp + 0x13], 0
pop ebx
push esi
call fcn.0040eb10
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x409ad0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x34
push esi
push edi
push 0
push 0x409a40
push 0
push 0
mov dword [0x577918], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x55d24c
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [0x577918]
sub eax, dword [esp + 8]
cmp ecx, 1
jle 0x409b62
test ecx, ecx
jle 0x409b62
mov edx, 0x577778
mov esi, ecx
mov ecx, dword [edx]
cmp ecx, eax
jle 0x409b5a
mov eax, ecx
add edx, 0x10
sub esi, 1
jne 0x409b52
pop edi
pop esi
add esp, 0x34
ret
Function at 0x40a970
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x5685f0]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
push edi
mov esi, ecx
mov edi, edx
jle 0x40aa62
add ebp, 0xffffffff
shr ebp, 3
add ebp, 1
lea ebx, [ebx]
movzx eax, byte [esi]
mov byte [edi], al
movzx ecx, byte [esi + 1]
mov byte [edi + 1], cl
movzx edx, byte [esi + 2]
mov byte [edi + 2], dl
movzx eax, byte [esi + 3]
mov byte [edi + 3], al
movzx ecx, byte [esi + 4]
mov byte [edi + 4], cl
movzx edx, byte [esi + 5]
mov byte [edi + 5], dl
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx ecx, byte [esi + 7]
mov byte [edi + 7], cl
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [ebx + 0x80]
mov dword [esp + 0xc], edx
call fcn.0040a000
movzx ecx, byte [ebx + 0x100]
xor byte [edi], cl
movzx edx, byte [ebx + 0x101]
xor byte [edi + 1], dl
movzx eax, byte [ebx + 0x102]
xor byte [edi + 2], al
movzx ecx, byte [ebx + 0x103]
xor byte [edi + 3], cl
movzx edx, byte [ebx + 0x104]
xor byte [edi + 4], dl
movzx eax, byte [ebx + 0x105]
xor byte [edi + 5], al
movzx ecx, byte [ebx + 0x106]
xor byte [edi + 6], cl
movzx edx, byte [ebx + 0x107]
xor byte [edi + 7], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esi, 8
add edi, 8
sub ebp, 1
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
jne 0x40a9a0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00429fbb
add esp, 0xc
ret
Function at 0x40bed0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x517e22
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5685f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x55d38c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.0040cc50
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040ce50
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x577a50]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.0040ccf0
test eax, eax
jne 0x40bfd1
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40bfc0
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x40bfd1
push ebx
call fcn.004098a0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8