joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c8f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403ce3
xor ebx, ebx
cmp dword [0x410f00], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x407d65
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407e45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x407e45
push eax
call fcn.00403c75
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410f00], eax
call esi
push eax
call fcn.00403c75
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410f04], eax
call esi
push eax
call fcn.00403c75
mov dword [0x410f08], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004028a3
test eax, eax
pop ecx
pop ecx
je 0x407d33
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040477f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x407d65
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403c75
cmp eax, ebx
pop ecx
mov dword [0x410f10], eax
je 0x407d65
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403c75
pop ecx
mov dword [0x410f0c], eax
mov eax, dword [0x410f0c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x407dea
cmp dword [0x410f10], ecx
je 0x407dea
push eax
call fcn.00403cec
push dword [0x410f10]
mov esi, eax
call fcn.00403cec
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x407dea
cmp edi, ebx
je 0x407dea
call esi
cmp eax, ebx
je 0x407db7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407db7
test byte [ebp - 0x18], 1
jne 0x407dea
lea eax, [ebp - 0x10]
push eax
call fcn.004028da
test eax, eax
pop ecx
je 0x407dd2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040477f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x407de1
or dword [ebp + 0x10], 0x200000
jmp 0x407e25
or dword [ebp + 0x10], 0x40000
jmp 0x407e25
mov eax, dword [0x410f04]
cmp eax, dword [ebp - 8]
je 0x407e25
push eax
call fcn.00403cec
cmp eax, ebx
pop ecx
je 0x407e25
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407e25
mov eax, dword [0x410f08]
cmp eax, dword [ebp - 8]
je 0x407e25
push eax
call fcn.00403cec
cmp eax, ebx
pop ecx
je 0x407e25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410f00]
call fcn.00403cec
cmp eax, ebx
pop ecx
je 0x407e45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407e47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401dae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.Console
push SysReAllocString
mov dword [ebp - 8], 3
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401dfa
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0x548880
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], 0xa
jbe 0x401ee2
push esi
push 0x7d0
push ebx
mov esi, str.FaCai2024_
push esi
call fcn.00521170
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push str.IpDate
push dword [ebp - 0xc]
call edi
mov edi, dword [ebp + 8]
push ebx
lea eax, [edi + 0x1e]
push eax
push 0x5488a0
push esi
call fcn.00401cfa
push ebx
lea eax, [edi + 0x21c]
push eax
push 0x5488a8
push esi
call fcn.00401cfa
lea eax, [edi + 0x258]
push eax
push ebx
push 0x5488b0
push esi
call fcn.00401cfa
push ebx
lea eax, [edi + 0x25c]
push eax
push 0x5488b8
push esi
call fcn.00401cfa
add esp, 0x40
push ebx
lea eax, [edi + 0x45a]
push eax
push 0x5488c0
push esi
call fcn.00401cfa
lea eax, [edi + 0x498]
push eax
push ebx
push 0x5488c8
push esi
call fcn.00401cfa
push ebx
lea eax, [edi + 0x49c]
push eax
push 0x5488d0
push esi
call fcn.00401cfa
push ebx
lea eax, [edi + 0x69a]
push eax
push 0x5488d8
push esi
call fcn.00401cfa
add esp, 0x40
add edi, 0x6d8
push edi
push ebx
push 0x5488e0
push esi
call fcn.00401cfa
add esp, 0x10
pop esi
pop edi
pop ebx
leave
ret

Function at 0x401fc8
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.00401ee6
push esi
push esi
push esi
push method.CChildFrame.virtual_24
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
ret 0x10
Function at 0x4020cf
Capabilities:
Accept command line arguments

