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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
xor ebx, ebx
lea eax, [ebp - 0x264]
mov word [ebp - 0x264], bx
push eax
mov eax, dword [ebp - 4]
dec eax
push ebx
neg eax
sbb eax, eax
push ebx
and al, 0xeb
add eax, 0x17
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x401ba6
lea ecx, [ebp - 0x264]
call fcn.00401676
mov edx, str.7_Zip_
lea ecx, [ebp - 0x264]
call fcn.0040152d
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], ebx
xor edi, edi
lea esi, [ebp + eax*2 - 0x264]
cmp edi, ebx
mov edx, str.7_Zip_File_Manager.lnk
je 0x401b30
mov edx, str.7_Zip_Help.lnk
mov ecx, esi
call fcn.0040151a
lea eax, [ebp - 0x4bc]
push 0x404f28
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, ebx
mov edx, 0x403784
je 0x401b57
mov edx, str.7_zip.chm
lea ecx, [ebp - 0x4bc]
call fcn.0040152d
lea edx, [ebp - 0x4bc]
lea ecx, [ebp - 0x264]
call fcn.00401bb8
test eax, eax
jne 0x401b8b
lea eax, [ebp - 0x264]
mov dword [ebp - 8], 1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, 2
jb 0x401b22
cmp dword [ebp - 8], ebx
je 0x401ba6
lea eax, [ebp - 0x264]
mov word [esi], bx
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x401abf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c57
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov edx, dword [str.CLSID23170F69_40C1_278A_1000_000100020000InprocServer32]
push esi
lea eax, [ebp - 0x248]
push edi
mov esi, 0x80000000
push eax
push 0
mov ecx, esi
call fcn.00401dc4
test eax, eax
mov edi, 0x80000002
je 0x401d31
push str.7_zip.dll
mov edx, 0x404f28
lea ecx, [ebp - 0x248]
call fcn.00401e50
test eax, eax
je 0x401d31
mov edx, dword [str.CLSID23170F69_40C1_278A_1000_000100020000InprocServer32]
mov ecx, esi
call fcn.00401e08
test eax, eax
jne 0x401cc5
mov edx, dword [str.CLSID23170F69_40C1_278A_1000_000100020000]
mov ecx, esi
call fcn.00401e08
push ebx
mov ebx, 0x40312c
mov edx, dword [ebx]
lea ecx, [ebp - 0x450]
call fcn.0040151a
mov edx, str.7_Zip
lea ecx, [ebp - 0x450]
call fcn.0040152d
lea edx, [ebp - 0x450]
mov ecx, esi
call fcn.00401e08
add ebx, 4
cmp ebx, 0x403140
jb 0x401ccb
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a0b
test eax, eax
pop ebx
jne 0x401d31
push str.23170F69_40C1_278A_1000_000100020000
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe]
lea eax, [ebp - 0x248]
push eax
push 0
mov ecx, edi
call fcn.00401dc4
test eax, eax
je 0x401d71
push str.7zFM.exe
mov edx, 0x404f28
lea ecx, [ebp - 0x248]
call fcn.00401e50
test eax, eax
je 0x401d71
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe]
mov ecx, edi
call fcn.00401e08
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstall7_Zip]
lea eax, [ebp - 0x248]
push eax
push str.UninstallString
mov ecx, edi
call fcn.00401dc4
test eax, eax
je 0x401dc0
lea ecx, [ebp - 0x248]
call fcn.00401e11
mov edx, 0x404f28
lea ecx, [ebp - 0x248]
push dword [0x403128]
call fcn.00401e50
test eax, eax
je 0x401dc0
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstall7_Zip]
mov ecx, edi
call fcn.00401e08
pop edi
pop esi
leave
ret

