joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81407c]
jne 0x4015e7
repz ret
jmp fcn.00401f07

Function at 0x407a1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x81407c]
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.004056e4
and dword [ebp - 0x14], 0
cmp dword [0x816e50], 0
mov dword [ebp - 0x18], eax
jne 0x407acf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407b77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407b77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x816e50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x816e54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x816e58], eax
call edi
push eax
call esi
mov dword [0x816e60], eax
test eax, eax
je 0x407acf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x816e5c], eax
mov eax, dword [0x816e5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407b28
cmp dword [0x816e60], ecx
je 0x407b28
push eax
call esi
push dword [0x816e60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407b28
test ebx, ebx
je 0x407b28
call edi
test eax, eax
je 0x407b1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407b1f
test byte [ebp - 8], 1
jne 0x407b28
or dword [ebp + 0x10], 0x200000
jmp 0x407b5b
mov eax, dword [0x816e54]
cmp eax, dword [ebp - 0x18]
je 0x407b5b
push eax
call esi
test eax, eax
je 0x407b5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407b5b
mov eax, dword [0x816e58]
cmp eax, dword [ebp - 0x18]
je 0x407b5b
push eax
call esi
test eax, eax
je 0x407b5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x816e50]
call esi
test eax, eax
je 0x407b77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407b79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015dd
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x2ef33fe7
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x744b4e55
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x415840
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4236db
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b2998]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
call fcn.00415030
push 0x18
mov dword [ebp - 4], 0
mov dword [ebx], vtable.RingControl.0
mov dword [ebx + 8], vtable.RingControl.1.0
mov dword [ebx + 0x18], vtable.RingControl.2.0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x28], 0
call fcn.0041d5be
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov edi, dword [0x425418]
mov ecx, esi
push 0
mov byte [ebp - 4], 1
call edi
mov dword [esi], vtable.QTimer.0
push 0x18
mov byte [ebp - 4], 0
mov dword [ebx + 0x20], esi
call fcn.0041d5be
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0
mov ecx, esi
mov byte [ebp - 4], 2
call edi
mov dword [esi], vtable.QTimer.0
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x2c], esi
mov esi, dword [0x425410]
push 3
mov byte [ebp - 4], 0
call esi
mov eax, dword [ebx + 0x20]
push 0x28
and dword [eax + 0x14], 0xfffffff3
mov ecx, dword [ebx + 0x2c]
call esi
mov eax, dword [ebx + 0x2c]
push 0xc
and dword [eax + 0x14], 0xfffffff3
mov eax, dword [0x425404]
mov esi, dword [ebx + 0x20]
mov byte [ebx + 0x30], 1
mov dword [ebp - 0x14], eax
call fcn.0041d5be
mov dword [ebp - 0x1c], eax
mov dword [eax], 1
mov dword [eax + 8], ebx
mov ebx, dword [0x42541c]
mov dword [eax + 4], 0x4162e0
push dword [0x4253ec]
push 0
push 1
push eax
push 0
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call ebx
mov edi, dword [0x42542c]
lea ecx, [ebp - 0x18]
add esp, 0x28
call edi
mov eax, dword [ebp - 0x10]
push 0xc
mov esi, dword [eax + 0x2c]
mov eax, dword [0x425404]
mov dword [ebp - 0x18], eax
call fcn.0041d5be
mov ecx, dword [ebp - 0x10]
mov dword [eax], 1
mov dword [eax + 4], 0x416270
mov dword [eax + 8], ecx
push dword [0x4253ec]
mov dword [ebp - 0x1c], eax
push 0
push 1
push eax
push 0
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call ebx
add esp, 0x28
lea ecx, [ebp - 0x14]
call edi
mov ebx, dword [ebp - 0x10]
mov esi, dword [0x42540c]
mov ecx, dword [ebx + 0x20]
call esi
mov ecx, dword [ebx + 0x2c]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401930
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 9], 0
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x401a29
cmp dword [ebp + 0xc], 0
je 0x401a29
push 0
push 0x80
mov eax, dword [ebp + 0x14]
push eax
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x401a29
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4019cb
cmp dword [ebp - 0x18], 0x300000
jbe 0x4019cb
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x401a29
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401a08
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401a06
mov byte [ebp - 9], 1
jmp 0x401a1f
push 0
lea edx, [ebp - 4]
push edx
push 0x14
push str.SetFilePoint_error_r_n
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x402500
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5294db
mov eax, dword fs:[0]
push eax
mov eax, 0xd8a0
call fcn.0050a680
mov eax, dword [0x574b20]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8ac], ecx
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0xd8ac]
call fcn.0040782b
push 0
call fcn.00409799
add esp, 4
push str.USB_Touchscreen_Service
mov ecx, dword [ebp - 0xd8ac]
call fcn.00407d23
call fcn.00402410
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xd8a0], eax
cmp dword [ebp - 0xd8a0], 0
je 0x40259e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4025d8
push str.OptSvc
push 0
call fcn.00402420
mov dword [ebp - 0xd8a4], eax
cmp dword [ebp - 0xd8a4], 0
je 0x4025c9
mov ecx, dword [ebp - 0xd8a4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
jmp 0x402628
push 0
lea ecx, [ebp - 0xd89c]
call fcn.004027b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd8ac]
lea ecx, [ebp - 0xd89c]
mov dword [eax + 0x20], ecx
lea ecx, [ebp - 0xd89c]
call fcn.0040ac24
mov dword [ebp - 0xd8a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd89c]
call fcn.00402850
mov eax, dword [ebp - 0xd8a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0050663d
mov esp, ebp
pop ebp
ret
Function at 0x4028c0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x574b20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x1ec], ecx
mov ecx, dword [ebp - 0x1ec]
call fcn.0040a916
mov eax, 1
mov word [ebp - 0xb8], ax
mov ecx, 2
mov word [ebp - 0xb6], cx
mov dword [ebp - 0xb4], pe_nt_image_headers32
call fcn.00402730
mov edx, dword [eax + 0x20]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0xb0], eax
mov ecx, 0xd
mov word [ebp - 0xac], cx
mov edx, 4
mov word [ebp - 0xaa], dx
mov dword [ebp - 0xa8], pe_nt_image_headers32
call fcn.00402730
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xa4], ecx
push 0xc
push 2
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x402968
xor eax, eax
jmp 0x402a48
lea eax, [ebp - 0x1e8]
push eax
call dword [sym.imp.TucLib.dll__Tuc_GetOSVersion_0]
mov ecx, 0x25
mov esi, eax
lea edi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x25
lea esi, [ebp - 0xa0]
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
cmp ecx, dword [ebp - 0x14c]
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x1ec]
mov dword [eax + 0x65d8], edx
push 1
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1ec]
call fcn.00412a8d
push 0
mov ecx, dword [ebp - 0x1ec]
call fcn.00412acd
push 0
push 0x80
push 0x40000
mov ecx, dword [ebp - 0x1ec]
call fcn.004129d6
push str.IR_SVC_SYSTEM_PROCESS_WND
mov ecx, dword [ebp - 0x1ec]
call fcn.00412a02
mov ecx, dword [ebp - 0x1ec]
call fcn.004038f0
push 0x402a60
call dword [sym.imp.TucLib.dll__Tuc_RegisterDeviceNotifyCallback_4]
movzx ecx, al
test ecx, ecx
jne 0x402a38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Register_device_notify_callBack_err._0x_x_._r_n
push str.IXSVC_DBGLog.log
mov edx, dword [0x576144]
push edx
call fcn.004015e0
add esp, 0x10
mov ecx, dword [ebp - 0x1ec]
call fcn.00403b80
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050663d
mov esp, ebp
pop ebp
ret
Function at 0x409396
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 0x4093de
call fcn.0040b7ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4093de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x409421
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 0x40940a
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 0x40940a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40941e
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 0x40ae23
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.0040b7ac
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 0x40ae5c
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.0040aa65
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 0x40aeba
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 0x40aede
cmp dword [edi + 0x74], 0
jne 0x40aede
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040b7ac
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.0040ae7b
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 0x41280a
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 0x412851
call fcn.0040b7ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412851
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41286d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041230f
mov esi, eax
test edi, edi
je 0x41286b
test ebx, ebx
je 0x41286b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413028
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5250b5
call fcn.0050836c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41304d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41309f
call fcn.004049d4
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d70
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.005084c2
push eax
call fcn.00402660
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.00401210
mov eax, esi
call fcn.00508444
ret 8
Function at 0x44a3ba
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 0x44a3d4
call fcn.0040b7ac
mov esi, dword [eax + 0xc]
push dword [0x5790a0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x44a3f2
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 0x44a3ea
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x44a41f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x44a3ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0044a2e8
mov esi, eax
jmp 0x44a411

Function at 0x44e405
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.0044e0c4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44e44f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004048ce
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040489f
jmp 0x44e45a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00415592
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x44e460
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.00412916
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 0x44e49d
call fcn.0044e0c4
mov dword [esi + 0xc], 1
jmp 0x44e4a2
call fcn.0044e0c4
cmp dword [esi], 0
je 0x44e4eb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x44e4c3
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004048ce
jmp 0x44e4d5
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401ec0
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040489f
jmp 0x44e50f
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 0x44e50f
push dword [esi]
push dword [ebp + 8]
call fcn.00415592
pop esi
pop ebp
ret 0xc

Function at 0x464ed5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e2041
call fcn.0040b1dd
cmp dword [eax + 0x14], 0
jne 0x464ef2
mov ecx, esi
pop esi
jmp fcn.004649da
pop esi
ret
Function at 0x468461
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004c193f
call fcn.0040b1dd
cmp dword [eax + 0x14], 0
jne 0x46847e
mov ecx, esi
pop esi
jmp fcn.00467e34
pop esi
ret

Function at 0x4ea001
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 0x4ea019
mov edi, dword [esi + 0xc]
jmp 0x4ea059
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ea032
call fcn.00415cae
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ea047
call fcn.00415cae
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ea059
call fcn.00415cae
call fcn.0040b7ac
cmp dword [eax + 0x3c], 0
je 0x4ea06e
push edi
mov ecx, ebx
call fcn.004e8ebf
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e9f1b
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4ea08c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ea098
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 0x50663d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x574b20]
jne 0x506647
repz ret
jmp fcn.0050d984
Function at 0x519c8a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x574b20]
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.0050f497
and dword [ebp - 0x14], 0
cmp dword [0x57c470], 0
mov dword [ebp - 0x18], eax
jne 0x519d3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x519de5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x519de5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55330c
push ebx
mov dword [0x57c470], eax
call edi
push eax
call esi
push 0x5532f8
push ebx
mov dword [0x57c474], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57c478], eax
call edi
push eax
call esi
mov dword [0x57c480], eax
test eax, eax
je 0x519d3d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57c47c], eax
mov eax, dword [0x57c47c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x519d96
cmp dword [0x57c480], ecx
je 0x519d96
push eax
call esi
push dword [0x57c480]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x519d96
test ebx, ebx
je 0x519d96
call edi
test eax, eax
je 0x519d8d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x519d8d
test byte [ebp - 8], 1
jne 0x519d96
or dword [ebp + 0x10], 0x200000
jmp 0x519dc9
mov eax, dword [0x57c474]
cmp eax, dword [ebp - 0x18]
je 0x519dc9
push eax
call esi
test eax, eax
je 0x519dc9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x519dc9
mov eax, dword [0x57c478]
cmp eax, dword [ebp - 0x18]
je 0x519dc9
push eax
call esi
test eax, eax
je 0x519dc9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57c470]
call esi
test eax, eax
je 0x519de5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x519de7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050663d
leave
ret