joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a280
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51272e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00456790
add esp, 8
mov dword [ebp - 4], 0
push 0x52abac
push 0x52a504
lea ecx, [ebp - 0x30]
call fcn.00421b40
mov ecx, eax
call fcn.00421860
push str.Krn.Dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x47a32a
push str.GetOpenProcessAddr
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x578c78], eax
cmp dword [0x578c78], 0
je 0x47a32a
call dword [0x578c78]
mov dword [0x578c88], eax
cmp dword [0x578c88], 0
jne 0x47a32a
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x578c88], eax
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47a34f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
jmp 0x47a3b4
push str.GetModuleFileNameExW
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x578c7c], eax
push str.GetProcessImageFileNameW
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x578c80], eax
cmp dword [0x578c7c], 0
je 0x47a389
cmp dword [0x578c80], 0
jne 0x47a3a5
push str._GetProcessInfo.cpp__GetProcessInfo_HMODULE_hModule__error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
jmp 0x47a3b4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret 4
Function at 0x47d1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftHardID
lea ecx, [ebp - 0x30]
call fcn.00416ac0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00414aa0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47d2fb
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x38], 0x21
lea ecx, [ebp - 0x38]
push ecx
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push 0x52ce94
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d2f1
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00485e90
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004173b0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0x52ce94
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00446e00
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00485e9b
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x45], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
mov al, byte [ebp - 0x45]
jmp 0x47d311
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x46], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret
Function at 0x4810b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5132ea
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 8]
call fcn.00470fc0
push eax
lea ecx, [ebp - 0x30]
call fcn.00416ac0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x10
je 0x48111e
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.004811e0
jmp 0x4811a7
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00480e10
movzx eax, al
test eax, eax
je 0x48113c
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ecx + 0x54]
test edx, edx
jne 0x48115a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00480e10
movzx ecx, al
test ecx, ecx
jne 0x48116b
mov edx, dword [ebp - 0x54]
movzx eax, byte [edx + 0x54]
test eax, eax
jne 0x48116b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
jmp 0x4811b6
lea ecx, [ebp - 0x50]
call fcn.00481560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004132b0
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x58]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x50]
call fcn.004815d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00480070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00413280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret 4
Function at 0x4835a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513699
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x574a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
add eax, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00473b60
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.004836a0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4835fc
xor eax, eax
jmp 0x483691
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
call fcn.00483df0
jmp 0x48361b
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00483eb0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
call fcn.00483e20
push eax
lea ecx, [ebp - 0x14]
call fcn.00483ef0
movzx edx, al
test edx, edx
je 0x48366f
lea ecx, [ebp - 0x14]
call fcn.00483e90
push eax
lea ecx, [ebp - 0x18]
call fcn.00473b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00483ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004708a0
jmp 0x48360d
push 0
push 0
mov ecx, dword [ebp - 0x30]
push ecx
push 0x483a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x30], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4836a0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5136cc
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x574a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
push 0x52d6e2
lea eax, [ebp + 0xc]
push eax
call fcn.00483cd0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x483705
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004708a0
mov eax, dword [ebp - 0x4c]
jmp 0x4838b5
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x44]
call fcn.00473b60
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x44]
call fcn.0047d4e0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4837ba
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004708a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004708a0
mov eax, dword [ebp - 0x50]
jmp 0x4838b5
mov dword [ebp - 0x38], 0x4000
mov edx, dword [ebp - 0x38]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MPR.dll_WNetEnumResourceW
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x483828
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004708a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004708a0
mov eax, dword [ebp - 0x54]
jmp 0x4838b5
mov dword [ebp - 0x48], 0
jmp 0x48383a
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x3c]
jae 0x48387f
mov ecx, dword [ebp - 0x48]
shl ecx, 5
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + ecx + 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.00470820
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.00483e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004708a0
jmp 0x483831
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004708a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004708a0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x483990
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x30], 0
je 0x4839e9
push 0x3e8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4839e9
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00481f30
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00481fc0
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x485150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x485190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x485183
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x485980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x4859c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4859b3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x48cd41
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 0x48cd89
call fcn.004903ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48cd89
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x48cdcc
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 0x48cdb5
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 0x48cdb5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x48cdc9
mov ecx, dword [esi + 0x4c]
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 0x48d8e8
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x490e3a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5146c5
call fcn.004d0f5a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00470820
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x490e9c
call fcn.0048f821
cmp eax, 1
jne 0x490e9c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x52f518
push eax
call fcn.0048bd04
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00473e60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00470d70
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00470d70
mov eax, esi
call fcn.004d1032
ret 0x10

