joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d6b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f6f7
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x5a4ca4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5be334]
test eax, eax
jne 0x47d83e
push 0xc
call fcn.0050971d
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x47d834
push 1
lea eax, [ebp - 0x38]
mov word [esi + 8], 0x100
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 0xc
push str.Global_asusfanservice
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
lea ecx, [ebp - 0x10]
sete al
mov byte [esi + 8], al
call fcn.004332c0
push 0x20219
push str.SOFTWAREWOW6432NodeASUSARMOURY_CRATE_Diagnosis
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.0046dfc0
lea eax, [ebp - 0x14]
push eax
push str.EnableLog
lea ecx, [ebp - 0x10]
call fcn.0046dff0
lea ecx, [ebp - 0x10]
call fcn.0046dfa0
cmp dword [ebp - 0x14], 6
jne 0x47d7eb
mov ecx, esi
call fcn.0047ffd0
push 0x20206
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.0046dfc0
push 6
push str.EnableLog
lea ecx, [ebp - 0x10]
call fcn.0046e030
lea ecx, [ebp - 0x10]
call fcn.0046dfa0
mov ecx, esi
call fcn.004804f0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x5be340], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5be33c
push 0
push esi
push 0x473160
push 0
push 0
call fcn.00531def
add esp, 0x18
mov dword [0x5be338], eax
mov ecx, esi
call fcn.00480e70
lea ecx, [ebp - 0x10]
call fcn.0046dfa0
jmp 0x47d836
xor esi, esi
mov dword [0x5be334], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47d970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f752
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 4], 2
mov dword [ebp - 0x434], 0x400
mov word [esi], ax
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x42c]
push ecx
push dword [ebp + 0x3c]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x430], 1
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47dae8
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47dae8
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], 7
lea edx, [ecx + 2]
mov word [ebp - 0x428], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47da60
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00404cd0
lea eax, [ebp - 0x428]
cmp esi, eax
je 0x47dac7
mov ecx, esi
call fcn.00404720
movups xmm0, xmmword [ebp - 0x428]
xor eax, eax
mov word [ebp - 0x428], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x418]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
call fcn.00404720
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x42c], eax
jmp 0x47daee
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x47db2b
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47db21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47db93
push edx
push ecx
call fcn.0050974d
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x47db75
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47db6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47db98
push edx
push ecx
call fcn.0050974d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 0x38
call fcn.00524f8e
call fcn.00524f8e
int3
Function at 0x4819e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fc3b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov ecx, dword [ecx + 8]
lea esi, [ebp - 0x11c]
push esi
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x114]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x110]
jbe 0x481a72
push eax
mov eax, dword [ebp - 0x11c]
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ecx + eax], 0
push dword [ebp - 0x118]
inc dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x10c]
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x481ad2
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x481ac8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481aee
push edx
push ecx
call fcn.0050974d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
call fcn.00524f8e
int3
Function at 0x482e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fdd6
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x483024
cmp eax, 0xffffffff
je 0x483024
mov esi, dword [edi + 0xc]
push esi
mov dword [ebp - 0x138], esi
call fcn.005072f5
add esp, 4
test eax, eax
je 0x482ea6
push eax
call fcn.00507424
add esp, 4
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], 0xfa
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x134]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x10], 0
je 0x482fd4
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x482fd4
test eax, eax
je 0x482f27
push 0
push 0
push eax
push dword [ebp - 0x130]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebx + 8]
movzx eax, word [edi + eax*2 + 0x18]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x482f52
mov dword [ebp - 0x138], 7
jmp 0x482f7a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x138]
and ecx, 0xfff0
movzx eax, ax
or ecx, eax
push ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jbe 0x482f9d
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x138]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x12c]
cmp eax, ecx
jbe 0x482ffc
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x482ffc
push 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x134]
call fcn.0047ae40
push esi
mov dword [ebp - 4], 2
call fcn.0050731a
add esp, 4
test eax, eax
je 0x483024
push eax
call fcn.00507424
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
Function at 0x484a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550260
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.0053233b
add esp, 0x10
cmp eax, esi
jne 0x484a94
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048f230
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.00483380
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.005318f1
push dword [eax]
push esi
call fcn.00494200
int3
Function at 0x48e6b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0x10
jb 0x48e6d3
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48e85d
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x48e87f
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov esi, 0x56a0e0
mov edx, edi
lea eax, [esi + 1]
mov dword [ebp - 0x120], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x48e706
sub esi, dword [ebp - 0x120]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x120], ebx
jb 0x48e727
mov eax, dword [ebx]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x48e7a6
cmp ecx, edx
jae 0x48e7a6
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00521d30
xor edx, edx
lea eax, [esi + 0x56a0e0]
add esp, 0xc
mov ecx, 0x56a0e0
cmp eax, ecx
cmovb esi, edx
test esi, esi
je 0x48e773
nop dword [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
inc edx
mov byte [ebp + eax - 0x11c], 1
cmp edx, esi
jne 0x48e760
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
add eax, esi
lea edx, [esi + edi]
cmp eax, edx
jae 0x48e7a6
nop dword [eax + eax]
movzx ecx, byte [eax]
cmp byte [ebp + ecx - 0x11c], 0
jne 0x48e870
inc eax
cmp eax, edx
jb 0x48e790
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0xc], 0
mov esi, edi
mov dword [ebp - 8], 0xf
cmovne esi, eax
mov byte [ebp - 0x1c], 0
cmp edi, esi
mov eax, esi
mov ecx, ebx
cmovb eax, edi
cmp dword [ebx + 0x14], 0x10
jb 0x48e7d4
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405980
cmp dword [ebp - 0xc], 0
je 0x48e813
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48e813
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.005339ba
add esp, 4
test eax, eax
jne 0x48e877
mov edx, dword [ebp - 8]
lea ecx, [esi + 1]
mov dword [ebp - 0x124], ecx
cmp edx, 0x10
jb 0x48e852
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48e842
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e892
push edx
push ecx
call fcn.0050974d
mov ecx, dword [ebp - 0x124]
add esp, 8
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jb 0x48e6f6
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret
sub eax, esi
jmp 0x48e7a9
lea ecx, [ebp - 0x1c]
call fcn.00405690
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050970c
mov esp, ebp
pop ebp
ret
call fcn.00524f8e
int3
Function at 0x48ed30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x48ed4b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x48ed67
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x48ed56
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
mov eax, dword [ecx + esi]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x48eda0
cmp eax, edi
jne 0x48ed98
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x48eda8
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x48eda8
cmp eax, edi
jne 0x48edab
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0048d4a0
push 0x28
push edi
call fcn.0050974d
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48f360
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
mov dword [ebp - 4], ebx
jb 0x48f37f
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x48f3a1
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x48f390
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 8], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp edx, ebx
jne 0x48f3c9
mov eax, ebx
jmp 0x48f3cd
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x48f439
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x48f3db
mov edx, dword [edi]
mov edi, dword [esi + 0x1c]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], edi
cmp edi, 0x10
mov edi, dword [ebp + 0xc]
jb 0x48f3ef
mov ecx, dword [esi + 8]
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
push edx
push eax
push ecx
mov dword [ebp - 0x14], eax
call fcn.0041c700
add esp, 0x10
test al, al
jne 0x48f411
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x48f3c1
cmp dword [ebp - 0x10], 0x10
lea eax, [esi + 8]
jb 0x48f41c
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x48f424
mov edi, dword [edi]
push dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
call fcn.0041c700
add esp, 0x10
test al, al
cmovne ebx, esi
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x49357e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x493f50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550fe0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5a4ca4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00493310
mov edi, eax
lea esi, [edi + 0x30]
push esi
call fcn.005072f5
add esp, 4
test eax, eax
je 0x493f95
push eax
call fcn.00507424
add esp, 4
mov ebx, dword [edi + 0x110]
mov dword [edi + 0x110], 0
test ebx, ebx
je 0x493fbb
mov ecx, ebx
call fcn.00481de0
push 0x64
push ebx
call fcn.0050974d
add esp, 8
push esi
mov dword [ebp - 4], 0
call fcn.0050731a
add esp, 4
test eax, eax
je 0x493fd8
push eax
call fcn.00507424
add esp, 4
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0048eb90
lea esi, [edi + 0x60]
push esi
call fcn.005072f5
add esp, 4
test eax, eax
je 0x493fff
push eax
call fcn.00507424
add esp, 4
mov dword [edi + 0x108], 0
mov ebx, dword [edi + 0x10c]
mov dword [edi + 0x10c], 0
test ebx, ebx
je 0x49403e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x49403e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x49403e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push esi
mov dword [ebp - 4], 1
call fcn.0050731a
add esp, 4
test eax, eax
je 0x49405b
push eax
call fcn.00507424
add esp, 4
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 0x497d20
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5be718]
test eax, eax
je 0x497d48
call eax
mov dword [0x5be718], 0
mov eax, dword [0x5be710]
test eax, eax
je 0x497d62
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5be710], 0
push 0x208
lea eax, [ebp - 0x20c]
mov byte [0x5be730], 0
push 0
push eax
call fcn.00521d30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.ACPIWMI.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x497e26
lea eax, [ebp - 0x20c]
push eax
call fcn.00402f20
add esp, 4
test eax, eax
jne 0x497e12
mov byte [0x5be730], al
mov dword [0x5be710], eax
push 0x40040
push str._Error
push str.ACPIWMI.dll_does_not_be_found._Please_check_tool_package.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5be710], eax
jmp 0x497e2b
mov eax, dword [0x5be710]
test eax, eax
je 0x497ded
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AsWMI_Open
push eax
call esi
push str.AsWMI_Close
push dword [0x5be710]
mov dword [0x5be714], eax
call esi
push str.AsWMI_DeviceControl
push dword [0x5be710]
mov dword [0x5be718], eax
call esi
push str.AsWMI_GetDeviceStatus
push dword [0x5be710]
mov dword [0x5be720], eax
call esi
push str.AsWMI_SetBootDevice
push dword [0x5be710]
mov dword [0x5be71c], eax
call esi
push str.AsWMI_RegisterEvent
push dword [0x5be710]
mov dword [0x5be724], eax
call esi
push str.AsWMI_GetSystemInfo
push dword [0x5be710]
mov dword [0x5be728], eax
call esi
mov dword [0x5be72c], eax
call dword [0x5be714]
mov byte [0x5be730], al
pop esi
test al, al
je 0x497e04
call dword [0x5be728]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret

Function at 0x49a500
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49a510
sub eax, edx
mov esi, 0x811c9dc5
mov edx, 0
je 0x49a536
movzx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jb 0x49a525
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00533a26
imul eax, eax, 0xb14
add esp, 8
imul ecx, edx, 0x41a7
pop edi
pop esi
sub ecx, eax
lea eax, [ecx + 0x7fffffff]
js 0x49a564
mov eax, ecx
pop ebp
ret 4
Function at 0x4a81f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552b47
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a4ca4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [ebp - 4], 0
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c0ae0
mov dword [esi], eax
lea esi, [edi + 0x44]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c0ae0
mov dword [esi], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 4
mov dword [ecx + 0x10], 0
push 0
mov dword [ecx + 0x14], 0xf
push 0x55a8b0
mov byte [ecx], 0
call fcn.00405980
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b0350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5535be
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5a4ca4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
or dword [ebx + 8], 1
mov ecx, dword [ebx + 0x90]
cmp ecx, 0x5be7b0
jne 0x4b039f
push eax
lea ecx, [ebx + 0x90]
call fcn.00465430
jmp 0x4b03b6
cmp ecx, eax
je 0x4b03b6
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x4b03ad
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00405980
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x10], 0
jle 0x4b0440
lea esi, [ebx + 0x10]
mov dword [ebp - 0x14], 0
nop dword [eax]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4b03f1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
cmp ecx, edx
jge 0x4b03ec
mov ebx, dword [eax + ecx*4 + 4]
lea eax, [ecx + 1]
mov dword [esi + 4], eax
jmp 0x4b041d
cmp edx, dword [esi + 8]
jne 0x4b0400
mov eax, dword [esi + 8]
mov ecx, esi
inc eax
push eax
call fcn.004c32d0
mov eax, dword [esi + 0xc]
inc dword [eax]
push dword [esi]
push 0
call fcn.004bb4b0
mov edx, dword [esi + 4]
mov ebx, eax
mov ecx, dword [esi + 0xc]
add esp, 8
mov dword [ecx + edx*4 + 4], ebx
inc dword [esi + 4]
mov ecx, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp - 0x14]
add ecx, ebx
call fcn.004b0ab0
mov ecx, dword [ebp - 0x10]
invalid