joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc6b1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x547148]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x4bc6f1
call esi
test eax, eax
je 0x4bc6d6
mov dword [0x547148], 1
jmp 0x4bc6f6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4bc6ed
mov dword [0x547148], 2
jmp 0x4bc6ff
xor eax, eax
jmp 0x4bc74f
cmp eax, 1
jne 0x4bc6fa
call esi
jmp 0x4bc74f
cmp eax, 2
jne 0x4bc6ed
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
jne 0x4bc723
xor eax, eax
jmp 0x4bc74d
lea eax, [esi + esi]
push eax
call fcn.004b6f64
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4bc71f
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4bc74b
push ebp
call fcn.004b6aea
pop ecx
jmp 0x4bc71f
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4bfd3a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004b6f80
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4bfdcf
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x546ef0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4bfdcf
cmp eax, 1
je 0x4bfde7
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4bfdcf
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4bfda4
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4bfdcb
xor eax, eax
inc eax
jmp 0x4bfe03
cmp esi, ebx
jae 0x4bfdd3
xor eax, eax
jmp 0x4bfe03
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x546ef0]
jmp 0x4bfde9
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c334d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4c3376
xor eax, eax
jmp 0x4c34e4
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5488a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4c33a9
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004b9ee7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4c347b
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4c34b6
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4c3404
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4c33f5
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4c33d8
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4c3444
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4c344d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4c33c9
jmp 0x4c344f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4c34df
cmp dword [ebp - 8], edi
je 0x4c34b6
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4c34a8
call fcn.004bb132
mov dword [eax], 9
call fcn.004bb13b
mov dword [eax], esi
jmp 0x4c34b1
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4c349d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4c344f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4c344f
push dword [ebp - 8]
call fcn.004bb144
pop ecx
or eax, 0xffffffff
jmp 0x4c34e2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4c34cb
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4c34cb
xor eax, eax
jmp 0x4c34e2
call fcn.004bb132
mov dword [eax], 0x1c
call fcn.004bb13b
mov dword [eax], edi
jmp 0x4c34b1
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004b8f56
leave
ret
Function at 0x4c48e5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004b6f80
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004c3d08
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4c4a0f
push 2
push esi
push dword [ebp + 8]
call fcn.004c3d08
add esp, 0xc
cmp eax, ebx
je 0x4c4a0f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4c49b2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004ba870
push 0x8000
push dword [ebp + 8]
call fcn.004c85e9
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4c496b
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004c334d
add esp, 0xc
cmp eax, 0xffffffff
je 0x4c498b
sub edi, eax
test edi, edi
jg 0x4c4963
jmp 0x4c49a3
call fcn.004bb13b
cmp dword [eax], 5
jne 0x4c49a0
call fcn.004bb132
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004c85e9
pop ecx
pop ecx
jmp 0x4c49fa
jge 0x4c49fa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c3d08
push dword [ebp + 8]
call fcn.004bae66
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4c49fa
call fcn.004bb132
mov dword [eax], 0xd
call fcn.004bb13b
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004c3d08
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4c4a11
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004b8f56
leave
ret
Function at 0x4c6099
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5473c0], ebx
push esi
push edi
jne 0x4c6119
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c6154
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x5473c0], eax
je 0x4c6154
push 0x518c18
push edi
call esi
push 0x518c04
push edi
mov dword [0x5473c4], eax
call esi
cmp dword [0x546ef0], 2
mov dword [0x5473c8], eax
jne 0x4c6119
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5473d0], eax
je 0x4c6119
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5473cc], eax
mov eax, dword [0x5473cc]
test eax, eax
je 0x4c615e
call eax
test eax, eax
je 0x4c6145
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5473d0]
test eax, eax
je 0x4c6145
test byte [ebp - 8], 1
jne 0x4c615e
cmp dword [0x546efc], 4
jb 0x4c6158
or byte [ebp + 0x12], 0x20
jmp 0x4c617d
xor eax, eax
jmp 0x4c618d
or byte [ebp + 0x12], 4
jmp 0x4c617d
mov eax, dword [0x5473c4]
test eax, eax
je 0x4c617d
call eax
mov ebx, eax
test ebx, ebx
je 0x4c617d
mov eax, dword [0x5473c8]
test eax, eax
je 0x4c617d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5473c0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c9d85
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4c9df0
push 0x3d
push dword [ebp + 8]
call fcn.004c9f65
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4c9df0
cmp dword [ebp + 8], esi
je 0x4c9df0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x546f10]
cmp eax, dword [0x546f14]
jne 0x4c9dd6
mov edi, eax
call fcn.004c9d24
mov dword [0x546f10], eax
cmp eax, ebx
jne 0x4c9e2f
cmp dword [ebp + 0xc], ebx
je 0x4c9df8
cmp dword [0x546f18], ebx
je 0x4c9df8
call fcn.004c985a
test eax, eax
je 0x4c9e2f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4c9f33
push 4
call fcn.004b6f64
cmp eax, ebx
pop ecx
mov dword [0x546f10], eax
je 0x4c9df0
mov dword [eax], ebx
cmp dword [0x546f18], ebx
jne 0x4c9e2f
push 4
call fcn.004b6f64
cmp eax, ebx
pop ecx
mov dword [0x546f18], eax
je 0x4c9df0
mov dword [eax], ebx
mov ebx, dword [0x546f10]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004c9cd7
mov edi, eax
test edi, edi
pop ecx
jl 0x4c9e88
cmp dword [ebx], 0
je 0x4c9e88
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004b6aea
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4c9e70
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4c9ebe
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4c9e67
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004b93e0
test eax, eax
pop ecx
pop ecx
je 0x4c9ebe
jmp 0x4c9eb9
cmp dword [ebp - 4], 0
jne 0x4c9f2c
test edi, edi
jge 0x4c9e98
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004b93e0
test eax, eax
pop ecx
pop ecx
je 0x4c9df0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x546f10], eax
cmp dword [ebp + 0xc], 0
je 0x4c9f15
push dword [ebp + 8]
call fcn.004bace0
inc eax
inc eax
push eax
call fcn.004b6f64
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4c9f15
push dword [ebp + 8]
push esi
call fcn.004c3c10
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4c9f0e
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004b6aea
pop ecx
cmp dword [ebp - 4], 0
je 0x4c9f24
push dword [ebp + 8]
call fcn.004b6aea
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4c9df3
push esi
call fcn.004b6aea
pop ecx
xor eax, eax
jmp 0x4c9df3
Function at 0x4cc110
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4f506e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
xor edi, edi
cmp eax, edi
lea ebp, [esi + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esi + 0x18], ebx
mov dword [ebp], edi
je 0x4cc162
cmp ecx, 1
jle 0x4cc162
mov eax, 1
jmp 0x4cc164
xor eax, eax
mov dword [esi + 0x24], ecx
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.00460110
mov al, byte [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 1
mov byte [esi + 0x4c], al
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
cmp dword [ecx], edi
mov byte [esp + 0x1c], 1
jl 0x4cc293
mov edx, dword [ebx]
push ebp
push 0x507284
push ebx
call dword [edx]
cmp eax, edi
mov ebx, dword [esp + 0x28]
mov dword [ebx], eax
jl 0x4cc293
cmp dword [esp + 0x2c], edi
je 0x4cc1eb
mov ebp, dword [ebp]
mov eax, dword [ebp]
push ebp
call dword [eax + 0x20]
cmp eax, edi
jl 0x4cc1eb
xor ecx, ecx
cmp eax, edi
sete cl
mov ebp, ecx
jmp 0x4cc1ef
mov ebp, dword [esp + 0x30]
mov edx, dword [esi + 0x24]
shl edx, 2
push edx
call fcn.004d2f6a
add esp, 4
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x4cc255
cmp ebp, edi
je 0x4cc293
push edi
push DirectSoundCreate
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
cmp eax, edi
mov dword [esi + 0x2c], eax
je 0x4cc278
push 0x18
call fcn.004d2f6a
mov ebp, eax
add esp, 4
mov dword [esp + 0x44], ebp
cmp ebp, edi
mov byte [esp + 0x1c], 2
je 0x4cc24c
mov eax, dword [esp + 0x3c]
push eax
push edi
mov ecx, ebp
call fcn.004651c0
mov eax, ebp
jmp 0x4cc24e
xor eax, eax
cmp eax, edi
mov dword [esi + 0x28], eax
jne 0x4cc25d
mov dword [ebx], 0x8007000e
jmp 0x4cc293
lea ecx, [esp + 0x28]
push ecx
push edi
push esi
push 0x4cc0e0
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x4cc287
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or eax, 0x80070000
mov dword [ebx], eax
jmp 0x4cc293
mov edx, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x4cc59b
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4f459d
call fcn.004ba84c
sub esp, 0x11c
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.004d46d7
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.004ad22f
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x4cc62c
mov edi, 0x114
push edi
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.004ba870
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], edi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x118], 2
jne 0x4cc625
cmp dword [ebp - 0x124], 5
mov dword [ebp + 0x20], 0x58
jae 0x4cc62c
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004b6f64
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x4cc641
call fcn.004cc335
push dword [ebp + 0x20]
push ebx
push dword [esi + 0x70]
call fcn.004ba870
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x304], ebx
lea ecx, [esi + 0x7c]
mov word [ecx], bx
lea edi, [esi + 0xfc]
mov word [edi], bx
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x4cc6c2
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.004e69f3
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x4ccc83
je 0x4cc6ee
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x4cc727
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004ad30b
push ebx
mov ecx, edi
call fcn.004ad24d
jmp 0x4cc710
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.004b7104
cmp eax, ebx
pop ecx
pop ecx
jne 0x4cc70a
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004b8f56
leave
ret 0x1c
Function at 0x4d190c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x4d1946
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ad28e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ad173
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4d2c3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4d2c81
call fcn.004e69f3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4d2c81
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x4d2c9c
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004d1dc1
test ebx, ebx
mov esi, eax
je 0x4d2c9a
test edi, edi
je 0x4d2c9a
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4d3673
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4f417a
call fcn.004ba84c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4d3698
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4d36e4
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401e40
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4d4a7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4d4ab3
call fcn.004e69f3
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d4ac4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4d4afd
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4d4ae2
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4d4aea
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4d4afb
test ax, ax
jne 0x4d4afb
test si, si
je 0x4d4afd
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4d4b0c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4d4d5e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4f42d3
call fcn.004ba84c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004e69f3
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4d4dac
call fcn.004e69f3
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d4dbd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4d4dc9
or eax, 0xffffffff
jmp 0x4d4ecc
mov ecx, esi
call fcn.004d48a6
mov dword [ebp - 0x14], eax
call fcn.004d0cb9
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4d4e0c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4d4e0c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4d4e0c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004d22d1
push dword [ebp - 0x14]
call fcn.004d0c11
push edi
push eax
push ebx
mov ecx, esi
call fcn.004d4b51
xor ebx, ebx
cmp eax, ebx
je 0x4d4e80
test byte [esi + 0x38], 0x10
je 0x4d4e4e
push 4
pop edi
mov ecx, esi
call fcn.004d3053
test ah, 1
je 0x4d4e46
push 5
pop edi
push edi
mov ecx, esi
call fcn.004d06b5
cmp dword [esi + 0x1c], ebx
je 0x4d4e80
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004d32cc
jmp 0x4d4e80
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4d4e94
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4d4ead
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4d4ead
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004d48e0
cmp dword [esi + 0x54], ebx
je 0x4d4ec9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4d4f06
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 ebx, ebx
call fcn.004e69f3
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 0x4d4f3d
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.004d4b51
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8