joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40adb0
cmp edx, dword [eax]
je 0x4067e7
add eax, 8
inc ecx
cmp eax, 0x40ae40
jl 0x4067d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40adb0]
jne 0x406915
mov eax, dword [0x40b8a8]
cmp eax, 1
je 0x4068ef
test eax, eax
jne 0x406818
cmp dword [0x40ab94], 1
je 0x4068ef
cmp edx, 0xfc
je 0x406915
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40684f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406892
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094bc
push edi
call fcn.00407b20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407680
lea eax, [ebp - 0xa0]
push 0x40949c
push eax
call fcn.00407680
push dword [esi + 0x40adb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407a95
add esp, 0x2c
pop edi
jmp 0x406915
lea eax, [ebp + 8]
lea esi, [esi + 0x40adb4]
push 0
push eax
push dword [esi]
call fcn.00406a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4010d0
Capabilities:
Copy file
Get common file path
Hide graphical window
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x577f00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x10], 0x63356563
mov dword [ebp - 0xc], 0x61306536
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push 0x25b
push 0x29
mov dword [ebp - 0x124], 0x7bfd
mov dword [ebp - 0x120], 0xe9a
mov dword [ebp - 0x11c], 0x7376
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 4
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 1
push str.._0hi98
push str.._5UQL
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.bAU8
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x124]
call fcn.00401910
add esp, 4
push 0x3a7
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call esi
push eax
call ebx
mov edx, dword [ebp - 0x128]
push edx
call fcn.004012d0
mov ebx, eax
add esp, 4
lea eax, [ebp - 0x12c]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x128]
push ecx
push edi
push ebx
call fcn.00509220
add esp, 0xc
push 0
push str.._NgMo
push str.._7Qe4s
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x1ce
push 2
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
push 0
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push 0xcf0000
push str.rwi2e
push str.LohX
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xffffffffffffffeb
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
call ebx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
push str.eIV4
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
call fcn.0040339d
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.._n9YM
push str.._49h9D
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005090f0
mov esp, ebp
pop ebp
ret
Function at 0x4013b0
Capabilities:
Copy file
Encode data using xor
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x577f00]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
push 0x3ce
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
lea ecx, [ebp - 0x18]
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0x14], 0x10
jb 0x40140c
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
jmp 0x40140f
mov dword [ebp - 0x2c], esi
push 1
push str.._jrM2
push str.._ycB8L
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 4
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push 0x38b
push 0x3db
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x40149f
xor edx, edx
mov eax, esi
div dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
mov dl, byte [edx + ecx]
xor byte [ebx + esi], dl
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0
push 0x33c
push 0x25
call edi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 1
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
inc esi
cmp esi, dword [ebp + 8]
jb 0x401457
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.005090f0
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Accept command line arguments
Get file attributes
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x577f00]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
movzx edx, word [ebp + 8]
push esi
push edi
push edx
push ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
call fcn.00401cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
add esp, 8
push str.qoGN
mov dword [ebp - 0x40], eax
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call edi
push str.._FAwT
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call esi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4017b6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005090f0
mov esp, ebp
pop ebp
ret
push eax
call fcn.00401d40
add esp, 4
push str.slKM9
mov ebx, eax
call esi
push eax
call edi
push 4
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push 0x2c8
push 0xdc
push 0x303
push 0x312
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x36e
push 0x39b
call esi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
test ebx, ebx
je 0x4017a3
call fcn.00401de0
lea ecx, [ebp - 0x1c]
push ecx
mov edi, eax
push 0
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push 0x1e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4017a3
mov edi, 0x5573b8
call fcn.00401310
test eax, eax
je 0x401862
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
push edx
push ecx
call eax
mov edi, eax
jmp 0x401864
xor edi, edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x18]
push eax
call ebx
push 0
push 0x78
push 0x2b
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push str.._LVXjj
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov eax, dword [ebp - 0x48]
cmp edi, eax
jb 0x4017a3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x4c]
push edi
push edx
mov edi, eax
call fcn.004014b0
add esp, 0xc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
lea ecx, [ebp - 0x18]
push ecx
call ebx
push 0x22e
call esi
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005090f0
mov esp, ebp
pop ebp
ret
Function at 0x402360
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 0x40237b
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 0x4023b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4023ae
jmp 0x4023a0
cmp esi, eax
jae 0x4023b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4023a0
cmp esi, eax
jb 0x4023b9
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 0x402690
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52bf98
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push esi
push edi
mov eax, dword [0x577f00]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.004075ab
call fcn.004010d0
xor edi, edi
push edi
call fcn.004112aa
add esp, 4
push 0xc
call fcn.00403363
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0xe8], edi
cmp eax, edi
je 0x402717
mov ecx, eax
call fcn.0041217a
mov edi, eax
push 0x53011c
mov dword [esp + 0xec], 0xffffffff
call fcn.0040d16b
push 0x557504
mov ecx, esi
call fcn.00407850
push 0
push 0x66
lea ecx, [esp + 0x24]
call fcn.00417b95
mov dword [esp + 0xe8], 1
mov dword [esp + 0x1c], vtable.CMyAppDlg.0
call fcn.004185a9
call fcn.004185a9
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe8], 2
mov dword [esi + 0x20], ecx
call fcn.00412b7a
test edi, edi
je 0x40279e
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
call fcn.0040450e
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe8], 4
call fcn.00408ca9
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], vtable.CBrush.0
call fcn.00402500
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe8], 0xffffffff
call fcn.00412347
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410eae
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 0x410ef6
call fcn.004185a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410ef6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x410f39
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 0x410f22
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 0x410f22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x410f36
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 0x412d79
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.004185a9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412db2
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.004129bb
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 0x412e10
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 0x412e34
cmp dword [edi + 0x74], 0
jne 0x412e34
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004185a9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.00412dd1
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 0x41ef77
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 0x41efbe
call fcn.004185a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41efbe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41efda
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ea7c
mov esi, eax
test edi, edi
je 0x41efd8
test ebx, ebx
je 0x41efd8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41f7b0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52b060
call fcn.0050c463
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41f7d5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41f827
call fcn.00406117
push eax
lea ecx, [ebp - 0x10]
call fcn.00402b90
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.0050d008
push eax
call fcn.00403a81
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402410
mov eax, esi
call fcn.0050c53b
ret 8

