joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x62c], eax
je 0x402e86
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret
push ebx
push eax
call fcn.00402c50
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00403450
lea ecx, [ebp - 0x61c]
push 0x52eeec
push ecx
call fcn.00507362
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x402ec4
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret
push ebx
push 1
lea edx, [ebp - 0x61d]
push 1
push edx
mov byte [ebp - 0x61e], 0
mov dword [ebp - 0x628], 0
xor esi, esi
call fcn.00507287
add esp, 0x10
cmp eax, 1
jne 0x403046
push edi
jmp 0x402f00
mov al, byte [ebp - 0x61d]
inc dword [ebp - 0x628]
cmp al, 0xa
je 0x402f1a
cmp al, 0xd
je 0x402f1a
inc esi
jmp 0x402fab
cmp byte [ebp - 0x61e], 0xd
je 0x402fab
push 0x18
call fcn.00406844
push eax
mov dword [ebp - 0x624], eax
call fcn.00403070
lea eax, [esi + 1]
push eax
call fcn.0040687e
mov ecx, dword [ebp - 0x628]
mov edi, eax
lea eax, [esi + 1]
push 0
sub ecx, eax
push ecx
push ebx
call fcn.00506fc1
push ebx
push 1
push esi
push edi
call fcn.00507287
mov edx, dword [ebp - 0x624]
push edx
push esi
push edi
mov byte [edi + esi], 0
call fcn.00402cd0
mov eax, dword [ebp - 0x624]
mov ecx, dword [ebp - 0x62c]
push eax
add ecx, 4
push 0
push ecx
call fcn.00403200
add esp, 0x40
push edi
call fcn.00406873
push 1
push 1
push ebx
call fcn.00506fc1
mov al, byte [ebp - 0x61d]
add esp, 0x10
xor esi, esi
push ebx
push 1
lea edx, [ebp - 0x61d]
push 1
push edx
mov byte [ebp - 0x61e], al
call fcn.00507287
add esp, 0x10
cmp eax, 1
je 0x402f00
test esi, esi
jle 0x403045
push 0x18
call fcn.00406844
push eax
mov dword [ebp - 0x624], eax
call fcn.00403070
lea eax, [esi + 1]
push eax
call fcn.0040687e
mov edi, eax
mov eax, dword [ebp - 0x628]
lea ecx, [esi + 1]
sub eax, ecx
push 0
inc eax
push eax
push ebx
call fcn.00506fc1
push ebx
push 1
push esi
push edi
call fcn.00507287
mov eax, dword [ebp - 0x624]
push eax
push esi
push edi
mov byte [edi + esi], 0
call fcn.00402cd0
mov ecx, dword [ebp - 0x624]
mov edx, dword [ebp - 0x62c]
push ecx
add edx, 4
push 0
push edx
call fcn.00403200
add esp, 0x40
push edi
call fcn.00406873
add esp, 4
pop edi
push ebx
call fcn.00506ec3
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050629a
mov esp, ebp
pop ebp
ret
Function at 0x403e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xc
mov esi, ecx
call fcn.00406844
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [eax], ecx
lea ecx, [esi + 8]
push ecx
push 0
push eax
push 0x403dd0
push 0
push 0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edi, 0x2710
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x403e69
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x404000
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x61c]
push ecx
push 0x30c
mov dword [ebp - 0xc38], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404040
lea edx, [ebp - 0x61c]
push 0x60003
mov ecx, 8
mov esi, 0x52f0fc
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00401c60
add esp, 8
lea ecx, [ebx + 0x1318]
call fcn.00401fd0
push eax
lea eax, [ebp - 0xc34]
push eax
call fcn.00403450
add esp, 8
push 0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0xc34]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4040b4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc38]
lea eax, [ebp - 0x61c]
push eax
call fcn.00401f50
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0050629a
mov esp, ebp
pop ebp
ret 4