Function at 0x490ec5
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5146f0
call fcn.004d0f5a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00470820
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x490f27
call fcn.0048f821
cmp eax, 1
jne 0x490f27
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x52f518
push eax
call fcn.0048bd04
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00473e60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00470d70
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00470d70
mov eax, esi
call fcn.004d1032
ret 0x14
Function at 0x490f53
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x51471b
call fcn.004d0f5a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00470820
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x490fb5
call fcn.0048f821
cmp eax, 1
jne 0x490fb5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x52f518
push eax
call fcn.0048bd04
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00473e60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00470d70
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00470d70
mov eax, esi
call fcn.004d1032
ret 8

Function at 0x49ed80
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 0x49edc7
call fcn.004903ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49edc7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x49ede3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0049e8f8
mov esi, eax
test edi, edi
je 0x49ede1
test ebx, ebx
je 0x49ede1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x49f910
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5156d8
call fcn.004d0f5a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x49f935
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x49f97b
lea ecx, [ebp - 0x10]
call fcn.00473b40
mov ecx, dword [esi + 0x50]
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.0048643f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00470d70
mov eax, esi
call fcn.004d1032
ret 8

Function at 0x4b6ab8
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x4b6adc
cmp dword [edi + 0x54], 0
jne 0x4b6adc
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004903ef
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004b6a79
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 0x4ca80c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x574a28]
jne 0x4ca816
repz ret
jmp fcn.004d5bfd
Function at 0x4e4844
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.004d404c
and dword [ebp - 4], 0
cmp dword [0x57b990], 0
mov ebx, eax
jne 0x4e48f5
push 0x538e78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e49a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4e49a6
push eax
call fcn.004d3fda
mov dword [esp], 0x538e5c
push edi
mov dword [0x57b990], eax
call esi
push eax
call fcn.004d3fda
mov dword [esp], 0x538e48
push edi
mov dword [0x57b994], eax
call esi
push eax
call fcn.004d3fda
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57b998], eax
call esi
push eax
call fcn.004d3fda
pop ecx
mov dword [0x57b9a0], eax
test eax, eax
je 0x4e48f5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d3fda
pop ecx
mov dword [0x57b99c], eax
mov eax, dword [0x57b99c]
cmp eax, ebx
je 0x4e494d
cmp dword [0x57b9a0], ebx
je 0x4e494d
push eax
call fcn.004d4055
push dword [0x57b9a0]
mov esi, eax
call fcn.004d4055
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e494d
test edi, edi
je 0x4e494d
call esi
test eax, eax
je 0x4e4944
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e4944
test byte [ebp - 0xc], 1
jne 0x4e494d
or dword [ebp + 0x10], 0x200000
jmp 0x4e4986
mov eax, dword [0x57b994]
cmp eax, ebx
je 0x4e4986
push eax
call fcn.004d4055
pop ecx
test eax, eax
je 0x4e4986
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e4986
mov eax, dword [0x57b998]
cmp eax, ebx
je 0x4e4986
push eax
call fcn.004d4055
pop ecx
test eax, eax
je 0x4e4986
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57b990]
call fcn.004d4055
pop ecx
test eax, eax
je 0x4e49a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e49a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fc7aa
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.004d404c
and dword [ebp - 4], 0
cmp dword [0x57bcfc], 0
mov ebx, eax
jne 0x4fc85b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4fc90c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53d944
push edi
call esi
test eax, eax
je 0x4fc90c
push eax
call fcn.004d3fda
mov dword [esp], 0x538e5c
push edi
mov dword [0x57bcfc], eax
call esi
push eax
call fcn.004d3fda
mov dword [esp], 0x538e48
push edi
mov dword [0x57bd00], eax
call esi
push eax
call fcn.004d3fda
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x57bd04], eax
call esi
push eax
call fcn.004d3fda
pop ecx
mov dword [0x57bd0c], eax
test eax, eax
je 0x4fc85b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d3fda
pop ecx
mov dword [0x57bd08], eax
mov eax, dword [0x57bd08]
cmp eax, ebx
je 0x4fc8b3
cmp dword [0x57bd0c], ebx
je 0x4fc8b3
push eax
call fcn.004d4055
push dword [0x57bd0c]
mov esi, eax
call fcn.004d4055
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4fc8b3
test edi, edi
je 0x4fc8b3
call esi
test eax, eax
je 0x4fc8aa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4fc8aa
test byte [ebp - 0xc], 1
jne 0x4fc8b3
or dword [ebp + 0x10], 0x200000
jmp 0x4fc8ec
mov eax, dword [0x57bd00]
cmp eax, ebx
je 0x4fc8ec
push eax
call fcn.004d4055
pop ecx
test eax, eax
je 0x4fc8ec
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4fc8ec
mov eax, dword [0x57bd04]
cmp eax, ebx
je 0x4fc8ec
push eax
call fcn.004d4055
pop ecx
test eax, eax
je 0x4fc8ec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57bcfc]
call fcn.004d4055
pop ecx
test eax, eax
je 0x4fc90c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4fc90e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret