joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491c10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
call fcn.004920a0
mov esi, dword [ebp + 8]
test esi, esi
je 0x491d7f
cmp word [esi], 0
je 0x491d7f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491d7f
mov eax, dword [0x52d194]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push esi
call fcn.0044fb20
mov edi, eax
add esp, 8
test edi, edi
je 0x491c8d
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx - 8]
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x491cc1
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x52d120]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x491cba
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x491cba
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.00512b1a
add esp, 4
mov eax, edi
jmp 0x491d81
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp + 8], eax
jne 0x491ce3
xor esi, esi
jmp 0x491d15
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00512b50
mov eax, dword [ebp + 8]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push ebx
call fcn.0047f4f0
add esp, 8
test eax, eax
jle 0x491d42
push 1
push 8
push str.SWITCH_
push eax
push ebx
push ebx
call fcn.0041c210
push ebx
push 0x5dba28
call fcn.00493aa0
add esp, 0x20
push ebx
call fcn.00512b1a
mov eax, dword [ebp - 0x10]
mov edx, dword [0x52d120]
add esp, 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x491d78
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x491d78
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff4
push edx
call fcn.00512b1a
add esp, 4
mov eax, 1
jmp 0x491d81
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x493fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x515edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0x224
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov dword [esp + 0x20], ebx
je 0x494042
mov al, byte [esp + 0x28]
mov dl, byte [esp + 0x28]
lea ecx, [esi + 0x20c]
mov byte [ecx], al
mov byte [ecx + 1], dl
mov byte [ecx + 8], bl
call fcn.00496e20
mov eax, dword [0x52d194]
mov ecx, 0x82
mov dword [esi + 0x21c], eax
mov dword [esi], ebx
mov eax, dword [esi + 0x210]
lea edi, [esi + 4]
mov dword [esi + 0x220], eax
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x494044
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], esi
jne 0x49406b
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [ecx], esi
mov dword [esi], edx
mov esi, dword [esp + 0x2c]
push esi
call edi
add esp, 4
cmp eax, 0x103
jbe 0x494095
mov eax, 0x103
jmp 0x49409b
push esi
call edi
add esp, 4
push ebp
push eax
mov eax, dword [esp + 0x14]
push esi
add eax, 4
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ecx]
cmp eax, 2
je 0x49418c
cmp eax, 1
jne 0x4940d5
push ebx
push esi
call fcn.0043db40
add esp, 8
test eax, eax
je 0x49418c
push ebx
push 0x20
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4940fa
mov dword [esp + 0x14], 1
jmp 0x494160
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x494180
lea edx, [edi + 2]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x494160
lea ecx, [esp + 0x34]
push ebx
push ecx
lea eax, [esi + edi]
push edi
push esi
mov dword [esp + 0x44], ebx
push ebp
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49414f
cmp edi, dword [esp + 0x34]
jne 0x49414f
mov edx, dword [esp + 0x2c]
push esi
push edx
call fcn.00493aa0
add esp, 8
mov dword [esp + 0x14], eax
push esi
call fcn.00512b1a
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x494180
mov eax, dword [esp + 0x2c]
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x494180
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.004941b0
add esp, 8
mov dword [esp + 0x10], ebx
cmp ebp, 0xffffffff
je 0x49418c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4944e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x515ef8
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebp, ebp
je 0x494668
mov esi, dword [esp + 0x28]
test esi, esi
je 0x494668
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x494668
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jbe 0x494668
mov eax, dword [ebp + 0x21c]
lea edi, [ebp + 0x21c]
push esi
push eax
lea ebx, [ebp + 0x20c]
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x494553
mov esi, dword [ebp + 0x220]
jmp 0x4945bf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, edi
call fcn.00437fe0
push esi
lea ecx, [esp + 0x24]
call fcn.0043c840
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.00496220
mov eax, dword [esp + 0x20]
mov edx, dword [0x52d120]
mov esi, dword [esp + 0x28]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4945b9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4945b9
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00512b1a
add esp, 4
mov dword [ebp + 0x220], esi
cmp esi, dword [ebx + 4]
je 0x494668
mov esi, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 0xc]
jae 0x494668
mov eax, dword [esi + 4]
test ecx, ecx
mov eax, dword [eax]
jle 0x49461c
mov edx, dword [0x5dba38]
mov esi, ecx
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x494600
mov eax, dword [ecx]
cmp eax, edx
je 0x494617
mov ecx, eax
mov eax, dword [ecx]
cmp eax, edx
jne 0x4945f6
jmp 0x494617
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x494612
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x494608
cmp dword [eax + 8], ecx
je 0x494619
mov eax, ecx
dec esi
jne 0x4945e9
mov ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
push ecx
push edx
push 0x559b50
push eax
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi]
push edi
mov word [edi + ecx*2 - 2], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [esi], eax
add esp, 0x18
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x497be0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0xc
cmp eax, 3
je 0x497c75
cmp eax, 1
jne 0x497bfa
xor eax, eax
add esp, 0xc
ret
lea eax, [esp]
mov dword [esp + 4], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x497c75
mov eax, dword [esp]
test eax, eax
je 0x497c75
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.ProxyEnable
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test eax, eax
jne 0x497c75
xor eax, eax
add esp, 0xc
ret
mov eax, 1
add esp, 0xc
ret
Function at 0x498980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516116
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], 0x51d56c
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x24]
push eax
mov dword [esp + 0x30], 1
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.004117c0
mov eax, dword [esi + 4]
push eax
call fcn.00512b1a
mov ebp, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
xor ebx, ebx
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esp + 0x10]
xor esi, esi
call ebp
mov eax, dword [0x5650ec]
dec eax
mov dword [0x5650ec], eax
jne 0x498a01
mov esi, dword [0x5650e8]
mov dword [0x5650e8], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebx
je 0x498a18
push esi
call fcn.00512b1a
add esp, 4
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x14]
push eax
mov byte [esp + 0x30], bl
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00458aa0
mov eax, dword [esi + 4]
push eax
call fcn.00512b1a
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esp + 0x10]
xor esi, esi
call ebp
mov eax, dword [0x5d1090]
dec eax
mov dword [0x5d1090], eax
jne 0x498a65
mov esi, dword [0x5d108c]
mov dword [0x5d108c], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebx
je 0x498a7c
push esi
call fcn.00512b1a
add esp, 4
mov ecx, dword [edi + 0x10]
lea esi, [edi + 4]
cmp ecx, ebx
mov dword [esp + 0x2c], 0xffffffff
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
je 0x498ad0
mov ecx, eax
cmp eax, ecx
jne 0x498ad0
mov edx, dword [edi + 4]
mov ecx, esi
push edx
call fcn.004121c0
mov eax, dword [esi + 4]
mov ecx, dword [0x5650e8]
lea edx, [esp + 0x18]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ebx
push edx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [eax + 8], eax
call fcn.004b4ac0
jmp 0x498af8
cmp eax, edi
je 0x498af8
lea eax, [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00458300
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00411d60
cmp dword [esp + 0x10], edi
jne 0x498ad4
mov eax, dword [esi + 4]
push eax
call fcn.00512b1a
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esp + 0x14]
xor esi, esi
call ebp
mov eax, dword [0x5650ec]
dec eax
mov dword [0x5650ec], eax
jne 0x498b2b
mov esi, dword [0x5650e8]
mov dword [0x5650e8], ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebx
je 0x498b42
push esi
call fcn.00512b1a
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x499670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4996c2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4996c2
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4996b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4996d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edi
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00499670
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4996f5
pop edi
ret
mov ecx, dword [esp + 0xc]
push esi
push 0x54df0c
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x499728
mov edx, dword [esp + 0x18]
push esi
push 1
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
mov eax, 1
pop edi
ret

