joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fc8f
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 0x44fcd7
call fcn.00433b15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44fcd7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44fd1a
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 0x44fd03
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 0x44fd03
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44fd17
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 0x452ff6
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.00433b15
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45302f
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.00452c47
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 0x45308d
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 0x4530b1
cmp dword [edi + 0x54], 0
jne 0x4530b1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00433b15
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.0045304e
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 0x46576c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4658ad
push esi
push edi
push 0x586e80
call fcn.0042cc38
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x4657fc
mov esi, dword [ebx + 0x168]
jmp 0x4657e8
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4657e8
push edi
call fcn.0041513a
push eax
push 0x5ddd88
call fcn.0042cc56
pop ecx
pop ecx
test eax, eax
je 0x4657e8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x4657e8
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x4657a8
lea ecx, [ebx + 0x164]
call fcn.0048d44a
jmp 0x4658ab
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x4658ab
jmp 0x465812
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.00467dae
mov esi, dword [eax]
test esi, esi
jne 0x46582b
xor ebx, ebx
jmp 0x46582e
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4658a1
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4658a1
test edi, edi
je 0x465873
push esi
push 0x5ddd88
call fcn.0042cc56
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x58c558
call fcn.0042cc56
pop ecx
pop ecx
test eax, eax
je 0x4658a1
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp + 8]
add esi, 0x164
push eax
mov ecx, esi
call fcn.00464cbe
test eax, eax
jne 0x4658a1
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00464c8e
cmp dword [ebp - 8], 0
jne 0x46580f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4886a9
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, ecx
mov ecx, 0x104
cmp eax, ecx
ja 0x488803
je 0x488829
cmp eax, 0xa1
jb 0x488855
cmp eax, 0xa2
jbe 0x488829
cmp eax, 0xa3
jbe 0x488855
cmp eax, 0xa5
jbe 0x488829
cmp eax, 0xa6
jbe 0x488855
cmp eax, 0xa8
jbe 0x488829
cmp eax, 0x100
jne 0x488855
cmp dword [esi + 0x80], 0xffffffff
je 0x488829
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x488829
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x4887cf
dec eax
jne 0x488829
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [eax + 1]
add ecx, eax
cmp edi, ecx
jge 0x4887c7
mov eax, edi
cdq
idiv dword [esi + 0x7c]
mov eax, dword [esi]
mov ecx, esi
push edx
mov dword [ebp + 8], edx
call dword [eax + 0x254]
test eax, eax
jne 0x488788
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jl 0x488760
jmp 0x4887c7
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x1e4], 1
call dword [eax + 0x1ec]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1e8]
mov ecx, eax
call fcn.0041a14c
push dword [esi + 0x80]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x248]
and dword [esi + 0x1e4], 0
xor eax, eax
inc eax
jmp 0x48885d
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [ecx + eax - 1]
cmp edi, eax
jle 0x4887c7
mov eax, edi
cdq
idiv dword [esi + 0x7c]
mov eax, dword [esi]
mov ecx, esi
push edx
mov dword [ebp + 8], edx
call dword [eax + 0x254]
test eax, eax
jne 0x488788
dec edi
cmp edi, dword [esi + 0x80]
jg 0x4887e0
jmp 0x4887c7
cmp eax, 0x200
jb 0x488855
cmp eax, 0x202
jbe 0x488829
cmp eax, 0x203
jbe 0x488855
cmp eax, 0x205
jbe 0x488829
add eax, 0xfffffdf9
cmp eax, 1
ja 0x488855
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x48883f
cmp dword [ecx + 0x20], 0
je 0x48883f
push edi
call fcn.0041c885
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x488855
cmp dword [ecx + 0x20], 0
je 0x488855
push edi
call fcn.0041c885
push edi
mov ecx, esi
call fcn.004a6f0e
pop edi
pop esi
pop ebp
ret 4
Function at 0x4aa03c
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x57d546
call fcn.00525310
xor edi, edi
cmp dword [0x5dca00], edi
je 0x4aa105
cmp dword [0x5de300], 0xfffffffe
jne 0x4aa0f2
cmp dword [ebp + 8], 0xffffffff
je 0x4aa105
test byte [0x5e5d00], 1
mov esi, 0x5e5ce0
jne 0x4aa09b
or dword [0x5e5d00], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00428440
push 0x585caa
call fcn.005243c5
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00428497
cmp dword [0x5e5cdc], edi
je 0x4aa0af
call fcn.004419cd
push edi
push edi
push 0x4a9fe4
call fcn.0052962d
add esp, 0xc
mov dword [0x5e5cdc], eax
cmp eax, edi
jbe 0x4aa0df
cmp eax, 0xffffffff
je 0x4aa0df
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x5de300], eax
jmp 0x4aa0e5
mov dword [0x5e5cdc], edi
push 0x5e5ce8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4aa105
mov eax, dword [ebp + 8]
mov dword [0x5de300], eax
cmp eax, 0xffffffff
jne 0x4aa105
mov dword [0x5e5cdc], edi
call fcn.005253e8
ret

