joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448b15
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48f1ce
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call sym.SH7zInstaller.exe_protected_virtual:_void___thiscall_shui::CSHControl::SetFocus_void_
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esi + 0x9c]
call sym.SH7zInstaller.exe_public:_void___thiscall_shui::CSHSignelWatcherT_class_shui::CSHActiveSignalArgs_::Fire_class_shui::CSHWidget___class_shui::CSHActiveSignalArgs__
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x448b83
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48f1ce
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esi + 0xa0]
call sym.SH7zInstaller.exe_public:_void___thiscall_shui::CSHSignelWatcherT_class_shui::CSHActiveSignalArgs_::Fire_class_shui::CSHWidget___class_shui::CSHActiveSignalArgs__
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44dd56
Capabilities:
Log keystrokes via polling

Disassembly:
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x44dd81
cmp eax, 0x79
jne 0x44dd78
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x44dd81
cmp dword [esi + 0xa8], 0x20
jne 0x44ddf4
cmp dword [esp + 8], 0xf100
jne 0x44ddf4
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x44ddb1
mov eax, esi
call fcn.004502d8
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x44ddf4
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x44ddf4
test byte [esi + 0x84], 0x40
jne 0x44dde9
mov al, byte [esi + 0x85]
test al, 2
je 0x44ddde
test al, 4
jne 0x44ddde
test al, 8
je 0x44ddde
mov al, 1
call fcn.00450352
push edi
mov edi, esi
call fcn.004502b3
pop edi
jmp 0x44ddee
cmp eax, 0x20
je 0x44ddf4
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
ret 4
Function at 0x450a04
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ed394]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0047c520
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x450a52
cmp dword [ebp - 0x7c], 6
jb 0x450a52
xor eax, eax
inc eax
jmp 0x450a54
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0047946c
add ebp, 0x98
leave
ret

Function at 0x450b88
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ed394]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0047c520
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x450be1
cmp dword [ebp - 0x7c], 5
jae 0x450bdd
cmp dword [ebp - 0x7c], 4
jne 0x450be1
cmp dword [ebp - 0x78], 0x5a
jb 0x450be1
xor eax, eax
jmp 0x450be4
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0047946c
add ebp, 0x98
leave
ret
Function at 0x453c0e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493446
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call sym.SH7zInstaller.exe_public:_void___thiscall_shui::SHString::constructor_void_
mov eax, dword [ebp + 0xc]
and dword [esp + 0x30], 0
push dword [ebp + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.00432140
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0xc]
push eax
add ecx, 0xbc
call fcn.00454b95
mov eax, dword [esi]
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x10]
push eax
mov ecx, esi
call sym.SH7zInstaller.exe_private:_void___thiscall_shui::CSHRichLabel::RichLabelRaiseInvalidate_struct_tagRECT_const___int_
lea ecx, [esp + 0x10]
call sym.SH7zInstaller.exe_public:_void___thiscall_shui::SHString::destructor_void_
xor eax, eax
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x45e380
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0
mov eax, 0x49046f
call fcn.0047cc4d
mov esi, dword [edi]
call fcn.0041aac0
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45e3ee
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x45e3e8
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.00417890
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
mov ecx, edi
call fcn.00432140
lea ecx, [ebp + 8]
call fcn.00417940
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.0047cd25
ret 4
Function at 0x46141f
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
movsx ebx, ax
push esi
shr eax, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cwde
mov esi, ecx
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 0x41a
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call edi
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x419
push dword [esi + 4]
call edi
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x461533
push eax
push eax
push 0x401
push dword [esi + 4]
call edi
push 0
push 0
push 0x402
push dword [esi + 4]
mov dword [ebp - 4], eax
call edi
sub ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ebx
fild dword [ebp - 8]
mov dword [ebp - 8], ecx
fild dword [ebp - 8]
inc eax
sub eax, dword [ebp - 4]
fdivp st(1)
mov dword [ebp - 8], eax
fld1
fsub st(1)
fld qword [0x4c6710]
fmul st(1), st(0)
fld st(2)
fmulp st(1)
fsubp st(1)
fild dword [ebp - 8]
fmulp st(2)
fild dword [ebp - 4]
faddp st(2)
faddp st(1)
call fcn.0048e3c0
push eax
push 1
push 0x405
push dword [esi + 4]
mov dword [ebp - 8], eax
call edi
call fcn.004619b6
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
call ebx
movzx ecx, word [ebp - 8]
push dword [esi + 4]
shl ecx, 0x10
or ecx, 4
push ecx
push 0x114
push eax
call edi
push dword [esi + 4]
call ebx
push dword [esi + 4]
push 8
push 0x114
push eax
call edi
xor eax, eax
jmp 0x46153a
mov edx, esi
call fcn.00461df6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462eec
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
push 0
call dword [eax + 0x1c]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push eax
call edi
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x1c]
push eax
call edi
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret
Function at 0x463cf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x491d10
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0x1d
xor ebx, ebx
push str.call_to_empty_boost::function
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040da70
mov ecx, esi
mov dword [esp + 0x34], ebx
call fcn.004798c0
mov byte [esp + 0x34], 1
push 0xffffffffffffffff
lea ecx, [esi + 0xc]
mov dword [esi], vtable.std::runtime_error.0
push ebx
lea eax, [esp + 0x18]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.0040e070
cmp dword [esp + 0x28], 0x10
jb 0x463d84
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00479461
add esp, 4
mov eax, esi
mov dword [esi], vtable.boost::bad_function_call.0
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x465940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARESOHUSohuVA
push SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4659a9
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push str.RegisterId
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret
Function at 0x469490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491b48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00469530
mov dword [esp + 0x18], 0
test edi, edi
je 0x4694d4
add edi, 0x28
jmp 0x4694d6
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4694ee
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4697c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492973
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.00469490
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_function_call__.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_function_call__.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_function_call__.2.0
test edi, edi
je 0x469825
lea ebx, [edi + 0x28]
jmp 0x469827
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x469838
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x469848
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x469b60
Capabilities:
Check http status code
Create http request