Function at 0x401e77
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ebb
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ed8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x401edd
push 1
pop eax
pop esi
ret
call fcn.00401e77
pop esi
ret
Function at 0x100013d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x814
mov eax, dword [0x10013038]
xor eax, ebp
mov dword [ebp - 0x10], eax
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], str.GoogleBot
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x100014d0
mov esi, eax
mov eax, dword [ebp + 8]
sub esp, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x100014d4
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
movaps xmm0, xmmword [0x1000c2f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
mov dword [ebp - 0x820], eax
je 0x100014c1
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x814], 0xffffffff
lea esi, [ebp - 0x810]
nop
lea eax, [ebp - 0x814]
push eax
push 0x800
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x814]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x814], 0
jne 0x10001480
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x81c]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [ebp - 0x820]
jmp 0x100014d6
xor ebx, ebx
jmp 0x100014dd
xor ebx, ebx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000169e
mov eax, ebx
add esp, 0x814
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x10001500
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x204
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x10013038]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
mov byte [ebp + ecx - 0x110], cl
mov eax, ecx
xor edx, edx
div ebx
movzx eax, byte [esi + edx]
mov byte [ebp + ecx - 0x210], al
lea eax, [ecx + 1]
mov byte [ebp + ecx - 0x10f], al
xor edx, edx
div ebx
movzx eax, byte [esi + edx]
mov byte [ebp + ecx - 0x20f], al
add ecx, 2
cmp ecx, 0x100
jne 0x10001530
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x110]
add ecx, edx
movzx esi, byte [ebp + eax - 0x210]
lea ebx, [esi + ecx]
add ebx, 0xff
add ecx, esi
cmovns ebx, ecx
and ebx, 0xffffff00
sub ecx, ebx
movzx ebx, byte [ebp + ecx - 0x110]
mov byte [ebp + eax - 0x110], bl
mov byte [ebp + ecx - 0x110], dl
add eax, 1
cmp eax, 0x100
jne 0x10001570
cmp dword [ebp + 0x10], 0
mov esi, edi
je 0x10001643
xor edi, edi
xor ecx, ecx
xor edx, edx
nop word [eax + eax]
mov eax, esi
lea esi, [edx + 1]
lea ebx, [edx + 0x100]
test esi, esi
cmovns ebx, esi
and ebx, 0xffffff00
neg ebx
add edx, ebx
add edx, 1
movzx ebx, byte [ebp + edx - 0x110]
lea esi, [ecx + ebx]
add esi, 0xff
add ecx, ebx
cmovns esi, ecx
and esi, 0xffffff00
sub ecx, esi
mov esi, eax
movzx eax, byte [ebp + ecx - 0x110]
mov byte [ebp + edx - 0x110], al
mov byte [ebp + ecx - 0x110], bl
movzx eax, byte [ebp + edx - 0x110]
add eax, ebx
movzx eax, al
movzx eax, byte [ebp + eax - 0x110]
xor byte [esi + edi], al
add edi, 1
cmp dword [ebp + 0x10], edi
jne 0x100015d0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000169e
mov eax, esi
add esp, 0x204
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019e0
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 0x4019fb
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 0x401a32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401a2e
jmp 0x401a20
cmp esi, eax
jae 0x401a32
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a20
cmp esi, eax
jb 0x401a39
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 0x402190
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a63b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5646d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
push 0x546814
mov dword [esi], vtable.cDB2TextFile.0
call fcn.00401eb0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 2
cmp edi, ebx
je 0x40234f
cmp word [edi], bx
je 0x40234f
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x10]
push 0x208
push eax
call fcn.004f9204
add esp, 0x10
push ebx
push 0x8000000
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
jne 0x402233
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
jmp 0x40234f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402341
cmp ebx, 0x800000
ja 0x402341
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40227f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40234f
push ebx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4022b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [ebp - 0x18]
push edx
call edi
jmp 0x40234f
test bl, 1
jne 0x402300
mov dword [ebp - 0x10], 0x8a
mov eax, ebx
cmp ebx, 0x80
jle 0x4022ce
mov eax, 0x80
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x402300
test byte [ebp - 0x10], 0x88
je 0x4022ec
lea eax, [edi + 2]
sub ebx, 2
jmp 0x4022ee
mov eax, edi
shr ebx, 1
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004024e0
mov byte [ebp - 4], 1
jmp 0x40230e
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402510
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 4]
call fcn.00401790
lea ecx, [ebp - 0x1c]
call fcn.00402160
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x18]
push eax
call edi
mov dword [esi + 0xc], 0
jmp 0x40234f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0x1f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00407a22
mov esi, dword [eax + 0xc]
push 0x546aa0
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x402aa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x402a9a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x402a9a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x402a9a
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a9a
mov edx, dword [ebp - 8]
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
push edi
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a8c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5646d8]
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 0x405ad1
push 0x51df68
push 4
push eax
call fcn.004f9a1d
push eax
call fcn.00401a90
add esp, 0x10
jmp 0x405ae7
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x405b67
push edi
call fcn.004f8ec2
mov edi, dword [eax]
call fcn.004f8ec2
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.004f9192
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004f8ec2
cmp dword [eax], 0
je 0x405b3b
call fcn.004f8ec2
push dword [eax]
call fcn.00404c78
pop ecx
jmp 0x405b42
call fcn.004f8ec2
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x405b67
cmp dword [ebp - 0x234], esi
jae 0x405b67
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x405b69
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f879b
leave
ret
Function at 0x406181
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5646d8]
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.004060ab
pop ecx
cmp eax, esi
je 0x40626b
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40626b
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.004fa610
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 0x40626b
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40626b
cmp esi, 0x14
jge 0x40626b
push 0x10
push 0
push edi
call fcn.004f90e7
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40625a
call fcn.004f8ec2
cmp dword [eax], 0x22
je 0x40625a
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004f9a02
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x406230
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 [0x565b6c], 0
jne 0x4062f6
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40631f
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00405a8c
pop ecx
pop ecx
test eax, eax
jne 0x406321
inc edi
cmp edi, esi
jl 0x4062fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f879b
leave
ret 8