Function at 0x499d90
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1664
call fcn.00512b50
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41e]
mov word [esp + 0x41c], si
mov word [esp + 0xc], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x41c]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0xc]
push 0x104
lea edx, [esp + 0x420]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], si
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x214]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push str._s360se_
push 0x103
push ecx
call esi
mov dx, word [0x560ec0]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x636]
mov word [esp + 0x634], dx
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x2000
lea ecx, [esp + 0x628]
push eax
lea edx, [esp + 0x21c]
push ecx
push edx
mov dword [esp + 0x18], 0x823
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
mov ecx, dword [esp + 0x1674]
mov edx, dword [esp + 0x1670]
lea eax, [esp + 0x624]
dec ecx
push eax
push str.res:___s
push ecx
push edx
call esi
add esp, 0x10
pop edi
pop esi
add esp, 0x1664
ret
Function at 0x49b540
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x49b59a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49b59a
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49b59a
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x49b5a0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebx
sete al
ret

Function at 0x49c000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49c087
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49c087
mov edx, eax
shr edx, 0x10
jne 0x49c029
and eax, 0xffff
mov ebp, dword [esp + 0x14]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x49c087
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x49c07e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x49c07e
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov byte [esi + 4], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc

Function at 0x49c002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49c087
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49c087
mov edx, eax
shr edx, 0x10
jne 0x49c029
and eax, 0xffff
mov ebp, dword [esp + 0x14]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x49c087
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x49c07e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x49c07e
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov byte [esi + 4], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc
Function at 0x49c1d0
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x49c1e3
pop edi
xor eax, eax
pop esi
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c1f3
pop edi
pop esi
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jne 0x49c20b
pop edi
pop esi
ret 4
mov eax, 1
mov dword [esi + 0x10], 0
mov byte [esi + 4], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
pop edi
pop esi
ret 4