Disassembly:
sub esp, 8
push edi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x469b81
pop edi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
push esi
push 0
push 0x84400000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x469bb0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 8
ret 4
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x20000013
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x469bf2
call edi
push esi
call edi
pop esi
xor eax, eax
pop edi
add esp, 8
ret 4
call edi
push esi
call edi
xor eax, eax
cmp dword [esp + 8], 0xc8
pop esi
sete al
pop edi
add esp, 8
ret 4
Function at 0x46ae40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.0046b280
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.0046b2e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46aead
test al, 1
jne 0x46aead
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x46aead
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x474500
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x490ef9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], edi
mov dword [esp + 0x28], ebp
mov byte [ebp + 4], 0
mov dword [esp + 0x34], edi
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x24], 1
jb 0x474562
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jmp 0x474569
lea edx, [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x14]
xor esi, esi
cmp eax, edi
je 0x4746de
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
mov byte [esp + esi + 0x18], dl
mov bl, byte [esp + 0x19]
dec eax
inc esi
inc ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp esi, 3
jne 0x47460e
mov al, byte [esp + 0x18]
mov cl, al
shr cl, 2
and al, 3
shl al, 4
mov byte [esp + 0x14], cl
mov dl, bl
shr dl, 4
add al, dl
mov byte [esp + 0x15], al
mov al, byte [esp + 0x1a]
mov cl, bl
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
xor esi, esi
movzx edi, byte [esp + esi + 0x14]
cmp edi, dword [0x4eee1c]
jbe 0x4745e3
call fcn.0047a626
cmp dword [0x4eee20], 0x10
mov eax, dword [0x4eee0c]
jae 0x4745f6
mov eax, 0x4eee0c
movzx eax, byte [eax + edi]
push eax
mov ecx, ebp
call fcn.0046de50
inc esi
cmp esi, 4
jl 0x4745d1
mov eax, dword [esp + 0x20]
xor esi, esi
xor edi, edi
cmp eax, edi
jne 0x474576
cmp esi, edi
je 0x4746de
cmp esi, 3
jge 0x47463f
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x1c]
push edi
push eax
call fcn.0047c520
mov bl, byte [esp + 0x25]
add esp, 0xc
mov al, byte [esp + 0x18]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x15], al
mov al, byte [esp + 0x1a]
add bl, bl
mov byte [esp + 0x14], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x16], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [esp + 0x17], al
test ebx, ebx
jle 0x4746bc
nop
movzx eax, byte [esp + edi + 0x14]
cmp eax, dword [0x4eee1c]
jbe 0x474692
call fcn.0047a626
cmp dword [0x4eee20], 0x10
mov ecx, dword [0x4eee0c]
jae 0x4746a6
mov ecx, 0x4eee0c
movzx eax, byte [esp + edi + 0x14]
movzx eax, byte [ecx + eax]
push eax
mov ecx, ebp
call fcn.0046de50
inc edi
cmp edi, ebx
jl 0x474680
cmp esi, 3
jge 0x4746de
mov edi, 3
sub edi, esi
jmp 0x4746d0
push 0x3d
mov ecx, ebp
call fcn.0046de50
sub edi, 1
jne 0x4746d0
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4757a0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4901db
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov eax, dword [0x4f100c]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x4f100c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x234], 0
call fcn.0047c520
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
call fcn.00432a7e
mov edi, dword [esp + 0xc]
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov eax, edi
mov word [esi + 4], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475860
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.0040c300
lea eax, [edi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47589e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0047946c
add esp, 0x220
ret
Function at 0x4758d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4901b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [0x4f100c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f100c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4759ca
mov eax, 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push str.InstallDate
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4759bf
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x30]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
call fcn.00474ad0
lea edi, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.004325ca
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4759bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov eax, edi
mov word [ebp + 4], dx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4759e0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
mov esi, ebp
call fcn.0040c300
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x476b4f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4f108c], 0
push esi
jne 0x476ac2
call fcn.004769e8
test eax, eax
je 0x476b05
mov eax, dword [0x4f108c]
cmp eax, 1
jne 0x476ae3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x476b05
pop esi
ret
push eax
call dword [0x4f1094]
test eax, eax
jne 0x476b4d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x476b09
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4f108c]
call dword [0x4f1094]
mov edi, eax
test edi, edi
je 0x476b2e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x476b4a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4f108c]
call dword [0x4f1090]
add edi, 0x10
cmp edi, esi
jb 0x476b36
mov eax, edi
pop edi
pop esi
ret
jmp 0x476aaf

Function at 0x47946c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ed394]
jne 0x479476
repz ret
jmp fcn.0047e86a

Function at 0x47a302
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47a333
call fcn.0047db7b
mov dword [eax], esi
call fcn.0047db68
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047a600
add esp, 0x14
push 0x16
pop eax
jmp 0x47a388
test dword [ebp + 0xc], 0xfffffff9
jne 0x47a30f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47a360
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047db8e
pop ecx
call fcn.0047db68
mov eax, dword [eax]
jmp 0x47a388
test al, 0x10
jne 0x47a386
test al, 1
je 0x47a386
test byte [ebp + 0xc], 2
je 0x47a386
call fcn.0047db7b
mov dword [eax], 5
call fcn.0047db68
mov dword [eax], 0xd
jmp 0x47a357
xor eax, eax
pop esi
pop ebp
ret