Function at 0x4556c0
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 0x4556da
call fcn.004185a9
mov esi, dword [eax + 0xc]
push dword [0x57cab4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4556f8
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 0x4556f0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x455725
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4556f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004555ee
mov esi, eax
jmp 0x455717
Function at 0x4cac58
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.004ca917
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4caca2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00403b62
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403b33
jmp 0x4cacad
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041fd66
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4cacb3
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.0041f083
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4cacf0
call fcn.004ca917
mov dword [esi + 0xc], 1
jmp 0x4cacf5
call fcn.004ca917
cmp dword [esi], 0
je 0x4cad3e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4cad16
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00403b62
jmp 0x4cad28
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402bc0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403b33
jmp 0x4cad62
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4cad62
push dword [esi]
push dword [ebp + 8]
call fcn.0041fd66
pop esi
pop ebp
ret 0xc

Function at 0x4dadb4
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 0x4dadcc
mov edi, dword [esi + 0xc]
jmp 0x4dae0c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4dade5
call fcn.00416640
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dadfa
call fcn.00416640
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dae0c
call fcn.00416640
call fcn.004185a9
cmp dword [eax + 0x3c], 0
je 0x4dae21
push edi
mov ecx, ebx
call fcn.004d9c7a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dacce
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dae3f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dae4b
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 0x4ddfbe
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0050367f
call fcn.00417fda
cmp dword [eax + 0x14], 0
jne 0x4ddfdb
mov ecx, esi
pop esi
jmp fcn.004ddac3
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004df81a
call fcn.00417fda
cmp dword [eax + 0x14], 0
jne 0x4e1155
mov ecx, esi
pop esi
jmp fcn.004e0b0b
pop esi
ret

Function at 0x5090f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x577f00]
jne 0x5090fa
repz ret
jmp fcn.0051149f

Function at 0x51c8ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x577f00]
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.00514cb6
and dword [ebp - 0x14], 0
cmp dword [0x57f73c], 0
mov dword [ebp - 0x18], eax
jne 0x51c99f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51ca47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51ca47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x557194
push ebx
mov dword [0x57f73c], eax
call edi
push eax
call esi
push 0x557180
push ebx
mov dword [0x57f740], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57f744], eax
call edi
push eax
call esi
mov dword [0x57f74c], eax
test eax, eax
je 0x51c99f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57f748], eax
mov eax, dword [0x57f748]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51c9f8
cmp dword [0x57f74c], ecx
je 0x51c9f8
push eax
call esi
push dword [0x57f74c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51c9f8
test ebx, ebx
je 0x51c9f8
call edi
test eax, eax
je 0x51c9ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51c9ef
test byte [ebp - 8], 1
jne 0x51c9f8
or dword [ebp + 0x10], 0x200000
jmp 0x51ca2b
mov eax, dword [0x57f740]
cmp eax, dword [ebp - 0x18]
je 0x51ca2b
push eax
call esi
test eax, eax
je 0x51ca2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51ca2b
mov eax, dword [0x57f744]
cmp eax, dword [ebp - 0x18]
je 0x51ca2b
push eax
call esi
test eax, eax
je 0x51ca2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57f73c]
call esi
test eax, eax
je 0x51ca47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51ca49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005090f0
leave
ret