Function at 0x49ece0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5163c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00500a80
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004ee980
push ebp
lea ecx, [esi + 0x12f0]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x519ca0
call fcn.004df4b0
lea ecx, [esi + 0x1328]
mov byte [esp + 0x18], 2
call fcn.004e4b20
mov dword [esi + 0x135c], ebp
mov dword [esi + 0x1360], ebp
mov eax, 3
mov dword [esi], 0x51d5cc
mov dword [edi], 0x51d5c8
mov dword [esi + 0x298], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x28], 0x51d5b8
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi + 0x284], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x28c], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x290], 5
mov dword [esi + 0x294], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e8], ebp
mov dword [esi + 0x12ec], ebp
mov dword [esi + 0x244], ebp
mov dword [esi + 0x258], 1
mov dword [esi + 0x240], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1368]
xor ecx, ecx
mov edx, eax
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x280], ebp
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x1354], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], 0xffffffff
mov dword [esi + 0x1358], ebp
mov dword [esi + 0x1364], 2
mov dword [edx], ecx
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x10
mov dword [esi + 0x1378], ebp
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49ecf7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5163c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00500a80
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004ee980
push ebp
lea ecx, [esi + 0x12f0]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x519ca0
call fcn.004df4b0
lea ecx, [esi + 0x1328]
mov byte [esp + 0x18], 2
call fcn.004e4b20
mov dword [esi + 0x135c], ebp
mov dword [esi + 0x1360], ebp
mov eax, 3
mov dword [esi], 0x51d5cc
mov dword [edi], 0x51d5c8
mov dword [esi + 0x298], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x28], 0x51d5b8
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi + 0x284], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x28c], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x290], 5
mov dword [esi + 0x294], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e8], ebp
mov dword [esi + 0x12ec], ebp
mov dword [esi + 0x244], ebp
mov dword [esi + 0x258], 1
mov dword [esi + 0x240], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1368]
xor ecx, ecx
mov edx, eax
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x280], ebp
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x1354], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], 0xffffffff
mov dword [esi + 0x1358], ebp
mov dword [esi + 0x1364], 2
mov dword [edx], ecx
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x10
mov dword [esi + 0x1378], ebp
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x49f2b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x24c]
test eax, eax
jne 0x49f35d
lea eax, [esp + 4]
push 0
push eax
call fcn.0049ef70
mov edx, dword [0x5e3f3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esi + 4]
sub eax, ecx
push 0
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push 0x44000080
push 0x560ec0
push str.edit
push 0x20
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x24c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x24c]
push esi
push str.CLASSPROC
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, dword [esi + 0x24c]
push 0x49eca0
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
call fcn.0049f440
mov edx, dword [esi + 0x24c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x10
ret
Function at 0x49ff40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x218
push esi
mov esi, ecx
cmp word [esi + 0x30], 0
je 0x49ffd4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49ffd4
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
pop edi
test eax, eax
je 0x49ff95
lea ecx, [esp + 0x14]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x14], 0
push 1
jne 0x49ffb5
mov edx, dword [esi + 4]
push 0
push edx
call fcn.00500ff0
add esp, 0xc
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.0049ef70
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push 1
push ecx
push edx
call fcn.00500ff0
add esp, 0xc
pop esi
add esp, 0x218
ret