Function at 0x404230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40424b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404282
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40427e
jmp 0x404270
cmp esi, eax
jae 0x404282
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404270
cmp esi, eax
jb 0x404289
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc88
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0xc88]
push 0
push eax
mov ebx, 1
call fcn.00506690
xor eax, eax
mov ecx, ebx
mov word [ebp - 0xc58], cx
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0xc88], 0x44
mov dword [ebp - 0xc5c], ebx
mov dword [ebp - 0xc44], eax
mov dword [ebp - 0xc40], eax
mov dword [ebp - 0xc3c], eax
mov dword [ebp - 0xc38], eax
call fcn.00401fc0
push eax
push str.main
mov ecx, esi
call fcn.00401fb0
push eax
lea edx, [ebp - 0xc34]
push str._s__s___s_
push edx
call fcn.00401900
add esp, 0x14
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0xc88]
push ecx
mov ecx, esi
call fcn.00401fc0
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404640
mov eax, dword [ebp - 0xc40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0xc44]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050629a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0050629a
mov esp, ebp
pop ebp
ret 8
Function at 0x4054c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040a114
push 0
push str.PRODUCTNAME_SHOW
call fcn.00403810
push eax
push 0
call fcn.00403450
add esp, 0x10
mov edi, eax
push edi
mov ecx, esi
call fcn.00413c64
push edi
call fcn.00406873
add esp, 4
lea ecx, [ebp - 0x430]
lea eax, [esi + 0x94]
push ecx
push eax
mov dword [ebp - 0x430], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40568c
push ebx
call fcn.0040687e
add esp, 4
mov edi, eax
push edi
push ebx
push 0
lea eax, [esi + 0x94]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405683
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x424]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405683
mov eax, dword [ebp - 0x424]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x18]
push str._04x_04x
push eax
call fcn.00401900
push 0x52f9b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x218]
push str.StringFileInfo_s_s
push edx
call fcn.00401900
add esp, 0x20
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
push edi
call sub.VERSION.dll_VerQueryValueW
push 0x52f964
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x218]
push str.StringFileInfo_s_s
push ecx
call fcn.00401900
add esp, 0x10
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueW
push 0x52f944
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x218]
push str.StringFileInfo_s_s
push eax
call fcn.00401900
add esp, 0x10
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x218]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x420]
push ecx
push edx
lea eax, [ebp - 0x418]
push 0x52f92c
push eax
call fcn.00401900
mov edx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x3eb
push edx
call ebx
mov eax, dword [ebp - 0x42c]
mov ecx, dword [esi + 0x20]
push eax
push 0x3ed
push ecx
call ebx
push edi
call fcn.00406873
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050629a
mov esp, ebp
pop ebp
ret
Function at 0x407065
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4070aa
push 0x52fed0
push 4
push eax
call fcn.005081e1
push eax
call fcn.00404180
add esp, 0x10
jmp 0x4070c0
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407140
push edi
call fcn.005082c5
mov edi, dword [eax]
call fcn.005082c5
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00508262
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005082c5
cmp dword [eax], 0
je 0x407114
call fcn.005082c5
push dword [eax]
call fcn.0040700d
pop ecx
jmp 0x40711b
call fcn.005082c5
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x407140
cmp dword [ebp - 0x234], esi
jae 0x407140
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x407142
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050629a
leave
ret
Function at 0x4076d6
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004075ea
pop ecx
cmp eax, esi
je 0x4077c0
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4077c0
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00506690
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4077c0
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4077c0
cmp esi, 0x14
jge 0x4077c0
push 0x10
push 0
push edi
call fcn.00508a4b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4077af
call fcn.005082c5
cmp dword [eax], 0x22
je 0x4077af
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00508659
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x407785
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x57e634], 0
jne 0x40784b
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x407874
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00407065
pop ecx
pop ecx
test eax, eax
jne 0x407876
inc edi
cmp edi, esi
jl 0x407851
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050629a
leave
ret 8

Function at 0x40a626
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.004153a9
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 0x40a65f
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.0040a263
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 0x40a6bd
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 0x40a6e1
cmp dword [edi + 0x74], 0
jne 0x40a6e1
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004153a9
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.0040a67e
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 0x40cd69
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 0x40cdb1
call fcn.004153a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40cdb1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40cdf4
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 0x40cddd
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 0x40cddd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40cdf1
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 0x413a6c
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 0x413ab3
call fcn.004153a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413ab3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413acf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041356c
mov esi, eax
test edi, edi
je 0x413acd
test ebx, ebx
je 0x413acd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4142a5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5238dd
call fcn.005080d7
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4142ca
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41431c
call fcn.0040c5ba
push eax
lea ecx, [ebp - 0x10]
call fcn.00404660
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.0050a165
push eax
call fcn.00404180
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.004042e0
mov eax, esi
call fcn.005081af
ret 8

