joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014e40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [esp], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
push ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
xor edx, edx
push edi
cmp edx, dword [esp + 0x1c]
jae 0x10014fb3
mov eax, edx
or eax, 8
xor edi, edi
cmp eax, 1
je 0x10014eca
lea ebx, [ebx]
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 4]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x10014ea0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x10014e84
cmp edx, 0x10
jae 0x10014f4d
lea eax, [edx - 8]
mov dword [esp + 8], eax
lea esp, [esp]
cmp edx, dword [esp + 0x1c]
jae 0x10014fb3
or eax, 8
xor edi, edi
cmp eax, 1
je 0x10014f31
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 0x104]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x10014f04
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [esp + 8], eax
cmp edx, 0x10
jb 0x10014ef0
cmp edx, dword [esp + 0x1c]
jae 0x10014fb3
lea eax, [edx - 0x10]
mov dword [esp + 8], eax
lea ebx, [ebx]
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x10014f96
lea esp, [esp]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x10014f70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [esp + 8], eax
cmp edx, dword [esp + 0x1c]
jb 0x10014f60
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x10016a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
lea eax, [edi + 0x3234c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jmp 0x10016a80
xor edx, edx
lea ecx, [edx + 1]
mov dword [esp + 0xc], 4
lea ecx, [ecx]
movzx ebx, word [edi + ecx*2 + 0x329f0]
mov eax, esi
and eax, 1
mov ebp, eax
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [edi + ebx*4 + 0x30c9c]
add ecx, ecx
shr esi, 1
or ecx, eax
sub dword [esp + 0xc], 1
jne 0x10016a90
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x10016a80
pop esi
pop ebp
mov dword [edi + 0x3238c], 0
pop ebx
add esp, 0xc
ret

Function at 0x10016af0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x210
push ebx
push ebp
push edi
mov edi, 4
lea ebp, [esi + 0x30c9c]
movzx ebx, byte [esi + edi + 0x3049c]
mov ecx, ebx
mov edx, ebx
and edx, 1
shr ecx, 1
or edx, 2
dec ecx
shl edx, cl
mov eax, edi
push ebp
sub eax, edx
sub edx, ebx
lea edx, [esi + edx*2 + 0x3290a]
push edx
call fcn.10014cb0
mov dword [esp + edi*4 + 0x24], eax
inc edi
add esp, 8
cmp edi, 0x80
jb 0x10016b04
lea ebp, [esp + 0x1c]
sub ebp, esi
lea eax, [esi + 0x3270c]
lea ecx, [esi + 0x31b54]
sub ebp, 0x31b4c
lea edi, [esi + 0x3174c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 4
jmp 0x10016b77
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x32390], ebx
jbe 0x10016bcf
mov eax, ebx
or eax, 0x40
xor edx, edx
cmp eax, 1
je 0x10016bc3
lea ecx, [ecx]
mov ebp, dword [esp + 0x10]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebp + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edx, dword [esi + ebp*4 + 0x30c9c]
mov eax, ecx
cmp eax, 1
jne 0x10016b90
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [edi + ebx*4], edx
inc ebx
cmp ebx, dword [esi + 0x32390]
jb 0x10016b81
mov eax, 0xe
cmp dword [esi + 0x32390], eax
jbe 0x10016bf6
lea esp, [esp]
mov edx, eax
shr edx, 1
sub edx, 5
shl edx, 4
add dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi + 0x32390]
jb 0x10016be0
mov eax, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi + 4]
mov dword [ecx - 4], edx
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov edx, dword [edi + 0xc]
mov dword [ecx + 4], edx
mov eax, 4
add ecx, 8
jmp 0x10016c20
movzx edx, byte [esi + eax + 0x3049c]
mov edx, dword [edi + edx*4]
add edx, dword [ecx + ebp]
inc eax
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x80
jb 0x10016c20
sub dword [esp + 0x10], 0xffffff80
add dword [esp + 0xc], 0x200
sub ebp, 0x200
add edi, 0x100
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ebp
jne 0x10016b73
pop edi
pop ebp
mov dword [esi + 0x3baf0], 0
pop ebx
add esp, 0x210
ret
Function at 0x1001bf00
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10022e79
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10032914]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x10032914]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor bl, bl
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], 0
call fcn.1001c230
mov dword [esp + 0x68], 0
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x1001bf65
lea eax, [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001c031
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.1001c230
lea ecx, [esp + 0x3c]
push ecx
call fcn.1001c900
add esp, 4
test al, al
jne 0x1001bffb
lea edx, [esp + 0x20]
push edx
call fcn.1001c900
add esp, 4
test al, al
je 0x1001bffb
mov ecx, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x1001bfc8
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x1001bfd6
lea eax, [esp + 0x24]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1001c000
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x1001bff2
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001c000
mov esi, 8
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x1001c00e
lea eax, [esp + 0x24]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call edi
lea ecx, [esp + 0x20]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, 0xffffffff
je 0x1001c06b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x10
jb 0x1001c064
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c064
cmp dword [esp + 0x18], ebx
jne 0x1001c064
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100217e0
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c230
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10022dff
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x10032914]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov eax, dword [0x10032914]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov dword [esp + 0x240], 0
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x208
lea eax, [esp + 0x30]
push 0
mov dword [esp + 0x248], 0
push eax
mov dword [esp + 0x14], 1
call sub.MSVCR90.dll_memset
add esp, 0xc
movzx ecx, bl
neg ecx
sbb ecx, ecx
push 1
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001c339
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push eax
mov ecx, esi
mov dword [esp + 0x244], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
test bl, bl
je 0x1001c311
push str.TencentDeskUpdate
jmp 0x1001c316
push str.TencentDesktop
call dword [0x100241d0]
call fcn.1001c360
test al, al
jne 0x1001c32c
mov ecx, esi
call fcn.1001c4c0
push str.Global.db
mov ecx, esi
call dword [0x100241d0]
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.100217e0
add esp, 0x23c
ret
Function at 0x1001d5b0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001d5e1
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001d5d0
mov eax, dword [esi + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1001d62d
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push edi
call eax
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1001d625
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1001d625
push str.ReleaseObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001d614
push edi
call eax
add esp, 4
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], 0
pop edi
ret

