joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f5c0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3d23
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 1
xor ebx, ebx
mov dword [ebp - 0x14], 0
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x41f66a
mov edx, dword [ebp - 0x14]
xor esi, esi
test edx, edx
je 0x41f661
mov ebx, dword [ebp + 8]
xor edi, edi
nop
mov ecx, dword [ebp - 0x18]
add ecx, edi
cmp ebx, dword [ecx]
jne 0x41f657
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push dword [ecx + 8]
call fcn.00568af2
add esp, 8
test eax, eax
je 0x41f69b
mov edx, dword [ebp - 0x14]
inc esi
add edi, 0x10
cmp esi, edx
jb 0x41f630
xor ebx, ebx
push dword [ebp - 0x18]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp dword [ebp + 0x24], 8
jb 0x41f67b
push dword [ebp + 0x10]
call fcn.0043f3a3
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp - 0x18]
add esi, esi
push ecx
mov dword [ebp - 0x30], str...FaultCommonSMMonitorMag.cpp:CSMMonitorMag::GetSessionPid__:Line_165
mov dword [ebp - 0x2c], 0
push dword [eax + esi*8 + 8]
lea eax, [ebp - 0x90]
push eax
call fcn.004105e0
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push dword [eax + esi*8]
push dword [eax + esi*8 + 4]
push ecx
call fcn.004026b0
movq xmm0, qword [ebp - 0x30]
push eax
push str._tfind__s_process__Pid_d__session_d_._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x1c
lea ecx, [ebp - 0x90]
call fcn.00402220
mov eax, dword [ebp - 0x18]
mov ebx, 1
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 4]
mov dword [ecx], eax
jmp 0x41f661
Function at 0x41fee0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3da0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x639210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov edi, dword [0x6494e8]
cmovae eax, dword [ebp + 8]
push eax
push str.Infor:_recv_faultcheck_msg:__s_n
sub esp, 0xc
mov dword [ebp - 0x20], str.FaultDetectMiddleMan.cpp:FaultDetectMiddleMan::DealRecvMsg__:Line_108
mov eax, esp
mov dword [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
lea esi, [edi + 0x30]
push esi
mov dword [ebp - 0x10], esi
call fcn.0058a6bc
add esp, 0x18
test eax, eax
je 0x41ff69
push eax
call fcn.0058a37e
add esp, 4
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp ecx, eax
je 0x41ff81
push 0xffffffffffffffff
push 0
push eax
call fcn.0041e000
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov byte [ebp - 4], 0
call fcn.0058a6e5
add esp, 4
test eax, eax
je 0x41ffa4
push eax
call fcn.0058a37e
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x41ffb5
push dword [ebp + 8]
call fcn.0043f3a3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x424470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b435b
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x157]
mov edi, dword [ebp + 0xc]
push 0x103
push 0
push eax
mov byte [ebp - 0x158], 0
call fcn.0056c410
push esi
push str.c:users_sAppDataRoamingzs_isp_clientconfig.ini
lea eax, [ebp - 0x158]
push 0x104
push eax
call fcn.00404d80
add esp, 0x1c
mov dword [ebp - 0x180], str.FaultDetectorMgr.cpp:CFaultDetectorMgr::GetCheckIPImpl__:Line_228
lea eax, [ebp - 0x158]
mov dword [ebp - 0x17c], 0
movq xmm0, qword [ebp - 0x180]
push eax
push str.GetCheckIP_config_path:__s
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
push 0x3b
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x4c], 0
push 0
push eax
call fcn.0056c410
add esp, 0x20
lea eax, [ebp - 0x158]
push eax
push 0x3c
lea eax, [ebp - 0x4c]
push eax
push 0
push str.Host
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x4c], 0
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
jne 0x42456d
xor ecx, ecx
jmp 0x42457c
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424573
sub ecx, edx
push ecx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x170]
call fcn.0041da10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x160], 0
jne 0x4245a0
xor bl, bl
jmp 0x4245c7
cmp byte [ebp - 0x4c], 0
jne 0x4245aa
xor ecx, ecx
jmp 0x4245b9
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4245b0
sub ecx, edx
push ecx
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.0041da10
mov bl, 1
cmp dword [ebp - 0x15c], 0x10
jb 0x4245de
push dword [ebp - 0x170]
call fcn.0043f3a3
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 8
Function at 0x424600
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3d23
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 1
xor ebx, ebx
mov dword [ebp - 0x14], 0
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x4246aa
mov edx, dword [ebp - 0x14]
xor esi, esi
test edx, edx
je 0x4246a1
mov ebx, dword [ebp + 8]
xor edi, edi
nop
mov ecx, dword [ebp - 0x18]
add ecx, edi
cmp ebx, dword [ecx]
jne 0x424697
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push dword [ecx + 8]
call fcn.00568af2
add esp, 8
test eax, eax
je 0x4246db
mov edx, dword [ebp - 0x14]
inc esi
add edi, 0x10
cmp esi, edx
jb 0x424670
xor ebx, ebx
push dword [ebp - 0x18]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp dword [ebp + 0x24], 8
jb 0x4246bb
push dword [ebp + 0x10]
call fcn.0043f3a3
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp - 0x18]
add esi, esi
push ecx
mov dword [ebp - 0x30], str.FaultDetectorMgr.cpp:CFaultDetectorMgr::GetSessionPid__:Line_251
mov dword [ebp - 0x2c], 0
push dword [eax + esi*8 + 8]
lea eax, [ebp - 0x90]
push eax
call fcn.004105e0
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push dword [eax + esi*8]
push dword [eax + esi*8 + 4]
push ecx
call fcn.004026b0
movq xmm0, qword [ebp - 0x30]
push eax
push str.________find__s_process__Pid_d__session_d_._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x1c
lea ecx, [ebp - 0x90]
call fcn.00402220
mov eax, dword [ebp - 0x18]
mov ebx, 1
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 4]
mov dword [ecx], eax
jmp 0x4246a1
Function at 0x428fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b4f6e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x639210]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x639210]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edi, dword [0x6494ec]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
lea edx, [esp + 0x20]
mov dword [esp + 0xd0], 0
call fcn.0041f8d0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
push ecx
cmovae eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004104e0
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0xd4], 1
call fcn.004026b0
mov esi, eax
mov dword [esp + 0xc], str.FaultDetectorUIDlg.cpp:CFaultDetectorUIDlg::additem__:Line_646
push esi
push str.faultdetector_item__s
sub esp, 0xc
mov dword [esp + 0x24], 0
movq xmm0, qword [esp + 0x20]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], 1
call fcn.00404e40
add esp, 0x14
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [esp + 0x38]
mov byte [esp + 0xd0], 2
mov ecx, esi
call fcn.00423d00
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0xe8]
call fcn.00422570
cmp dword [esp + 0x58], 0x10
jb 0x4290de
push dword [esp + 0x44]
call fcn.0043f3a3
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.00402220
cmp dword [esp + 0x34], 0x10
jb 0x42910f
push dword [esp + 0x20]
call fcn.0043f3a3
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00567455
mov esp, ebp
pop ebp
ret 4

