joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bb80
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa7c
mov eax, dword [0x60dfd4]
xor eax, esp
mov dword [esp + 0xa78], eax
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x8c]
push eax
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.0057580b
add esp, 0xc
lea eax, [esp + 0x260]
push str.WiFiDrivers
push 0x104
push eax
call fcn.00575aeb
add esp, 0xc
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bdc7
lea eax, [esp + 0x260]
push eax
push str.CopyAndRemoveDriverFiles:_Installed_Driver_Location:__s_
call fcn.0041c4c0
lea eax, [ebx + 0xabc]
push eax
lea eax, [esp + 0x67c]
push 0x104
push eax
call fcn.0057580b
add esp, 0x14
lea eax, [esp + 0x670]
push str.OlderProductDrivers
push 0x104
push eax
call fcn.00575aeb
add esp, 0xc
lea esi, [ebx + 0x10d8]
push 0x208
push 0
push esi
call fcn.0056eeb0
add esp, 0xc
lea edi, [ebx + 0x12e0]
push 0x208
push 0
push edi
call fcn.0056eeb0
add esp, 0xc
lea eax, [esp + 0x670]
push eax
push 0x104
push esi
call fcn.0057580b
add esp, 0xc
lea eax, [esp + 0x260]
push eax
push 0x104
push edi
call fcn.0057580b
add esp, 0xc
lea eax, [esp + 0x670]
mov ecx, ebx
push eax
lea eax, [esp + 0x264]
push eax
call fcn.0041b8e0
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x87c]
push 0x104
push eax
call fcn.0057580b
add esp, 0xc
lea eax, [esp + 0x878]
push str..inf
push 0x104
push eax
call fcn.00575aeb
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bdd4
mov eax, 1
test esi, esi
je 0x41bdad
test eax, eax
je 0x41bda6
push 0x208
lea eax, [esp + 0x46c]
push 0
push eax
call fcn.0056eeb0
add esp, 0xc
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0057580b
add esp, 0xc
lea eax, [esp + 0x468]
push 0x5eaa84
push 0x104
push eax
call fcn.00575aeb
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.00575aeb
add esp, 0xc
lea eax, [esp + 0x468]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41bd04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
push str.CopyAndRemoveDriverFiles:_Installed_Driver_Location_NOT_found
call fcn.0041c4c0
add esp, 4
mov ecx, dword [esp + 0xa84]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
Function at 0x41bdf0
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x60dfd4]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
push str.SetupInfo::ReStoreInfOnFail__
mov ebx, ecx
call fcn.0041c4c0
lea edi, [ebx + 0x10d8]
add esp, 4
test edi, edi
je 0x41bfc2
push 0x104
push edi
call fcn.005754d7
add esp, 8
test eax, eax
je 0x41bfc2
add ebx, 0x12e0
je 0x41bfc2
push 0x104
push ebx
lfence
call fcn.005754d7
add esp, 8
test eax, eax
je 0x41bfc2
push edi
lea eax, [esp + 0x674]
push 0x104
push eax
lfence
call fcn.0057580b
push str..inf
lea eax, [esp + 0x680]
push 0x104
push eax
call fcn.00575aeb
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bfc2
mov eax, 1
test esi, esi
je 0x41bfa8
test eax, eax
je 0x41bfa1
push 0x208
lea eax, [esp + 0x46c]
push 0
push eax
call fcn.0056eeb0
push edi
lea eax, [esp + 0x478]
push 0x104
push eax
call fcn.0057580b
push 0x5eaa84
lea eax, [esp + 0x484]
push 0x104
push eax
call fcn.00575aeb
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x490]
push 0x104
push eax
call fcn.00575aeb
push 0x208
lea eax, [esp + 0x294]
push 0
push eax
call fcn.0056eeb0
push ebx
lea eax, [esp + 0x2a0]
push 0x104
push eax
call fcn.0057580b
add esp, 0x48
lea eax, [esp + 0x260]
push 0x5eaa84
push 0x104
push eax
call fcn.00575aeb
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.00575aeb
add esp, 0x18
lea eax, [esp + 0x260]
push 1
push eax
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41bec0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x87c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret

Function at 0x41c4c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x60dfd4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push dword [ebp + 8]
call fcn.0057abce
add esp, 8
cmp eax, 0x410
jae 0x41c514
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push 0x410
push eax
call fcn.0041c430
add esp, 0x14
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
Function at 0x41c5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x60dfd4]
xor eax, esp
mov dword [esp + 0x21c], eax
push 0
call fcn.0041c530
test al, al
jne 0x41c62f
push 1
call fcn.0041c530
test al, al
jne 0x41c62f
push 2
call fcn.0041c530
test al, al
je 0x41c6ce
push 0x204
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x37
push 0
push eax
call fcn.0056eeb0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c6a5
lea eax, [esp + 8]
mov dword [esp + 8], 0x208
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x14]
push eax
push 0
push str.BuildLab
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esp + 0x10], 0x36
jne 0x41c6ce
push str.The_OS_is_Windows_Vista
call fcn.0041c4c0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x21c]
xor al, al
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret

Function at 0x41d585
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.0042bf93
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 0x41d5bc
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.0041d5e0
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 0x4240ef
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 0x424134
call fcn.0042bf93
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x424134
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x424150
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042b991
mov ebx, eax
test edi, edi
je 0x42414e
test esi, esi
je 0x42414e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x424c1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x424cdd
cmp dword [esi + 0x20], 0
je 0x424cdd
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x424cdd
cmp dword [ebp + 8], 0
je 0x424cdd
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0042bf93
push 0x5b1190
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x424cae
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x424cdd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0043695d
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x424cce
test edi, edi
je 0x424cce
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x424cd9
mov ecx, esi
call fcn.004249b1
mov eax, ebx
jmp 0x424cdf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x429aa4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x597be8
call fcn.0056aeb3
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x429aca
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x429b2a
call fcn.00421571
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d210
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057a249
push eax
call fcn.004202c1
add esp, 0x14
test esi, esi
je 0x429b1d
push esi
call fcn.005753af
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00403e80
mov eax, ebx
call fcn.0056ae7c
ret 8
Function at 0x42ecf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x42ed3a
call fcn.0042bf93
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42ed37
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42ed8a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x42ed67
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a72d4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x42ed67
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x42ed88
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4301b0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x430203
push esi
push dword [ebp + 8]
call fcn.004303a4
mov edi, eax
test edi, edi
je 0x4301fe
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4301fe
mov eax, dword [ebp - 8]
jmp 0x430215
mov eax, dword [ebp + 0x10]
jmp 0x430215
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x430220
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5980cb
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.0056b050
mov eax, dword [0x60dfd4]
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
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
je 0x430357
push 0
push edx
call fcn.004303a4
mov ebx, eax
test ebx, ebx
jne 0x430288
push esi
jmp 0x43037f
call fcn.00421571
push eax
lea ecx, [ebp - 0x2014]
call fcn.0041d210
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x430316
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0041f8c3
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.00421eee
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x430344
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00421683
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00403e80
jmp 0x430386
push esi
mov ecx, edi
call fcn.00420213
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x43033d
test esi, esi
jne 0x430360
mov esi, 0x5e8e78
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00420213
mov eax, edi
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.0056a6fa
leave
ret 0x10
Function at 0x434440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x59839b
call fcn.0056af1e
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x43454a
cmp ebx, dword [esi + 0xc]
jge 0x43454a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x434497
cmp ebx, dword [edi + 8]
jl 0x434538
cmp dword [ebp + 0xc], 0
je 0x434538
xor ebx, ebx
jmp 0x4344d1
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00433eed
mov edi, eax
test edi, edi
je 0x4344b1
mov dword [edi], vtable.CThreadData.0
jmp 0x4344b3
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.0043436c
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x4344ec
push 4
push dword [esi + 0xc]
call fcn.00421334
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x434504
push 2
push 4
push dword [esi + 0xc]
call fcn.00421334
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x434571
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.0056eeb0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x43454a
cmp ebx, dword [edi + 8]
jge 0x43454a
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0056ae7c
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00420f8d
int3
Function at 0x439190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4391e6
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4391bf
call fcn.0041efa2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4391d4
call fcn.0041efa2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4391e6
call fcn.0041efa2
call fcn.0042bf93
cmp dword [eax + 0x3c], 0
je 0x4391fb
push edi
mov ecx, ebx
call fcn.00438847
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004393de
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x439224
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x439230
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43a314
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.00429679
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 0x43a350
call fcn.0043a52f
mov dword [esi + 0xc], 1
jmp 0x43a355
call fcn.0043a52f
cmp dword [esi], 0
je 0x43a39e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x43a378
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00421c33
jmp 0x43a389
push 0xff
mov ecx, esi
call fcn.0041f8c3
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00421eee
jmp 0x43a3c2
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 0x43a3c2
push dword [esi]
push dword [ebp - 4]
call fcn.0043276b
pop esi
leave
ret 0xc

Function at 0x43a486
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.0043a52f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43a4ce
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00421c33
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00421eee
jmp 0x43a4d9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043276b
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4637f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x46380d
call fcn.0042bf93
mov esi, dword [eax + 0xc]
push 0x5ba360
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x463863
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x463863
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x463842
xor esi, esi
jmp 0x463858
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0046386c
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x463865
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4934cb
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x60dfd4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0056eeb0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0057a249
push eax
call fcn.004202c1
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5b6338]
je 0x493635
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x493649
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x493649
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x493564
mov eax, edi
jmp 0x493593
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x493581
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004932b1
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x49358a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0043192c
test eax, eax
je 0x4935b8
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004310e8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4935bc
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043192c
test eax, eax
je 0x4935e3
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004310e8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4935e7
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043192c
test eax, eax
je 0x49360f
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004310e8
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x493611
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x493623
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x493635
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056a6fa
leave
ret 4
xor eax, eax
jmp 0x493638