Function at 0x1001f670
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x1001f69f
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4 + 4]
dec edx
inc esi
test edx, edx
jne 0x1001f682
pop edi
pop esi
pop ebx
not eax
ret 8

Function at 0x1001f6f0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
lea edx, [ecx + 4]
xor eax, eax
test bl, 1
je 0x1001f704
mov eax, 0x80
mov ecx, ebx
shr ecx, 1
test cl, 1
je 0x1001f710
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x1001f71a
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x1001f724
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1001f72e
or eax, 8
shr ecx, 1
test cl, 1
je 0x1001f738
or eax, 4
shr ecx, 1
test cl, 1
je 0x1001f742
or eax, 2
test cl, 2
je 0x1001f74a
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor esi, esi
mov dword [edx], ecx
mov eax, ecx
lea ecx, [esi + 0x1f]
mov edi, edi
test al, 1
je 0x1001f80d
mov edi, 1
shl edi, cl
or esi, edi
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x1001f800
mov dword [edx], esi
inc ebx
add edx, 4
cmp ebx, 0xff
jle 0x1001f6f8
pop edi
pop esi
pop ebx
ret
Function at 0x1001f970
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
je 0x1001fa01
mov eax, dword [esp + 0x28]
push esi
push 0xf007f
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x1001f9f9
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1001f9f2
mov eax, dword [esp + 0x10]
cmp eax, 4
je 0x1001f9f0
cmp eax, 7
jne 0x1001fa09
lea edx, [esp + 0xc]
push edx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [esp + 0x10]
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
cmp eax, 1
jne 0x1001f9f0
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1001f9ec
mov eax, 4
mov dword [esp + 0x10], eax
jmp 0x1001f9f0

Function at 0x100217e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10032914]
jne 0x100217ea
repz ret
jmp fcn.10021f35
Function at 0x40d596
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40d5b7
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40d5af
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40d5a4
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
and ecx, 0x1f
shr edx, 5
mov dword [eax], edx
xor edx, edx
mov eax, dword [ebp + 0x14]
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x65083017
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], 0x50746547
mov dword [ebp - 0x24], 0x41636f72
mov dword [ebp - 0x20], 0x65726464
mov dword [ebp - 0x1c], 0x7373
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov edx, eax
mov eax, dword [edx + 0x3c]
lea eax, [eax + edx + 0x78]
mov eax, dword [eax]
mov ecx, dword [edx + eax + 0x18]
mov ebx, dword [edx + eax + 0x20]
add ebx, edx
dec ecx
test ecx, ecx
je 0x65083107
lea edi, [ebp - 0x28]
mov esi, dword [ebx + ecx*4]
add esi, edx
push ecx
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
test ecx, ecx
pop ecx
jne 0x6508306e
mov esi, dword [edx + eax + 0x24]
add esi, edx
movzx esi, word [esi + ecx*2]
mov edi, dword [edx + eax + 0x1c]
add edi, edx
mov edi, dword [edi + esi*4]
add edi, edx
mov dword [ebp - 8], edi
popal
mov ecx, dword [ebp - 4]
xor edi, edi
cmp ecx, edi
je 0x65083107
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x65083107
lea edx, [ebp - 0x18]
push edx
push ecx
mov dword [ebp - 0x18], 0x64616f4c
mov dword [ebp - 0x14], 0x7262694c
mov dword [ebp - 0x10], 0x41797261
mov dword [ebp - 0xc], 0
call eax
nop
nop
cmp eax, edi
je 0x65083107
mov edi, eax
call 0x650830e6
nop
pop ebx
mov eax, 0x401bd0
mov ecx, 0x401b66
sub eax, ecx
lea esi, [ebx + eax]
mov cl, byte [esi]
test cl, cl
je 0x65083107
lea edx, [esi]
push edx
call edi
nop
add esi, 0x10
jmp 0x650830f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402792
Capabilities:
Access the windows event log

Disassembly:
push 0x3ac
mov eax, 0x4100f2
call fcn.0040ec7f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3b4]
push eax
push str.Heartbeat_exception_thrown:__d
push 2
mov dword [ebp - 0x3b4], esi
call fcn.004018a4
push esi
call fcn.004024f8
mov edi, eax
mov dword [ebp - 0x3b4], esi
lea eax, [ebp - 0x3b4]
push eax
push str.Subscription_licensing_service_failed:__d
lea eax, [ebp - 0x28]
push eax
call fcn.0040123b
xor ebx, ebx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ebx
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x3b8], eax
lea eax, [ebp - 0x3b8]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 1
push dword [0x41c2c0]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test esi, esi
jns 0x40284e
xor eax, eax
mov dword [ebp - 0x3b0], edi
mov word [ebp - 0xa8], ax
mov word [ebp - 0x1a8], ax
mov word [ebp - 0x3ac], ax
lea eax, [ebp - 0x3b0]
push 0x419b54
push eax
mov dword [ebp - 0x1ac], 1
call sub.VCRUNTIME140.dll__CxxThrowException
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402c9a
call fcn.0040ec31
ret 4

Function at 0x4087be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x418f2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x411c24]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408834
cmp word [ebp - 0x20c], si
je 0x408834
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push str.Microsoft_Shared
push eax
call fcn.00408639
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040e557
mov esp, ebp
pop ebp
ret 8
Function at 0x4092be
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x418f2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x420], eax
mov ebx, 0x208
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0x18
lea ebx, [eax + 1]
test edi, edi
je 0x40932f
cmp dword [ebp + 0xc], eax
jne 0x409331
mov ebx, esi
push 0xffffffffffffffff
push str.SoftwareMicrosoftOffice16.0Registration_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x4094b2
cmp dword [ebp - 0x420], reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
jne 0x4093d2
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x104
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4094b2
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x4094b2
push 0xffffffffffffffff
push 0x411c90
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x4094b2
test ebx, ebx
je 0x40944d
mov ebx, dword [ebp - 0x428]
cmp word [ebx], 0x7b
je 0x40940d
push 0xffffffffffffffff
push 0x417e3c
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], 1
push 0x104
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x4094b2
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
mov ebx, 0x104
push ebx
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x4094b2
cmp dword [ebp - 0x41c], esi
je 0x40944d
push 0xffffffffffffffff
push 0x417e40
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x4094b2
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x4094b2
mov eax, dword [ebp - 0x42c]
test eax, eax
jne 0x40948f
xor esi, esi
inc esi
jmp 0x4094b2
push esi
push esi
push esi
push esi
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, edi
test eax, eax
push 1
cmovle ecx, eax
test ecx, ecx
pop eax
cmovns esi, eax
cmp dword [ebp - 0x418], 0
je 0x4094c7
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e557
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409589
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareMicrosoftOfficeSoftwareProtectionPlatform
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
mov ebx, 0x80070000
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4095fc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x412314
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4095fc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409939
Capabilities:
Reference public rsa key

Disassembly:
push 0x41c140
push dword [0x41c254]
push dword [ecx + 0x44]
add ecx, 0x3d4
call fcn.00409b8f
ret