joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100646a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movaps xmm1, xmmword [str.eeeeeeeeeeeeeeeeZ]
sub esp, 0x100
movaps xmm2, xmmword [0x100ad220]
xor eax, eax
shl ecx, 8
lea ecx, [ecx + 0x100a36b8]
movups xmm0, xmmword [ecx + eax - 0x10]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x100], xmm0
movups xmm0, xmmword [ecx + eax]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xf0], xmm0
add eax, 0x20
cmp eax, 0x100
jb 0x100646c2
lea eax, [ebp - 0x100]
mov esp, ebp
pop ebp
ret

Function at 0x10065840
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101ce3dc]
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x101ce3d8]
push edi
cmp esi, eax
je 0x10065923
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp byte [esi], 2
jne 0x10065889
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [esi + 1]
push eax
push closesocket
call ebx
mov edi, dword [ebp - 8]
test edi, edi
jne 0x1006589a
mov eax, dword [0x101ce3dc]
add esi, 0x105
cmp esi, eax
jne 0x10065862
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x101ce3dc]
xor ecx, ecx
mov esi, dword [0x101ce3d8]
mov eax, 0x7d8c42b3
mov dword [ebp - 4], ecx
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1006590d
xor edi, edi
cmp byte [edi + esi], 2
jne 0x100658e7
lea eax, [esi + 1]
add eax, edi
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, dword [0x101ce3dc]
mov esi, dword [0x101ce3d8]
inc dword [ebp - 4]
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
add edi, 0x105
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 4], eax
jb 0x100658c4
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0
lea ecx, [edx + 6]
call fcn.10032a50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10065d10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10065c2d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10065baa
mov eax, dword [ebp - 4]
cmp eax, dword [0x100b9004]
ja 0x10065baa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10065b7a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10070060
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10065bd0
jmp 0x10065c2d
cmp dword [ebp - 0x14], 0x10000
jne 0x10065c13
cmp dword [ebp - 0x18], 0x10000
jb 0x10065c13
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10065c06
mov eax, dword [ebp - 8]
jmp 0x10065c2f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10065c28
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10065d10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10065b7a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10065c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10065d40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10065d05
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10065c85
mov eax, dword [ebp - 4]
cmp eax, dword [0x100b9004]
ja 0x10065c85
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10065c55
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10070060
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10065cab
jmp 0x10065d05
cmp dword [ebp - 0x14], 0x10000
jne 0x10065cee
cmp dword [ebp - 0x18], 0x10000
jb 0x10065cee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10065ce1
mov eax, dword [ebp - 8]
jmp 0x10065d07
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10065d00
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10065d40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10065c55
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10065d70
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10066160
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101d9234], 0
jne 0x10065dad
cmp dword [0x101d9230], 0
je 0x10065dad
mov eax, dword [0x101d9230]
mov dword [0x101d9234], eax
cmp dword [0x101d9234], 0
je 0x10065e2a
mov ecx, dword [0x101d9234]
cmp dword [ecx + 8], 0
je 0x10065e2a
mov edx, dword [0x101d9234]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10065e2a
mov ecx, dword [0x101d9234]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10065e2a
mov eax, dword [0x101d9234]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10065df9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10065e00
xor eax, eax
jmp 0x10065f49
mov ecx, dword [0x101d9234]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10070060
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10065f49
mov edx, dword [0x101d9230]
mov dword [0x101d9234], edx
jmp 0x10065e46
mov eax, dword [0x101d9234]
mov ecx, dword [eax + 4]
mov dword [0x101d9234], ecx
cmp dword [0x101d9234], 0
je 0x10065e86
cmp dword [0x101d9234], 0
je 0x10065e84
mov edx, dword [0x101d9234]
cmp dword [edx + 8], 0
je 0x10065e84
mov eax, dword [0x101d9234]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10065e84
mov edx, dword [0x101d9234]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10065e84
jmp 0x10065dde
jmp 0x10065e38
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10065f50
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10065f47
mov eax, dword [ebp - 0x18]
mov dword [0x101d9234], eax
mov ecx, dword [0x101d9234]
mov dword [ecx], 0x52727464
mov edx, dword [0x101d9234]
mov dword [edx + 8], 0
mov eax, dword [0x101d9234]
mov ecx, dword [0x101d9230]
mov dword [eax + 4], ecx
mov edx, dword [0x101d9234]
mov dword [0x101d9230], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101d9234]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10065f17
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10065f37
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10065f0e
mov eax, dword [0x101d9234]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10065dde
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10084416
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10084295

