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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00548050
mov eax, dword [0x5c6fc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
lea eax, [ebp - 0x1004]
mov bl, cl
push 0
push eax
call fcn.0054a720
add esp, 0xc
test bl, bl
je 0x40bc0e
push 0x7ff
push 0x5d1510
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x5d1510
call fcn.005493c5
mov edx, 0x5d1510
mov esi, eax
add esp, 8
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bc01
jmp 0x40bc5b
lea eax, [ebp - 0x1004]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40bc81
push 0x7ff
push 0x5d1510
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x5d1510
call fcn.005493c5
mov edx, 0x5d1510
mov esi, eax
add esp, 8
lea eax, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bc50
sub edx, eax
sar edx, 1
test esi, esi
je 0x40bc9a
add esi, 2
mov eax, esi
sub eax, 0x5d1510
sar eax, 1
sub edx, eax
add edx, edx
push edx
push 0
push esi
call fcn.0054a720
add esp, 0xc
jmp 0x40bc9a
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x1004]
lea ecx, [ecx + 2]
mov word [ecx + 0x5d150e], ax
test ax, ax
jne 0x40bc83
mov edx, str.cyyundun.dll
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bca1
mov edi, 0x5d1510
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40bcb6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005478fb
mov esp, ebp
pop ebp
ret

Function at 0x40bcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x5d1510
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bd50
push esi
mov esi, dword [0x5d0428]
push edi
mov edi, dword [0x5d042c]
mov dword [ebp - 4], 0
nop
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40bd30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e9c0
Capabilities:
Create thread
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00548050
mov eax, dword [0x5c6fc4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0x4101c0
push 0
push 0
call fcn.0054e51f
add esp, 0x18
push 0x5cfc48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
call fcn.0040ec20
cmp dword [0x5d043c], 0
jne 0x40eaba
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0054a720
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
movzx ecx, word [eax + 0x5d0510]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x40ea30
lea eax, [ebp - 0x1004]
push 0x5c
push eax
call fcn.005493c5
mov edx, eax
add esp, 8
test edx, edx
je 0x40ea9f
lea ecx, [ebp - 0x1004]
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea70
sub ecx, esi
add edx, 2
mov eax, edx
sar ecx, 1
lea esi, [ebp - 0x1004]
sub eax, esi
sar eax, 1
sub ecx, eax
add ecx, ecx
push ecx
push 0
push edx
call fcn.0054a720
add esp, 0xc
pop esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x5d0510
call dword [0x5d4540]
add esp, 4
push 0x5cfc48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005478fb
mov esp, ebp
pop ebp
ret

Function at 0x40eae0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp eax, 0x7d8
jne 0x40eb3d
cmp dword [ebp + 0xc], 1
jne 0x40ec0a
cmp dword [0x5d043c], 0
je 0x40eb2a
mov eax, dword [0x5d4568]
test eax, eax
je 0x40eb0f
mov eax, dword [eax + 0x20]
push 0
push dword [0x5c7814]
push 0x5a8820
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
pop ebp
ret 0x10
push 0
call fcn.00418e78
call fcn.0040e9c0
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 0x7e7
jne 0x40eb5c
cmp dword [ebp + 0xc], 2
jne 0x40ec0a
push 0
call fcn.00418e78
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 0x7d6
jne 0x40eb8c
cmp dword [ebp + 0xc], 2
jne 0x40ec0a
push 1
push 0
push 0
push str.www.chuyuncloud.com
push 0x5a81dc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 0x3ea
jne 0x40ec0a
cmp dword [ebp + 0xc], 2
jne 0x40ec0a
cmp dword [0x5d0440], 0
je 0x40ec02
mov eax, dword [0x5d4544]
test eax, eax
je 0x40ebdb
call eax
test eax, eax
jle 0x40ebdb
mov eax, dword [0x5d4568]
test eax, eax
jne 0x40ebc9
push 4
push dword [0x5c7814]
push 0x5a8860
jmp 0x40ebf4
mov eax, dword [eax + 0x20]
push 4
push dword [0x5c7814]
push 0x5a8860
jmp 0x40ebf4
mov eax, dword [0x5d4568]
test eax, eax
je 0x40ebe7
mov eax, dword [eax + 0x20]
push 4
push dword [0x5c7814]
push 0x5a88a0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40ec0a
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c0]
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x40ec20
Capabilities:
Create thread
Link many functions at runtime
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x5d042c], 0
mov dword [ebp - 8], ecx
je 0x40ec37
call fcn.0040bcf0
cmp dword [0x5d0438], 0
push ebx
push esi
push edi
je 0x40ed74
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x82
push 2
push 0
push 1
push 0x40000000
push 0x5d0510
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ed3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40ed74
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7ff
push 0x5d0510
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
push 0x5d0510
call fcn.005493c5
mov edx, eax
add esp, 8
test edx, edx
je 0x40ed1b
mov ecx, 0x5d0510
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ecb6
sub ecx, edi
mov eax, edx
sub eax, 0x5d0510
sar ecx, 1
sar eax, 1
sub ecx, eax
add ecx, ecx
push ecx
push 0
push edx
call fcn.0054a720
mov ecx, 0x5d0510
add esp, 0xc
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40ece6
mov eax, dword [str._app.exe]
mov dword [ecx], eax
mov eax, dword [0x5a8478]
mov dword [ecx + 4], eax
mov eax, dword [0x5a847c]
mov dword [ecx + 8], eax
mov eax, dword [0x5a8480]
mov dword [ecx + 0xc], eax
mov ax, word [0x5a8484]
mov word [ecx + 0x10], ax
push 0
push 0x82
push 2
push 0
push 1
push 0x40000000
push 0x5d0510
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ed74
mov esi, dword [0x5d0434]
mov edi, dword [0x5d0438]
mov dword [ebp - 4], 0
nop
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40ed50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5d0440], 0
jne 0x40ee61
push 0
push 0
push 0
push 0x40f950
push 0
push 0
mov dword [0x5d0440], 1
call fcn.0054e51f
add esp, 0x18
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x5d1510
mov ebx, eax
call dword [0x5cfc40]
mov edi, eax
test edi, edi
jne 0x40ede4
mov cl, 1
call fcn.0040bba0
call fcn.0040bcf0
push 0x5d1510
call dword [0x5cfc40]
mov edi, eax
test edi, edi
je 0x40ee68
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.yundun_main
push edi
call esi
push str.yundun_active_conn
push edi
mov dword [ebp - 4], eax
call esi
push str.yundun_helper_start
push edi
mov dword [0x5d4544], eax
call esi
push str.yundun_helper_create
push edi
mov dword [0x5d4540], eax
call esi
push str.yundun_helper_check
push edi
call esi
cmp dword [ebp - 8], 1
mov dword [0x5d453c], eax
jne 0x40ee4e
push str.1qaz2w
call dword [ebp - 4]
mov eax, dword [0x5d0064]
add esp, 4
test eax, eax
je 0x40ee4e
push eax
push dword [0x5d0424]
call dword [0x5d453c]
add esp, 8
push 0x12c
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [0x5c7814]
push 0x5a88c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.0054e86f
int3
Function at 0x40f790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3008
call fcn.00548050
mov eax, dword [0x5c6fc4]
xor eax, esp
mov dword [esp + 0x3004], eax
push 0x1000
lea eax, [esp + 0x2004]
push 0
push eax
call fcn.0054a720
add esp, 0xc
lea eax, [esp + 0x2000]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40f7eb
lea ecx, [esp + 0x2000]
call fcn.0040f500
push 0x1000
lea eax, [esp + 4]
push 0
push eax
call fcn.0054a720
add esp, 0xc
lea eax, [esp]
push 0x7ff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp]
push 0x5c
push eax
call fcn.005493c5
add esp, 8
test eax, eax
je 0x40f826
xor ecx, ecx
mov dword [eax], ecx
lea ecx, [esp]
lea eax, [esp + 0x2000]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f856
test dx, dx
je 0x40f852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f856
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f830
xor eax, eax
jmp 0x40f85b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f867
lea ecx, [esp]
call fcn.0040f500
push 0x1000
lea eax, [esp + 0x1004]
push 0
push eax
call fcn.0054a720
add esp, 0xc
xor ecx, ecx
movzx eax, word [ecx + 0x5d0510]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0xffe], ax
test ax, ax
jne 0x40f880
lea eax, [esp + 0x1000]
push 0x5c
push eax
call fcn.005493c5
add esp, 8
test eax, eax
je 0x40f8b1
xor ecx, ecx
mov dword [eax], ecx
lea ecx, [esp + 0x1000]
lea eax, [esp + 0x2000]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f8e6
test dx, dx
je 0x40f8e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f8e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f8c0
xor eax, eax
jmp 0x40f8eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f93b
lea ecx, [esp + 0x1000]
lea eax, [esp]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f926
test dx, dx
je 0x40f922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f926
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f900
xor eax, eax
jmp 0x40f92b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f93b
lea ecx, [esp + 0x1000]
call fcn.0040f500
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.005478fb
mov esp, ebp
pop ebp
ret

Function at 0x41358a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4135cf
call fcn.0041c89b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4135cf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4135eb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00422129
mov ebx, eax
test edi, edi
je 0x4135e9
test esi, esi
je 0x4135e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414025
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4140e3
cmp dword [esi + 0x20], 0
je 0x4140e3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4140e3
cmp dword [ebp + 8], 0
je 0x4140e3
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041c89b
push 0x574b80
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4140b4
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4140e3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00422d7e
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4140d4
test edi, edi
je 0x4140d4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4140df
mov ecx, esi
call fcn.00413dc7
mov eax, ebx
jmp 0x4140e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418af8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x565d65
call fcn.00547e87
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x418b1e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418b7e
call fcn.00419f95
push eax
lea ecx, [ebp - 0x10]
call fcn.00406f40
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x573a4c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0054ee44
push eax
call fcn.00405f20
add esp, 0x14
test esi, esi
je 0x418b71
push esi
call fcn.0054eba5
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406f70
mov eax, ebx
call fcn.00547e50
ret 8

Function at 0x419178
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041c89b
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4191af
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004191ce
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 0x41e424
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41e477
push esi
push dword [ebp + 8]
call fcn.0041e60d
mov edi, eax
test edi, edi
je 0x41e472
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41e472
mov eax, dword [ebp - 8]
jmp 0x41e489
mov eax, dword [ebp + 0x10]
jmp 0x41e489
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4257c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x425817
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4257f0
call fcn.0041b56f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x425805
call fcn.0041b56f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x425817
call fcn.0041b56f
call fcn.0041c89b
cmp dword [eax + 0x3c], 0
je 0x42582c
push edi
mov ecx, ebx
call fcn.00424ef1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004259fe
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x425855
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x425861
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42c53d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.00418a3e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.0042c756
cmp esi, 3
je 0x42c57b
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x42c5c4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x42c59e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041365f
jmp 0x42c5af
push 0xff
mov ecx, esi
call fcn.00406b20
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00415de4
jmp 0x42c5e8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42c5e8
push dword [esi]
push dword [ebp - 4]
call fcn.00420482
pop edi
pop esi
leave
ret 0xc
Function at 0x42c6ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0042c756
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42c6f5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041365f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415de4
jmp 0x42c700
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00420482
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4547f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x454813
call fcn.0041c89b
mov esi, dword [eax + 0xc]
push 0x5a7ab4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x454869
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x454869
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x454848
xor esi, esi
jmp 0x45485e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00454872
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x45486b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4e7181
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x56e885
call fcn.00547ebb
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00405d70
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5740bc
call fcn.0040acf0
cmp eax, 0xffffffff
jne 0x4e725b
push 0
push 0x57d6b0
lea ecx, [ebp - 0x4d0]
call fcn.0040acf0
cmp eax, 0xffffffff
jne 0x4e725b
push 0
push 0x575a6c
lea ecx, [ebp - 0x4d0]
call fcn.0040acf0
cmp eax, 0xffffffff
jne 0x4e725b
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00405d70
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4e722a
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x573a4c]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00406f70
jmp 0x4e7294
lea eax, [ebp - 0x218]
push eax
call fcn.0054eba5
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00406560
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00406f70
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4e7281
mov edi, dword [ebp - 0x4cc]
jmp 0x4e7294
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x573a4c]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00406f70
mov eax, edi
call fcn.00547e65
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00557dc5
pop ecx
test eax, eax
jne 0x500d4c
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041e9da
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x500d12
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x55fdc2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055fa82