joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493710
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510440
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], 0
call fcn.00493540
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x493784
push 0x54eaa4
mov ecx, edi
call fcn.00471bb0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x493879
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x54eaa4
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00471bb0
mov byte [ebp - 4], 1
test esi, esi
je 0x49382f
push esi
call fcn.004ea22e
add esp, 4
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x493826
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x54d150
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x493826
cmp dword [ebp - 0x1c], 0
je 0x493826
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0xfeef04bd
jne 0x493826
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x14]
push str._d._d._d._d
push eax
call fcn.00472d30
add esp, 0x18
push ebx
call fcn.004ea229
add esp, 4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00471fb0
mov byte [ebp - 4], 0
add eax, 0x10
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
add edx, 0xfffffff0
mov dword [edi], eax
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x493862
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x493883
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x4939e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5104e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
movzx ebx, al
shr edx, 8
movzx ecx, dl
mov dword [ebp - 0x14], ecx
cmp eax, 0x80000000
jae 0x493a33
mov edi, eax
shr edi, 0x10
cmp ebx, 6
jb 0x493a58
cmp ecx, 2
jb 0x493a58
mov ecx, esi
call fcn.00493d50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x493a74
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push ebx
push str._d._d___d_
push eax
call fcn.00472d30
mov edi, dword [ebp - 0x10]
add esp, 0x14
add edi, 0xfffffff0
mov ecx, edi
call fcn.00471fb0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x493ace
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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 0x4943c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jne 0x494422
cmp dword [ebp - 0x110], 2
jne 0x494422
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret
Function at 0x49e240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x57973c]
push edi
push 0xf0
movzx eax, ax
mov edi, 1
push eax
push esi
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49e3d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e3d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x49e3d0
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x49e3bb
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x49e330
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.0049e790
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x49e3a8
push eax
call fcn.004e9fe4
add esp, 4
jmp 0x49e3a8
cmp dx, ax
jne 0x49e3ad
push 3
lea eax, [ebp - 0x104]
mov dword [ebp - 0x134], 1
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.0049e790
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x49e382
push eax
call fcn.004e9fe4
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x49e2a8
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 4
Function at 0x49fbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511122
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x44c], 0
movdqu xmmword [ebp - 0x448], xmm0
mov dword [ebp - 0x430], 0
movq qword [ebp - 0x438], xmm0
call fcn.00460220
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x49fc7d
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 0x42c], 1
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.004ef3a0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.004ef3a0
add esp, 0x18
mov dword [ebp - 0x44c], esi
cmp byte [ebp + 0x18], 0
mov eax, 1
mov ecx, 0x11
cmovne eax, ecx
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x49fd2c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49fd2c
test al, 0x10
je 0x49fd2c
push ecx
mov ecx, dword [ebp + 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00471fb0
add eax, 0x10
mov dword [esi], eax
call fcn.0049fb30
add esp, 4
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x49fd6e
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x21c]
push eax
push 0x54c5c0
push edi
call fcn.00472d30
add esp, 0xc
jmp 0x49fd75
mov ecx, edi
call fcn.00471aa0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x49fd98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x428], ecx
lea eax, [ecx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x49fdc1
mov ecx, dword [ecx]
push dword [ebp - 0x428]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a1780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4a1795
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4a17a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a17a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4ac1b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5122b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00460220
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4ac1fa
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
cmp dword [ebx + 0x14], 0
je 0x4ac28b
cmp dword [ebx + 0x18], 0
je 0x4ac28b
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x550e3c
call fcn.0048ad90
cmp eax, 0x57a1b0
je 0x4ac281
push 0x550e3c
mov ecx, edi
call fcn.0048ad90
cmp byte [eax + 8], 5
jne 0x4ac281
push 0x550e3c
mov ecx, edi
call fcn.0048ad90
mov ecx, eax
call fcn.0048a850
test al, al
jne 0x4ac281
push 0
push 0
push 0x402
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 0x18]
call edi
push 0
push dword [ebx + 0x14]
call edi
jmp 0x4ac28b
mov ecx, dword [ebx + 0x10]
push 2
mov eax, dword [ecx]
call dword [eax + 0x2c]
add esi, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ac2ad
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c8810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c887d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x4c886d
cmp eax, 4
jne 0x4c887d
cmp dword [ebp - 0x110], 0x5a
jb 0x4c887d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret
Function at 0x4c91a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x128], edx
push edi
test esi, esi
jne 0x4c91dc
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ecx + 0xc]
mov ecx, 0xffff
movzx eax, word [edi]
cmp ax, cx
je 0x4c93ba
test byte [edi + 2], 1
je 0x4c93a7
movzx ebx, ax
mov eax, 0x4000
test word [esi], ax
je 0x4c921a
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, 0xbfff
and word [esi], ax
push 0x30
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [ebp - 0x158], 0x30
lea eax, [ebp - 0x120]
push 0x110
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c9281
mov eax, dword [ebp - 0x120]
cmp eax, 5
jae 0x4c928b
cmp eax, 4
jne 0x4c9281
cmp dword [ebp - 0x11c], 0x5a
jae 0x4c928b
mov dword [ebp - 0x158], 0x2c
movzx ecx, word [esi]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x148], ebx
test ecx, 0x100
je 0x4c92b5
or eax, 3
mov dword [ebp - 0x14c], eax
test ecx, 0x200
je 0x4c92c6
or eax, 8
mov dword [ebp - 0x14c], eax
test ecx, 0x1000
je 0x4c92d9
or eax, 0x1000
mov dword [ebp - 0x14c], eax
test ecx, 0x2000
je 0x4c9368
push 0x30
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [ebp - 0x188], 0x30
call fcn.004c8810
mov ecx, dword [ebp - 0x188]
test al, al
mov eax, 0x2c
mov dword [ebp - 0x184], 0x10
cmovne ecx, eax
mov dword [ebp - 0x178], ebx
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], ecx
push eax
push 0
push ebx
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4c9368
mov eax, dword [ebp - 0x180]
or dword [ebp - 0x154], 0x10
and eax, 0xfffff7fb
or dword [ebp - 0x150], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x158]
push eax
push 0
push ebx
mov ebx, dword [ebp - 0x128]
push ebx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, 0x800
test word [esi], ax
je 0x4c93a0
movzx eax, word [edi]
push 0
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 4]
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, 0xffff
mov edx, ebx
movzx eax, word [edi + 4]
add edi, 4
add esi, 8
cmp ax, cx
jne 0x4c91f0
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 4
Function at 0x4db630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4db64c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4db66a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], 0
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4db756
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4db756
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4db756
mov edi, dword [ebp + 0xc]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x18], eax
test eax, eax
je 0x4db756
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4db746
push edi
push ebx
push eax
call fcn.004eebf0
add esp, 0xc
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0
push dword [esi + 0x18]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4db73d
mov ecx, dword [ebp + 0xc]
call fcn.004db4d0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4db73d
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x4db729
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4db736
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x4dc680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4dc699
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dc6a5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4dc6a0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4dcbb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517616
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4dcc5c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4dcc5c
call fcn.00495800
mov esi, eax
jmp 0x4dcd4c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4dcc7f
call fcn.00495800
jmp 0x4dcd3f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x4dcc9d
call fcn.00495800
jmp 0x4dcd3f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4dccbe
mov esi, 0x8007000e
jmp 0x4dcd41
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004e9080
jmp 0x4dcce8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4dccff
mov esi, 0x8007000e
jmp 0x4dcd41
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4dcd1f
call fcn.00495800
jmp 0x4dcd3f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004dd9c0
mov esi, eax
test edi, edi
je 0x4dcd4c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4dcd70
lea ecx, [ebp - 0x418]
call fcn.004e93c0
jmp 0x4dcd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fc0c3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x572bb0]
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.004f51d3
mov dword [ebp - 0x14], eax
cmp dword [0x5794bc], esi
jne 0x4fc1b6
push 0x800
push esi
push 0x545c2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4fc143
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4fc296
push esi
push esi
push 0x545c2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4fc296
push 0x545c44
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fc296
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5794bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5794c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x545c74
push edi
mov dword [0x5794c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5794cc], eax
test eax, eax
je 0x4fc1b3
push 0x545c90
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5794c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4fc1db
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fc1ce
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4fc1f0
push 4
pop eax
jmp 0x4fc298
cmp dword [ebp - 0x14], esi
je 0x4fc1f0
push dword [0x5794bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4fc1d5
mov eax, dword [0x5794c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4fc24e
cmp dword [0x5794cc], edi
je 0x4fc24e
push eax
call ebx
push dword [0x5794cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fc24e
test eax, eax
je 0x4fc24e
call ecx
test eax, eax
je 0x4fc243
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 0x4fc243
test byte [ebp - 8], 1
jne 0x4fc24e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4fc27e
mov eax, dword [0x5794c0]
cmp eax, edi
je 0x4fc27b
push eax
call ebx
test eax, eax
je 0x4fc27b
call eax
mov esi, eax
test esi, esi
je 0x4fc27b
mov eax, dword [0x5794c4]
cmp eax, edi
je 0x4fc27b
push eax
call ebx
test eax, eax
je 0x4fc27b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5794bc]
call ebx
test eax, eax
je 0x4fc296
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4fc298
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e94b7
mov esp, ebp
pop ebp
ret