Function at 0x40bba9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5646d8]
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 0x40bbde
xor eax, eax
jmp 0x40bc31
lea eax, [ebp - 0x210]
push eax
call fcn.004f9a02
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40bc0f
push 0x5467fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fa68a
add esp, 0xc
test eax, eax
jne 0x40bbda
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fa68a
add esp, 0xc
test eax, eax
jne 0x40bbda
lea eax, [ebp - 0x210]
push eax
call fcn.004060ab
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f879b
leave
ret
Function at 0x417f8e
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 0x417fd5
call fcn.00407a22
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417fd5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417ff1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417a8e
mov esi, eax
test edi, edi
je 0x417fef
test ebx, ebx
je 0x417fef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4184d0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5162f8
call fcn.004f9e64
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4184f5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418547
call fcn.00405521
push eax
lea ecx, [ebp - 0x10]
call fcn.004019b0
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.004f9204
push eax
call fcn.00401a90
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.00402140
mov eax, esi
call fcn.004f9f3c
ret 8

Function at 0x4199e6
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.0041968a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x419a30
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004027d0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401960
jmp 0x419a3b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040ed59
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x419a41
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.0041819a
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 0x419a7e
call fcn.0041968a
mov dword [esi + 0xc], 1
jmp 0x419a83
call fcn.0041968a
cmp dword [esi], 0
je 0x419acc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x419aa4
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004027d0
jmp 0x419ab6
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402100
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401960
jmp 0x419af0
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 0x419af0
push dword [esi]
push dword [ebp + 8]
call fcn.0040ed59
pop esi
pop ebp
ret 0xc

Function at 0x424842
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x424813
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x424831
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42488f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x424876
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42487f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x424889
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42486b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4247f5
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4248dc
dec eax
je 0x4248d3
sub eax, 3
je 0x4248ca
mov dword [ebp - 4], 0x40
jmp 0x4248f9
mov dword [ebp - 4], 4
jmp 0x4248df
mov dword [ebp - 4], 0x20
jmp 0x4248df
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42492b
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4248ab
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042413c
and ch, byte [esi + eax - 0x2d]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x424937
invalid
invalid
invalid