Function at 0x100868d6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10086596
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x818030]
jne 0x401073
repz ret
jmp fcn.00401d81

Function at 0x40856b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040277c
and dword [ebp - 4], 0
cmp dword [0x81a8b4], 0
mov ebx, eax
jne 0x40861c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4086cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4086cd
push eax
call fcn.0040270a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81a8b4], eax
call esi
push eax
call fcn.0040270a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81a8b8], eax
call esi
push eax
call fcn.0040270a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81a8bc], eax
call esi
push eax
call fcn.0040270a
pop ecx
mov dword [0x81a8c4], eax
test eax, eax
je 0x40861c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040270a
pop ecx
mov dword [0x81a8c0], eax
mov eax, dword [0x81a8c0]
cmp eax, ebx
je 0x408674
cmp dword [0x81a8c4], ebx
je 0x408674
push eax
call fcn.00402785
push dword [0x81a8c4]
mov esi, eax
call fcn.00402785
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408674
test edi, edi
je 0x408674
call esi
test eax, eax
je 0x40866b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40866b
test byte [ebp - 0xc], 1
jne 0x408674
or dword [ebp + 0x10], 0x200000
jmp 0x4086ad
mov eax, dword [0x81a8b8]
cmp eax, ebx
je 0x4086ad
push eax
call fcn.00402785
pop ecx
test eax, eax
je 0x4086ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4086ad
mov eax, dword [0x81a8bc]
cmp eax, ebx
je 0x4086ad
push eax
call fcn.00402785
pop ecx
test eax, eax
je 0x4086ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81a8b4]
call fcn.00402785
pop ecx
test eax, eax
je 0x4086cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4086cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ae80
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x2ff8264]
sub esp, 0x1c
push ebx
mov ebx, dword [0x2ff7f88]
push esi
mov esi, dword [0x818f70]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40aeb0
push str.tehibosuneyowo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2ff8264]
mov dword [0x81aa14], esi
cmp eax, 0x114e
jne 0x40aeda
lea eax, [esp + 0xc]
push eax
push str.wuzatewuleyicuf
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2ff8264]
cmp eax, 0x2f
jne 0x40aef7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebx
call fcn.0040ad70
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x401c40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x59a1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x304], ax
lea eax, [ebp - 0x302]
push eax
call fcn.00522860
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00522860
add esp, 0x18
lea edx, [ebp - 0x304]
mov ecx, str.6F6976726970373632687070
call fcn.00401b20
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100
mov edi, eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.4776696578694A6D70695B
call fcn.00401bc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55d8], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.5B766D78694A6D7069
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55d4], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.477669657869547673676977775B
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x57c430
push edi
mov dword [0x5a55c0], eax
call esi
push 0x100
mov dword [0x5a55cc], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.4B69784A6D7069576D7E69
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55c8], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.4B69785173687970694C65726870695B
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55e0], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.4B69785173687970694A6D7069526571695B
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55dc], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.5769784A6D706954736D72786976
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55c4], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.517970786D467D786958735B6D6869476C6576
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
push 0x100
mov dword [0x5a55e4], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00522860
add esp, 0xc
lea edx, [ebp - 0x104]
mov ecx, str.47707377694C6572687069
call fcn.00401bc0
lea eax, [ebp - 0x104]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x5a55d0], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00520ffa
mov esp, ebp
pop ebp
ret
Function at 0x402410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402425
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402464
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402460
lea ebx, [ebx]
cmp esi, edx
jae 0x402464
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402450
cmp esi, edx
jb 0x402469
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x403de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x59a1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], 0x310030
mov dword [ebp - 0x14], 0x330032
mov dword [ebp - 0x10], 0x350034
mov dword [ebp - 0xc], 0x370036
mov dword [ebp - 8], 0x390038
call fcn.00521343
push eax
call fcn.00521c41
add esp, 8
xor esi, esi
lea ebx, [esi + 0xa]
mov edi, edi
call fcn.00521c20
cdq
idiv ebx
mov ax, word [ebp + edx*2 - 0x18]
mov word [edi + esi*2], ax
inc esi
cmp esi, ebx
jl 0x403e30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00520ffa
mov esp, ebp
pop ebp
ret 4