Function at 0x42b820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00458a0f
Function at 0x42ecc0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b58d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x639210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.00432270
add esp, 4
push eax
mov byte [ebp - 4], 1
call fcn.004322a0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00432340
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42ed50
push eax
call fcn.0043f3a3
add esp, 4
cmp byte [ebp - 0x18], 1
mov esi, dword [ebp - 0x1c]
jne 0x42ed6e
call ebx
push eax
push 0
push 0x42e930
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x14], eax
mov edx, dword [esi + 0x1c]
xor ecx, ecx
sub edx, dword [esi + 0x18]
sar edx, 2
test edx, edx
jle 0x42ed90
mov eax, dword [esi + 0x18]
cmp dword [eax], edi
je 0x42ee25
inc ecx
add eax, 4
cmp ecx, edx
jl 0x42ed80
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
cmp ecx, eax
jae 0x42edcd
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x10]
cmp ecx, edx
ja 0x42edcd
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [esi + 0x20]
jne 0x42edbc
push ecx
lea ecx, [esi + 0x18]
call fcn.004141b0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x42ede4
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
jmp 0x42ede4
cmp eax, dword [esi + 0x20]
jne 0x42eddb
push ecx
lea ecx, [esi + 0x18]
call fcn.004141b0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x42ede4
mov dword [eax], edi
add dword [esi + 0x1c], 4
push ecx
lea ecx, [edi + 0x4b8]
mov dword [ebp - 0x20], str.MainWnd_Duilib.cpp:MainWnd_Duilib::HookWindows__:Line_283
mov dword [ebp - 0x1c], 0
call fcn.004026b0
movq xmm0, qword [ebp - 0x20]
push eax
push str._tduiObjV_add__s._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x14
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42ee35
push eax
call fcn.0043f3a3
add esp, 4
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 0x433f40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6083
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x639210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x64951c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x64951c
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x6079a2
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00432e00
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x43418a
cmp byte [esi + 0x2c], bl
jne 0x434181
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434160
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.00432e00
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4341a0
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x434191
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.00569d36
push ebx
call fcn.0056a149
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.00569d36
add esp, 0x1c
test edi, edi
jg 0x43420c
cmp byte [esi + 0x2c], 0
jne 0x434181
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434200
jmp 0x434167
lea eax, [edi + 1]
push eax
call fcn.0043f36d
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.0056b465
add esp, 0x14
cmp eax, 1
je 0x434264
push edi
call fcn.0043f3a3
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x434181
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434258
jmp 0x434167
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x43428d
mov dl, byte [eax]
cmp dl, 0xd
jne 0x434284
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x434288
jmp 0x434287
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x434271
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0043f3a3
add esp, 4
xor eax, eax
cmp byte [esi + 0x2c], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x442e96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x442edb
call fcn.0045b56e
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x442edb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x442ef7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045f95a
mov ebx, eax
test edi, edi
je 0x442ef5
test esi, esi
je 0x442ef5
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x458a6b
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 esi, esi
call fcn.0045b56e
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x458aa2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00458ac3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d2360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00440817
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4d239c
call fcn.004d257f
mov dword [esi + 0xc], 1
jmp 0x4d23a1
call fcn.004d257f
cmp dword [esi], 0
je 0x4d23ea
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4d23c4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004403dd
jmp 0x4d23d5
push 0xff
mov ecx, esi
call fcn.0041e370
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00440400
jmp 0x4d240e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4d240e
push dword [esi]
push dword [ebp - 4]
call fcn.004605db
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d24d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004d257f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4d251c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004403dd
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00440400
jmp 0x4d2527
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004605db
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5328d2
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056302a
call fcn.0045b5c2
cmp dword [eax + 0x14], 0
jne 0x5328ed
mov ecx, esi
pop esi
jmp fcn.00531cd8
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.0041ba70
call fcn.0045b5c2
cmp dword [eax + 0x14], 0
jne 0x53ee34
mov ecx, esi
pop esi
jmp fcn.0053e702
pop esi
ret
Function at 0x582060
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00571b1c
mov dword [ebp - 0x14], eax
cmp dword [0x646f9c], esi
jne 0x582153
push 0x800
push esi
push 0x5fa0a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5820e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x582233
push esi
push esi
push 0x5fa0a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x582233
push 0x5fa0b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x582233
push eax
call ebx
push 0x5fa0c4
push edi
mov dword [0x646f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5fa0d4
push edi
mov dword [0x646fa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x646fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x646fac], eax
test eax, eax
je 0x582150
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x646fa8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x582178
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x58216b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x58218d
push 4
pop eax
jmp 0x582235
cmp dword [ebp - 0x14], esi
je 0x58218d
push dword [0x646f9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x582172
mov eax, dword [0x646fa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5821eb
cmp dword [0x646fac], edi
je 0x5821eb
push eax
call ebx
push dword [0x646fac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5821eb
test eax, eax
je 0x5821eb
call ecx
test eax, eax
je 0x5821e0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5821e0
test byte [ebp - 8], 1
jne 0x5821eb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x58221b
mov eax, dword [0x646fa0]
cmp eax, edi
je 0x582218
push eax
call ebx
test eax, eax
je 0x582218
call eax
mov esi, eax
test esi, esi
je 0x582218
mov eax, dword [0x646fa4]
cmp eax, edi
je 0x582218
push eax
call ebx
test eax, eax
je 0x582218
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x646f9c]
call ebx
test eax, eax
je 0x582233
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x582235
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00567455
mov esp, ebp
pop ebp
ret