joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x58ce88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7fa2d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x7f9a68]
cmp eax, 0xffffffff
jne 0x459295
xor esi, esi
jmp 0x45929e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test esi, esi
je 0x4592e5
cmp dword [esi + 0x1c], 0
jne 0x459329
cmp dword [esi + 0xc], 0
jne 0x459330
push 0x4566b0
push 0x802ef4
call fcn.00456a40
mov eax, dword [0x7f9a68]
add esp, 8
cmp eax, 0xffffffff
je 0x4592e5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x459315
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x459315
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0xc], 0
je 0x459370
nop
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x45935e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0xc], 0
jne 0x459330
cmp dword [esi + 0x1c], 0
je 0x4592ba
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x45939b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45939b
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x14]
call fcn.00458c50
cmp dword [esi + 0x1c], 0
jne 0x459380
jmp 0x4592b4
jmp 0x459260
Function at 0x4593c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x58ce88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7fa2d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x7f9a68]
cmp eax, 0xffffffff
jne 0x459295
xor esi, esi
jmp 0x45929e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test esi, esi
je 0x4592e5
cmp dword [esi + 0x1c], 0
jne 0x459329
cmp dword [esi + 0xc], 0
jne 0x459330
push 0x4566b0
push 0x802ef4
call fcn.00456a40
mov eax, dword [0x7f9a68]
add esp, 8
cmp eax, 0xffffffff
je 0x4592e5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x459315
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x459315
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0xc], 0
je 0x459370
nop
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x45935e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0xc], 0
jne 0x459330
cmp dword [esi + 0x1c], 0
je 0x4592ba
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x45939b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45939b
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x14]
call fcn.00458c50
cmp dword [esi + 0x1c], 0
jne 0x459380
jmp 0x4592b4
jmp 0x459260

Function at 0x459fa0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d0f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7fa2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00459ec0
mov esi, eax
push 0x4566b0
push 0x802ef4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.00456a40
mov eax, dword [0x7f9a68]
add esp, 8
cmp eax, 0xffffffff
je 0x45a000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
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 0x45a030
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x7f9a68]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x45a048
push eax
call esi
test eax, eax
jne 0x45a071
call fcn.00459fa0
mov eax, dword [0x7f9a68]
cmp eax, 0xffffffff
jne 0x45a06e
xor eax, eax
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.004585f0
add esp, 8
mov dword [esi], eax
pop esi
ret
push eax
call esi
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.004585f0
add esp, 8
mov dword [esi], eax
pop esi
ret