Disassembly:
push 0x6c
mov eax, 0x5371aa
call fcn.00521654
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0044690e
call fcn.00447f47
test eax, eax
jne 0x402114
push 0xffffffffffffffff
push eax
push 0x64
call fcn.00447dae
jmp 0x40228a
xor ebx, ebx
push ebx
call fcn.0044a883
pop ecx
push 5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push ebx
mov ecx, edi
call fcn.0044534f
push 0x548948
mov ecx, edi
call fcn.00444e86
push 4
mov ecx, edi
call fcn.00445798
mov ecx, edi
call fcn.00444021
mov ecx, edi
call fcn.0044406e
mov ecx, edi
call fcn.00443fd1
lea ecx, [ebp - 0x78]
call fcn.0040207b
lea eax, [ebp - 0x78]
push eax
xor esi, esi
push 0x54fde0
inc esi
push 0xffff
mov ecx, 0x59d248
mov dword [ebp - 0x60], esi
call fcn.004440bb
mov ecx, eax
call fcn.0044887d
push 0xb0
call fcn.00402a9a
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4021c5
push 0x548fe4
push 0x548158
push 0x548e24
push 0x82
mov ecx, eax
call fcn.004485b1
jmp 0x4021c7
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40228a
push eax
mov ecx, edi
call fcn.004474d0
push 0x4b5c
call fcn.00402a9a
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp eax, ebx
je 0x4021fb
mov ecx, eax
call fcn.0040119e
mov esi, eax
jmp 0x4021fd
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40228a
mov eax, dword [esi]
push ebx
push ebx
push 0xcf8000
push 0x80
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x402281
lea ecx, [ebp - 0x44]
mov dword [edi + 0x20], esi
call fcn.00446241
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.0044581e
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.00447320
test eax, eax
jne 0x40225d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004462ab
jmp 0x40228a
push dword [edi + 0x4c]
mov ecx, esi
call fcn.00411d2a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004462ab
xor eax, eax
inc eax
jmp 0x40228c
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
xor eax, eax
call fcn.0052172c
ret
Function at 0x4100d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x410120
call fcn.004535a3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410120
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41013c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040fbd9
mov esi, eax
test edi, edi
je 0x41013a
test ebx, ebx
je 0x41013a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412281
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x542614
call fcn.00521654
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4122a6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4122f8
call fcn.004386e1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040165c
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00522129
push eax
call fcn.0040127f
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040101a
mov eax, esi
call fcn.0052172c
ret 8

Function at 0x426b8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x426ba8
call fcn.004535a3
mov esi, dword [eax + 0xc]
push dword [0x59f8ec]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x426bc6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x426bbe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x426bf3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x426bc0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00426abc
mov esi, eax
jmp 0x426be5
Function at 0x44a4c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44a50b
call fcn.004535a3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44a50b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44a54e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44a537
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44a537
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x44a54b
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44dbaa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004535a3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44dbe3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044d7e7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x44dc41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x44dc65
cmp dword [edi + 0x74], 0
jne 0x44dc65
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004535a3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0044dc02
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x453c47
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x53aeda
call fcn.00521654
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402a30
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x453ca9
call fcn.00452e66
cmp eax, 1
jne 0x453ca9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0044751c
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004064d1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040101a
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040101a
mov eax, esi
call fcn.0052172c
ret 0x10

Function at 0x453cd2
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x53aeda
call fcn.00521654
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402a30
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x453d34
call fcn.00452e66
cmp eax, 1
jne 0x453d34
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0044751c
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004064d1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040101a
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040101a
mov eax, esi
call fcn.0052172c
ret 0x14

Function at 0x499782
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4997c0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4997ce
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4997ce
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4997d0
cmp dword [esi + 4], 0
je 0x4997ce
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4adc5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4adc72
mov edi, dword [esi + 0xc]
jmp 0x4adcb2
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4adc8b
call fcn.0044bfa0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4adca0
call fcn.0044bfa0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4adcb2
call fcn.0044bfa0
call fcn.004535a3
cmp dword [eax + 0x3c], 0
je 0x4adcc7
push edi
mov ecx, ebx
call fcn.004aca8c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004adb74
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4adce5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4adcf1
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ef007
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0051736d
call fcn.00452fd4
cmp dword [eax + 0x14], 0
jne 0x4ef024
mov ecx, esi
pop esi
jmp fcn.004eeb0c
pop esi
ret

Function at 0x4f247b
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00402797
call fcn.00452fd4
cmp dword [eax + 0x14], 0
jne 0x4f2498
mov ecx, esi
pop esi
jmp fcn.004f1e4e
pop esi
ret