Function at 0x408a91
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x408aba
call fcn.0040a1d2
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x408ae7
push esi
push eax
mov ecx, 0x59ef98
call fcn.00409ae6
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00408fc3
int3

Function at 0x413589
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 0x4135ce
call fcn.0040a1d2
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4135ce
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4135ea
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042070e
mov ebx, eax
test edi, edi
je 0x4135e8
test esi, esi
je 0x4135e8
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 0x42030a
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.00417b98
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 0x420346
call fcn.00420529
mov dword [esi + 0xc], 1
jmp 0x42034b
call fcn.00420529
cmp dword [esi], 0
je 0x420394
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x42036e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040698c
jmp 0x42037f
push 0xff
mov ecx, esi
call fcn.00402960
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004069af
jmp 0x4203b8
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 0x4203b8
push dword [esi]
push dword [ebp - 4]
call fcn.0040c6a2
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42047e
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.00420529
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4204c6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040698c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004069af
jmp 0x4204d1
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040c6a2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x420b06
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.0040a1d2
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 0x420b3d
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.00420b5e
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 0x436090
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00468451
call fcn.0040a226
cmp dword [eax + 0x14], 0
jne 0x4360ab
mov ecx, esi
pop esi
jmp fcn.00435496
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.0040a018
call fcn.0040a226
cmp dword [eax + 0x14], 0
jne 0x436dc2
mov ecx, esi
pop esi
jmp fcn.00436690
pop esi
ret
Function at 0x534f98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59a1b0]
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.00529533
mov dword [ebp - 0x14], eax
cmp dword [0x5a5518], esi
jne 0x53508b
push 0x800
push esi
push 0x5781f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x535018
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53516b
push esi
push esi
push 0x5781f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x53516b
push 0x578208
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53516b
push eax
call ebx
push 0x578214
push edi
mov dword [0x5a5518], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x578224
push edi
mov dword [0x5a551c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a5520], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a5528], eax
test eax, eax
je 0x535088
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a5524], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5350b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5350a3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5350c5
push 4
pop eax
jmp 0x53516d
cmp dword [ebp - 0x14], esi
je 0x5350c5
push dword [0x5a5518]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5350aa
mov eax, dword [0x5a5524]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x535123
cmp dword [0x5a5528], edi
je 0x535123
push eax
call ebx
push dword [0x5a5528]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x535123
test eax, eax
je 0x535123
call ecx
test eax, eax
je 0x535118
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 0x535118
test byte [ebp - 8], 1
jne 0x535123
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x535153
mov eax, dword [0x5a551c]
cmp eax, edi
je 0x535150
push eax
call ebx
test eax, eax
je 0x535150
call eax
mov esi, eax
test esi, esi
je 0x535150
mov eax, dword [0x5a5520]
cmp eax, edi
je 0x535150
push eax
call ebx
test eax, eax
je 0x535150
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a5518]
call ebx
test eax, eax
je 0x53516b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x53516d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00520ffa
mov esp, ebp
pop ebp
ret