Function at 0x4aa21c
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5e0930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x4aa255
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x4aa27c
cmp dword [0x5e41f8], 0
jne 0x4aa27c
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4aa26f
push 0x12
call esi
test bx, ax
je 0x4aa273
mov eax, edi
jmp 0x4aa2e7
push edi
call fcn.005297fc
pop ecx
jmp 0x4aa2e7
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.00437604
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005239a2
leave
ret 4
Function at 0x4ad011
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5e0930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call fcn.004acad1
mov ebx, eax
cmp ebx, esi
je 0x4ad07e
lea ecx, [ebp - 0x10c]
call fcn.004507f4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005239a2
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4ad09c
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
call fcn.004ad011
cmp eax, esi
jne 0x4ad0e3
lea eax, [ebp - 0x11c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x100
call ebx
test eax, eax
je 0x4ad086
lea ecx, [ebp - 0x10c]
call fcn.004507f4
push dword [ebp - 0x114]
mov ecx, edi
call fcn.004aca16
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.004507f4
mov eax, esi
jmp 0x4ad06d
Function at 0x4adcfb
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x48
mov eax, 0x57d9ae
call fcn.00525343
mov dword [ebp - 0x14], ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], esi
call fcn.0043fdac
mov edi, dword [0x5e50f0]
mov ebx, dword [0x5e50f4]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0043f597
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040f64a
mov dword [ebp - 0x1c], esi
mov esi, vtable.CBitmap.0
mov dword [ebp - 0x20], esi
push ebx
push edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040f623
test eax, eax
jne 0x4add9b
push 0xffffffffffffffff
push 0
push 0x3e8a
call fcn.0043f0e4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.00402df0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0043fd04
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.0043fe00
xor eax, eax
call fcn.005253e8
ret
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040f670
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], eax
push 0x5e5074
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
call fcn.004282c3
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004adb64
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040f670
call fcn.00402f90
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4add5e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4ade1c
push 0xffffffffffffffff
push eax
push 0x3e8a
call fcn.0043f0e4
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4add6c
lea ecx, [ebp - 0x20]
call fcn.0043ff83
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4ade3e
push 0xffffffffffffffff
push eax
push 0x3e8a
call fcn.0043f0e4
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.00402df0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0043fd04
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.0043fe00
xor eax, eax
inc eax
jmp 0x4add95
Function at 0x4adec9
Capabilities:
Get file system object information

Disassembly:
push 0x270
mov eax, 0x57d9df
call fcn.00525379
mov esi, ecx
lea edi, [esi + 0x14]
push edi
lea ecx, [ebp - 0x278]
call fcn.0040e99a
xor ebx, ebx
push ebx
push 0x5bcb60
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], ebx
call fcn.0042a507
cmp eax, 0xffffffff
jne 0x4adfac
push ebx
push 0x58979c
lea ecx, [ebp - 0x278]
call fcn.0042a507
cmp eax, 0xffffffff
jne 0x4adfac
push ebx
push 0x589798
lea ecx, [ebp - 0x278]
call fcn.0042a507
cmp eax, 0xffffffff
jne 0x4adfac
push edi
lea ecx, [ebp - 0x27c]
call fcn.0040e99a
mov edi, dword [ebp - 0x27c]
push ebx
lea eax, [ebp - 0x114]
push eax
push 0x104
push ebx
push edi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4adf8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov esi, eax
call fcn.00402b90
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.00402b90
mov eax, esi
call fcn.005253fc
ret
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.00408fc0
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00402b90
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push ebx
push dword [ebp - 0x278]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4adfd6
mov esi, dword [ebp - 0x274]
jmp 0x4adf79
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov esi, eax
jmp 0x4adf79
Function at 0x4c210d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0x20
push ebx
mov ebx, ecx
jne 0x4c215e
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, 0x17
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.004c1ae1
mov ecx, ebx
call fcn.004c2085
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x4c21b4
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x4c2179
cmp dword [ebp + 0xc], 0x79
je 0x4c2174
cmp dword [ebp + 0xc], 0x12
jne 0x4c21b4
xor eax, eax
inc eax
jmp 0x4c21b4
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
movzx edi, ax
shr edi, 0xf
push 0x10
and edi, 1
call esi
mov esi, dword [ebp + 0xc]
shr eax, 0xf
and eax, 1
cmp esi, 0x12
je 0x4c21b9
cmp esi, 0x79
je 0x4c21b9
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x5e4db0], 0
jne 0x4c21b0
test byte [ebx + 0x2f4], 2
jne 0x4c21b0
cmp esi, 0x12
je 0x4c21dd
cmp esi, 0x79
jne 0x4c21b0
test edi, edi
jne 0x4c21b0
test eax, eax
jne 0x4c21b0
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041513a
cmp eax, ebx
jne 0x4c2200
test dword [ebp + 0x10], 0x40000000
jne 0x4c2200
cmp esi, 0x79
jne 0x4c220e
mov ecx, dword [ebp + 8]
jmp 0x4c2207
cmp esi, 0x79
jne 0x4c220e
mov ecx, ebx
call fcn.0041a14c
jmp 0x4c2229
cmp dword [ebx + 0x2a0], 0
jge 0x4c2229
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x4c21b2
Function at 0x4c35e4
Capabilities:
Get graphical window text

Disassembly:
push 0x168
mov eax, 0x57e7ca
call fcn.00525379
mov esi, ecx
lea ebx, [esi + 0x74]
xor edi, edi
push edi
mov ecx, ebx
call fcn.0040d9df
mov ecx, ebx
call fcn.00467f5b
push ebx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x118], edi
call fcn.0043fd1d
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0048d402
push eax
lea ecx, [ebp - 0x13c]
call fcn.00440068
lea ecx, [esi + 0xd4]
mov dword [ebp - 0x120], eax
mov dword [esi + 0xd0], 1
call fcn.0048d44a
lea ecx, [esi + 0xf0]
call fcn.0048d44a
mov eax, dword [esi + 0xc8]
push 5
push dword [eax + 0xe8]
jmp 0x4c37ce
push edi
call fcn.0041513a
push eax
push 0x586e80
call fcn.0042cc56
pop ecx
pop ecx
mov dword [ebp - 0x114], eax
test eax, eax
je 0x4c37cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1b4]
test eax, eax
je 0x4c37cb
push 0x100
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x110]
push eax
mov ecx, ebx
call fcn.004072a0
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00409040
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x13c]
call fcn.004072e0
mov ecx, dword [ebp - 0x11c]
mov eax, dword [eax]
add ecx, 0xfffffff0
mov dword [ebp - 0x128], eax
call fcn.00402b90
mov eax, dword [ebp - 0x128]
cmp dword [ebp - 0x118], eax
jg 0x4c3719
mov dword [ebp - 0x118], eax
push edi
push dword [ebp - 0x124]
mov ecx, ebx
call fcn.004320ad
mov ecx, dword [ebp - 0x114]
mov eax, dword [ecx]
call dword [eax + 0x1b8]
test eax, eax
je 0x4c3745
push edi
lea ecx, [esi + 0xf0]
call fcn.0046806f
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000
je 0x4c3768
push 0
push edi
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x4c3771
and dword [esi + 0xd0], 0
jmp 0x4c37cb
push 0x30
lea eax, [ebp - 0x174]
push 0
push eax
call fcn.005256e0
add esp, 0xc
lea eax, [ebp - 0x174]
push eax
push 0
push 0xf060
push dword [ebp - 0x114]
mov dword [ebp - 0x174], 0x30
mov dword [ebp - 0x170], 1
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x4c37bf
test byte [ebp - 0x168], 3
je 0x4c37cb
push edi
lea ecx, [esi + 0xd4]
call fcn.0046806f
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x4c366a
push 0x15
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x118]
lea eax, [eax + ecx + 0x1e]
push eax
mov ecx, ebx
call fcn.004072c0
push dword [ebp - 0x120]
lea ecx, [ebp - 0x13c]
call fcn.00440068
push 1
mov ecx, ebx
call fcn.0040d9df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0043fd71
call fcn.005253fc
ret
Function at 0x4c8ac1
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x57ec5f
call fcn.00525343
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.0041b9bd
test eax, eax
je 0x4c8c90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
lea ecx, [esi + 4]
xor edi, edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
call fcn.004c885c
test eax, eax
je 0x4c8b07
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00402b40
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00402cd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004110be
lea ecx, [ebp - 0x14]
call fcn.00402b40
xor ebx, ebx
inc ebx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00402cd0
push eax
push edi
push 0x59c0a8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004110be
push edi
push 0x4000100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x4c8c7a
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004b5e9f
push edi
push 0x1000
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00467ca5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [eax + 0x20], ebx
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 4
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.00467679
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.00467c67
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004b6034
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.004c89b9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.00402b90
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402b90
mov eax, ebx
jmp 0x4c8c92
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402b90
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402b90
xor eax, eax
call fcn.005253e8
ret 8

Function at 0x4c8e1a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x57ec8d
call fcn.00525310
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409040
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c8e7c
call fcn.004333ef
cmp eax, 1
jne 0x4c8e7c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004523b1
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00419c37
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402b90
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402b90
mov eax, esi
call fcn.005253e8
ret 0x10
Function at 0x4c8ea5
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x57ec8d
call fcn.00525310
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409040
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c8f07
call fcn.004333ef
cmp eax, 1
jne 0x4c8f07
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004523b1
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00419c37
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402b90
mov dword [ebp + 8], reloc.WS2_32.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_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402b90
mov eax, esi
call fcn.005253e8
ret 0x14