Function at 0x45a090
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x58d128
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x7fa2d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x7f9a68]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x38], 0
cmp eax, 0xffffffff
je 0x45a0d6
push eax
call edi
mov esi, eax
test esi, esi
jne 0x45a0ee
call fcn.00459fa0
mov eax, dword [0x7f9a68]
cmp eax, 0xffffffff
jne 0x45a0e9
xor esi, esi
jmp 0x45a0ee
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], esp
test eax, eax
je 0x45a11b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x20]
call fcn.00456e40
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x44], 1
call fcn.00457aa0
add esp, 0xc
push 0
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x40], 2
call fcn.00458450
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x14]
call fcn.00458ff0
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x38], 1
test eax, eax
je 0x45a195
mov edi, eax
add eax, 4
push eax
call esi
test eax, eax
jne 0x45a195
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
push eax
call esi
test eax, eax
jne 0x45a195
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov edi, dword [esp + 0x18]
mov byte [esp + 0x38], 0
test edi, edi
je 0x45a1c8
lea ecx, [edi + 4]
push ecx
call esi
test eax, eax
jne 0x45a1c8
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
push ecx
call esi
test eax, eax
jne 0x45a1c8
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov edi, dword [esp + 0x48]
mov dword [esp + 0x38], 0xffffffff
test edi, edi
je 0x45a1fe
lea ecx, [edi + 4]
push ecx
call esi
test eax, eax
jne 0x45a1fe
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
push ecx
call esi
test eax, eax
jne 0x45a1fe
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x45a210
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x7f9a68]
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x45a22b
push eax
call esi
test eax, eax
jne 0x45a241
call fcn.00459fa0
mov eax, dword [0x7f9a68]
cmp eax, 0xffffffff
jne 0x45a23e
xor eax, eax
jmp 0x45a241
push eax
call esi
lea esi, [eax + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004570b0
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00459440
pop esi
add esp, 8
ret

Function at 0x45a270
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x58d158
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7fa2d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x7f9a68]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], ebx
cmp eax, 0xffffffff
je 0x45a326
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x45a326
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x14]
call fcn.00457a30
mov esi, dword [esi + 0x18]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x45a326
lea esi, [eax + 0x10]
test esi, esi
je 0x45a326
cmp byte [esp + 0x34], 0
je 0x45a2fb
mov ecx, dword [esi]
test ecx, ecx
je 0x45a2fb
mov eax, dword [esi + 8]
test eax, eax
je 0x45a2fb
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
mov edi, dword [esp + 0x30]
jne 0x45a315
test edi, edi
jne 0x45a315
push ebx
call fcn.0045a210
add esp, 4
jmp 0x45a364
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00457480
mov dword [esi + 8], edi
jmp 0x45a364
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
test ecx, ecx
jne 0x45a336
test eax, eax
je 0x45a364
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], esp
test eax, eax
je 0x45a35b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
call fcn.0045a090
add esp, 0x10
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
test esi, esi
je 0x45a3a0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x45a3a0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x45a3a0
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x45a5ed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7fa2d0]
jne 0x45a5f7
repz ret
jmp fcn.0046413a
Function at 0x46c98c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7fa2d0]
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.00462579
and dword [ebp - 0x14], 0
cmp dword [0x803d88], 0
mov dword [ebp - 0x18], eax
jne 0x46ca3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46cae7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a5068
push ebx
call edi
test eax, eax
je 0x46cae7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5a5058
push ebx
mov dword [0x803d88], eax
call edi
push eax
call esi
push 0x5a5044
push ebx
mov dword [0x803d8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x803d90], eax
call edi
push eax
call esi
mov dword [0x803d98], eax
test eax, eax
je 0x46ca3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x803d94], eax
mov eax, dword [0x803d94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46ca98
cmp dword [0x803d98], ecx
je 0x46ca98
push eax
call esi
push dword [0x803d98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46ca98
test ebx, ebx
je 0x46ca98
call edi
test eax, eax
je 0x46ca8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46ca8f
test byte [ebp - 8], 1
jne 0x46ca98
or dword [ebp + 0x10], 0x200000
jmp 0x46cacb
mov eax, dword [0x803d8c]
cmp eax, dword [ebp - 0x18]
je 0x46cacb
push eax
call esi
test eax, eax
je 0x46cacb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46cacb
mov eax, dword [0x803d90]
cmp eax, dword [ebp - 0x18]
je 0x46cacb
push eax
call esi
test eax, eax
je 0x46cacb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x803d88]
call esi
test eax, eax
je 0x46cae7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46cae9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a5ed
leave
ret

Function at 0x481e85
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 0x481ecc
call fcn.0049dd8e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x481ecc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x481ee8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00481985
mov esi, eax
test edi, edi
je 0x481ee6
test ebx, ebx
je 0x481ee6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x483617
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x598879
call fcn.0045d0e1
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x48363c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x48368e
call fcn.004a1454
push eax
lea ecx, [ebp - 0x10]
call fcn.0048d5d6
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.0046cb6d
push eax
call fcn.00477f06
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004783c7
mov eax, esi
call fcn.0045d1b9
ret 8

Function at 0x4923d5
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.0049dd8e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49240e
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.00492012
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 0x49246c
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 0x492490
cmp dword [edi + 0x74], 0
jne 0x492490
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0049dd8e
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.0049242d
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 0x49ca5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0049dd8e
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x49ca88
xor eax, eax
jmp 0x49cb2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x49ca81
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x49ca81
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045c585
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x49cae0
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x49cace
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0049b7ac
push edi
mov ebx, eax
call fcn.0045c276
pop ecx
test ebx, ebx
je 0x49cb22
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0049bdd0
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0049be84
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4a88d6
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4a8914
push 0x5a2744
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a8922
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a8922
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4a8924
cmp dword [esi + 4], 0
je 0x4a8922
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4b8cdb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5908f6
call fcn.0045d0e1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004817b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b8d3d
call fcn.0049d651
cmp eax, 1
jne 0x4b8d3d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00490dbd
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00482fdb
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004783c7
mov dword [ebp + 8], SysReAllocString
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.004783c7
mov eax, esi
call fcn.0045d1b9
ret 0x10
Function at 0x4b8d66
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5908f6
call fcn.0045d0e1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004817b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b8dc8
call fcn.0049d651
cmp eax, 1
jne 0x4b8dc8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00490dbd
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00482fdb
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004783c7
mov dword [ebp + 8], SysReAllocString
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.004783c7
mov eax, esi
call fcn.0045d1b9
ret 0x14

Function at 0x4dbe07
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0055cab0
call fcn.0049d7bf
cmp dword [eax + 0x14], 0
jne 0x4dbe24
mov ecx, esi
pop esi
jmp fcn.004db90c
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00535d5f
call fcn.0049d7bf
cmp dword [eax + 0x14], 0
jne 0x4df3e6
mov ecx, esi
pop esi
jmp fcn.004ded9b
pop esi
ret

Function at 0x4fc4d6
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.004fc17a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4fc520
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0047fdde
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0047a1e6
jmp 0x4fc52b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0049df11
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4fc531
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.004832b7
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4fc56e
call fcn.004fc17a
mov dword [esi + 0xc], 1
jmp 0x4fc573
call fcn.004fc17a
cmp dword [esi], 0
je 0x4fc5bc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4fc594
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0047fdde
jmp 0x4fc5a6
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0047a57e
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0047a1e6
jmp 0x4fc5e0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4fc5e0
push dword [esi]
push dword [ebp + 8]
call fcn.0049df11
pop esi
pop ebp
ret 0xc

Function at 0x51500c
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 0x515026
call fcn.0049dd8e
mov esi, dword [eax + 0xc]
push dword [0x807d24]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x515044
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 0x51503c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x515071
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x51503e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00514f3a
mov esi, eax
jmp 0x515063