Function at 0x4160e5
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.00415d89
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41612f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b29f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00408dc6
jmp 0x41613a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041a4c7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x416140
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.00413b78
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 0x41617d
call fcn.00415d89
mov dword [esi + 0xc], 1
jmp 0x416182
call fcn.00415d89
cmp dword [esi], 0
je 0x4161cb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4161a3
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b29f
jmp 0x4161b5
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00404880
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00408dc6
jmp 0x4161ef
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 0x4161ef
push dword [esi]
push dword [ebp + 8]
call fcn.0041a4c7
pop esi
pop ebp
ret 0xc
Function at 0x4187f9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41882e
xor eax, eax
jmp 0x418881
lea eax, [ebp - 0x210]
push eax
call fcn.00508659
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41885f
push 0x530654
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00508a65
add esp, 0xc
test eax, eax
jne 0x41882a
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00508a65
add esp, 0xc
test eax, eax
jne 0x41882a
lea eax, [ebp - 0x210]
push eax
call fcn.004075ea
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050629a
leave
ret
Function at 0x456e23
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dd653
call fcn.00414dda
cmp dword [eax + 0x14], 0
jne 0x456e40
mov ecx, esi
pop esi
jmp fcn.00456928
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004c1a0a
call fcn.00414dda
cmp dword [eax + 0x14], 0
jne 0x45a4da
mov ecx, esi
pop esi
jmp fcn.00459e90
pop esi
ret

Function at 0x493212
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 0x49322c
call fcn.004153a9
mov esi, dword [eax + 0xc]
push dword [0x5824a8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x49324a
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 0x493242
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x493277
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x493244
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00493140
mov esi, eax
jmp 0x493269

Function at 0x4e6a2f
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 0x4e6a47
mov edi, dword [esi + 0xc]
jmp 0x4e6a87
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e6a60
call fcn.00416530
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e6a75
call fcn.00416530
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e6a87
call fcn.00416530
call fcn.004153a9
cmp dword [eax + 0x3c], 0
je 0x4e6a9c
push edi
mov ecx, ebx
call fcn.004e58e3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e6949
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e6aba
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e6ac6
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 0x50629a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x579ec0]
jne 0x5062a4
repz ret
jmp fcn.0050e1a1
Function at 0x519a48
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x579ec0]
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.0050d91b
and dword [ebp - 0x14], 0
cmp dword [0x584ae8], 0
mov dword [ebp - 0x18], eax
jne 0x519afb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x519ba3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x557b68
push ebx
call edi
test eax, eax
je 0x519ba3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x557b58
push ebx
mov dword [0x584ae8], eax
call edi
push eax
call esi
push 0x557b44
push ebx
mov dword [0x584aec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x584af0], eax
call edi
push eax
call esi
mov dword [0x584af8], eax
test eax, eax
je 0x519afb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x584af4], eax
mov eax, dword [0x584af4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x519b54
cmp dword [0x584af8], ecx
je 0x519b54
push eax
call esi
push dword [0x584af8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x519b54
test ebx, ebx
je 0x519b54
call edi
test eax, eax
je 0x519b4b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x519b4b
test byte [ebp - 8], 1
jne 0x519b54
or dword [ebp + 0x10], 0x200000
jmp 0x519b87
mov eax, dword [0x584aec]
cmp eax, dword [ebp - 0x18]
je 0x519b87
push eax
call esi
test eax, eax
je 0x519b87
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x519b87
mov eax, dword [0x584af0]
cmp eax, dword [ebp - 0x18]
je 0x519b87
push eax
call esi
test eax, eax
je 0x519b87
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x584ae8]
call esi
test eax, eax
je 0x519ba3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x519ba5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050629a
leave
ret