Function at 0x5047a8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0050444c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5047f2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040e0d2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004089a4
jmp 0x5047fd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004602bf
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x504803
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00411b49
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x504840
call fcn.0050444c
mov dword [esi + 0xc], 1
jmp 0x504845
call fcn.0050444c
cmp dword [esi], 0
je 0x50488e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x504866
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040e0d2
jmp 0x504878
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401747
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004089a4
jmp 0x5048b2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x5048b2
push dword [esi]
push dword [ebp + 8]
call fcn.004602bf
pop esi
pop ebp
ret 0xc

Function at 0x520806
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x599c60]
jne 0x520810
repz ret
jmp fcn.00527c53
Function at 0x532697
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x599c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00528ec5
and dword [ebp - 0x14], 0
cmp dword [0x5a37dc], 0
mov dword [ebp - 0x18], eax
jne 0x53274a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5327f2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x57499c
push ebx
call edi
test eax, eax
je 0x5327f2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x57498c
push ebx
mov dword [0x5a37dc], eax
call edi
push eax
call esi
push 0x574978
push ebx
mov dword [0x5a37e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5a37e4], eax
call edi
push eax
call esi
mov dword [0x5a37ec], eax
test eax, eax
je 0x53274a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5a37e8], eax
mov eax, dword [0x5a37e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5327a3
cmp dword [0x5a37ec], ecx
je 0x5327a3
push eax
call esi
push dword [0x5a37ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5327a3
test ebx, ebx
je 0x5327a3
call edi
test eax, eax
je 0x53279a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53279a
test byte [ebp - 8], 1
jne 0x5327a3
or dword [ebp + 0x10], 0x200000
jmp 0x5327d6
mov eax, dword [0x5a37e0]
cmp eax, dword [ebp - 0x18]
je 0x5327d6
push eax
call esi
test eax, eax
je 0x5327d6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5327d6
mov eax, dword [0x5a37e4]
cmp eax, dword [ebp - 0x18]
je 0x5327d6
push eax
call esi
test eax, eax
je 0x5327d6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5a37dc]
call esi
test eax, eax
je 0x5327f2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5327f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00520806
leave
ret
Function at 0x100045a9
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push eax
call fcn.1000f6d0
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.1000a000
mov eax, dword [esp]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
jmp 0x100045ca
push dword [esp]
call fcn.1000f730
add esp, 4
ret 4

Function at 0x100081f1
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.1000f6d0
mov eax, dword [0x100137d4]
mov dword [0x100138d0], eax
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
push 0x7fff
call fcn.1000c210
lea eax, [esp + 4]
push eax
call fcn.1000f5d0
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1000f3a0
push 0x10013920
call fcn.1000f5d0
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
push dword [0x10013920]
call fcn.1000d1fd
push 0x10013998
call fcn.1000f5d0
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
lea eax, [0x100120d6]
push eax
push dword [0x10013998]
call fcn.1000c260
push 0x100138a0
call fcn.1000f5d0
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
push 1
push dword [0x10013920]
call fcn.1000d27c
push 0x10013980
call fcn.1000f5d0
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x100138d0]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1000f3a0
push 0x100137e0
call fcn.1000f5d0
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
push dword [0x100137e0]
call fcn.1000d1fd
push 0x100138f0
call fcn.1000f5d0
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
lea eax, [0x100120d6]
push eax
push dword [0x100138f0]
call fcn.1000c260
push 0x10013928
call fcn.1000f5d0
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
push 1
push dword [0x100137e0]
call fcn.1000d27c
push 0x10013850
call fcn.1000f5d0
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
lea eax, [0x100120d6]
push eax
push dword [esp + 0xc]
call fcn.1000c260
push 0x100138fc
call fcn.1000f5d0
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
lea eax, [0x100120d6]
push eax
push dword [esp + 0xc]
call fcn.1000c260
push 0x10013890
call fcn.1000f5d0
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.1000f530
pop edx
push eax
push edx
call fcn.1000f530
pop edx
push eax
lea eax, [0x100120d6]
push eax
push dword [esp + 0xc]
call fcn.1000c260
push 0x100138f4
call fcn.1000f5d0
xor eax, eax
push dword [esp]
call fcn.1000f730
add esp, 4
ret