joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbc30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4cbc95
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4cbc78
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ca568
mov eax, dword [ebp - 8]
call fcn.004ca4cc
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
jmp 0x4cbc7a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbc9c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052a8
ret

Function at 0x4cbca4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4cbd70
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cbd4b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x60]
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4cbd30
push pe_nt_image_headers32
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [ebx + 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004ca568
mov eax, dword [ebp - 0x10]
call fcn.004ca4cc
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4cbd34
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbd52
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4cedec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4ceee2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405284
cmp dword [ebp - 4], 0
je 0x4cee48
mov eax, dword [ebp - 4]
call fcn.004ca714
test al, al
je 0x4cee48
lea eax, [ebp - 0x109]
mov edx, dword [ebp - 4]
call fcn.0040b274
jmp 0x4cee59
lea eax, [ebp - 0x109]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x109]
call fcn.0040b4a0
mov eax, dword [ebp - 0x110]
call fcn.004ca714
test al, al
jne 0x4cee95
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x109]
call fcn.0040b4a0
mov eax, dword [ebp - 0x114]
call fcn.004cad70
lea eax, [ebp - 0x109]
push eax
push 0
push 0x4ceef0
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x109]
call fcn.0040b4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ceee9
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.004052a8
lea eax, [ebp - 4]
call fcn.00405284
ret
Function at 0x4d3768
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4d3830
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4d379f
cmp byte [esi + 0x45c], 0
je 0x4d37a5
mov byte [ebp - 5], 0
jmp 0x4d381a
mov eax, dword [ebp - 4]
call fcn.004cac54
test al, al
jne 0x4d3816
mov byte [ebp - 5], 0
cmp word [esi + 0x3202], 0
je 0x4d37f8
lea eax, [ebp - 5]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [esi + 0x3204]
call dword [esi + 0x3200]
cmp byte [ebp - 5], 0
je 0x4d381a
push 0x80
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4d381a
push 0x4d384c
push 0x62b6
mov ecx, 0x4d3858
mov edx, dword [ebp - 4]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x98]
jmp 0x4d381a
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3837
lea eax, [ebp - 4]
call fcn.00405284
ret
Function at 0x4d5660
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4d574f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004ce794
test al, al
je 0x4d5723
xor edx, edx
push ebp
push 0x4d56ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.004cf330
mov edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
call fcn.0040ab3c
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d56d4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004cece4
test al, al
jne 0x4d56fd
push 0x4d5768
push 0x6232
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 8]
cmp byte [eax + 0x31d8], 0
je 0x4d5739
cmp dword [ebp + 8], 0x20
je 0x4d5739
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4d5739
mov eax, dword [ebp - 8]
add eax, 0x4c0
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x31e0]
call fcn.004052d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5756
lea eax, [ebp - 4]
call fcn.00405284
ret

Function at 0x4d57d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d5894
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 1
jne 0x4d586b
mov eax, esi
call fcn.004ca9f8
test al, al
je 0x4d5867
mov byte [ebp - 1], 1
mov eax, dword [0x50d35c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], 3
lea eax, [ebp - 0x24]
mov ecx, 0x4d58ac
mov edx, esi
call fcn.00405594
mov eax, dword [ebp - 0x24]
call fcn.00405748
mov dword [ebp - 0x17], eax
xor eax, eax
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], 0x1c
cmp byte [ebp - 1], 1
cmc
sbb eax, eax
mov dword [ebp - 0xd], eax
cmp bl, 1
jne 0x4d5854
or word [ebp - 0xf], 0x40
lea eax, [ebp - 0x1f]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
and bl, byte [ebp - 1]
jmp 0x4d587e
xor ebx, ebx
jmp 0x4d587e
mov eax, esi
call fcn.00405748
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d589b
lea eax, [ebp - 0x24]
call fcn.00405284
ret

Function at 0x4d5908
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x4d5934
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
mov esi, dword [0x50d2ac]
movzx ebx, word [esi + ebx*2]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x4d590e
pop esi
pop ebx
ret
Function at 0x4e1fcc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e203c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.004059d0
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x4e2006
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
call fcn.00405748
push eax
push esi
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
xchg edx, eax
call fcn.004059d0
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.004e1ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2043
lea eax, [ebp - 8]
call fcn.00405284
ret
Function at 0x4eef34
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00405738
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x4ef15a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040aaa4
test al, al
je 0x4eefaa
xor eax, eax
push ebp
push 0x4eef96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4eefaa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov byte [eax + 0x35e], 0
mov byte [eax + 0x43d], 4
mov dl, 1
call fcn.004d28f0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
movzx edx, byte [ebp + 8]
mov byte [eax + 0x43c], dl
mov byte [eax + 0x3228], 0
mov byte [eax + 0x3220], 0
mov byte [eax + 0x36], 0
mov eax, dword [eax + 0x364]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov eax, dword [eax + 0x36c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov eax, dword [eax + 0x36c]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov cl, 1
xor edx, edx
call fcn.004d0e30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov cl, 1
mov dl, 6
call fcn.004d0e30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov cl, 1
mov dl, 5
call fcn.004d0e30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov cl, 1
mov dl, 2
call fcn.004d0e30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov cl, 1
mov dl, 1
call fcn.004d0e30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov cl, 1
mov dl, 3
call fcn.004d0e30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
xor ecx, ecx
xor edx, edx
call fcn.004d0e60
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
xor ecx, ecx
mov dl, 6
call fcn.004d0e60
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
xor ecx, ecx
mov dl, 5
call fcn.004d0e60
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
xor ecx, ecx
mov dl, 2
call fcn.004d0e60
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
xor ecx, ecx
mov dl, 1
call fcn.004d0e60
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
xor ecx, ecx
mov dl, 3
call fcn.004d0e60
xor eax, eax
push ebp
push 0x4ef135
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38c]
mov edx, dword [eax]
call dword [edx + 0x110]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef13f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef161
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052a8
ret
Function at 0x4749b8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4746cc
push 0x3ecc7bc3
pop esi
mov esi, esi
call fcn.00474a08
add ecx, 0x2e8fd799
and ecx, esi
and esi, ecx
xor dword [eax], ebx
or ecx, ecx
sub esi, 0xb6df723
add eax, 2
and esi, ecx
and esi, ecx
cmp eax, edx
jl fcn.004749b8
add esi, 0x217504da
push 0xcc99a903
pop esi
mov ecx, 0x32279cd
ret
Function at 0x4036c9
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d3588], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40370e
push 0x402b40
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b7c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x422d28]
mov ebx, dword [0x422d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004036c2
mov eax, dword [0x422d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x422d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d3588], 0xc
mov dword [ebp - 4], ecx
jne 0x4037af
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402bb8
push 0x402be0
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d3588]
cmp ecx, 0xfa9
jne 0x4037cd
mov dword [0x4d2b24], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4037db
mov dword [0x4d24d8], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x4d2b20], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d3588], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403819
push esi
push 0x402c38
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4d3588], 0xc
jne 0x403862
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c78
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403747
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4038ad
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d3588]
mov ecx, dword [0x4d24dc]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4039a5
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4d3588], 0x959
jne 0x403993
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d14
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402d50
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402de0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004036c9
add ebx, 8
dec dword [ebp - 4]
jne 0x4038d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40577b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422494]
jne 0x405785
repz ret
jmp fcn.00408f9c

Function at 0x40adbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406d46
and dword [ebp - 4], 0
cmp dword [0x424108], 0
mov ebx, eax
jne 0x40ae6c
push 0x4021ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40af1d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a0
push edi
call esi
test eax, eax
je 0x40af1d
push eax
call fcn.00406cd4
mov dword [esp], 0x402190
push edi
mov dword [0x424108], eax
call esi
push eax
call fcn.00406cd4
mov dword [esp], 0x40217c
push edi
mov dword [0x42410c], eax
call esi
push eax
call fcn.00406cd4
mov dword [esp], 0x402160
push edi
mov dword [0x424110], eax
call esi
push eax
call fcn.00406cd4
pop ecx
mov dword [0x424118], eax
test eax, eax
je 0x40ae6c
push 0x402148
push edi
call esi
push eax
call fcn.00406cd4
pop ecx
mov dword [0x424114], eax
mov eax, dword [0x424114]
cmp eax, ebx
je 0x40aec4
cmp dword [0x424118], ebx
je 0x40aec4
push eax
call fcn.00406d4f
push dword [0x424118]
mov esi, eax
call fcn.00406d4f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aec4
test edi, edi
je 0x40aec4
call esi
test eax, eax
je 0x40aebb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aebb
test byte [ebp - 0xc], 1
jne 0x40aec4
or dword [ebp + 0x10], 0x200000
jmp 0x40aefd
mov eax, dword [0x42410c]
cmp eax, ebx
je 0x40aefd
push eax
call fcn.00406d4f
pop ecx
test eax, eax
je 0x40aefd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aefd
mov eax, dword [0x424110]
cmp eax, ebx
je 0x40aefd
push eax
call fcn.00406d4f
pop ecx
test eax, eax
je 0x40aefd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424108]
call fcn.00406d4f
pop ecx
test eax, eax
je 0x40af1d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40af1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4034e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [0x4435bc]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.00431edb
push eax
lea ecx, [esp + 0x30]
call fcn.0043868f
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [0x4434dc]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [0x4435e8]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.00431edb
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00438545
mov eax, dword [esi + 0xc0]
mov ebx, dword [0x4430f8]
test eax, eax
jne 0x403616
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [0x4430fc]
push eax
lea ecx, [esi + 0xbc]
call fcn.0043801e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0xcc]
call dword [0x443100]
push eax
mov ecx, edi
call fcn.00438937
test edi, edi
je 0x4035c2
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xc0]
push edi
push eax
call fcn.0043815f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xc0]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xbc]
sub ecx, edi
test edx, edx
je 0x403637
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00438701
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4

Function at 0x404520
Capabilities:
Query or enumerate registry value

Disassembly:
call fcn.00404830
test eax, eax
je 0x404595
push str.NtQuerySystemInformation
push str.ntdll
call dword [0x4431c8]
push eax
call dword [0x4431b4]
test eax, eax
mov dword [0x456a3c], eax
jne 0x40454d
or eax, 0xffffffff
ret
push 0
push 0x2c
push 0x456a10
push 0
call eax
test eax, eax
je 0x404562
or eax, 0xffffffff
ret
mov dword [0x456a08], 0
mov dword [0x456a0c], 0
mov dword [0x456a00], 0
mov dword [0x456a04], 0
call fcn.00404700
mov eax, 1
ret
push 0x4569fc
push 0xf003f
push 0
push str.PerfStats_
push 0x80000006
call dword [0x443004]
test eax, eax
je 0x4045b9
or eax, 0xffffffff
ret
mov eax, dword [0x4569fc]
push 0x4569f8
push 0x4569f0
push 0x4569f4
push 0
push str.KERNELCPUUsage
push eax
mov dword [0x4569f8], 4
call dword [0x443014]
mov ecx, dword [0x4569fc]
push ecx
call dword [section..rdata]
mov eax, 1
ret
Function at 0x404600
Capabilities:
Query or enumerate registry value

Disassembly:
call fcn.00404830
test eax, eax
jne 0x404665
push 0x4569fc
push 0xf003f
push eax
push str.PerfStatsStat
push 0x80000006
call dword [0x443004]
test eax, eax
je 0x40462c
or eax, 0xffffffff
ret
mov eax, dword [0x4569fc]
push 0x4569f8
push 0x4569f0
push 0x4569f4
push 0
push str.KERNELCPUUsage
push eax
mov dword [0x4569f8], 4
call dword [0x443014]
mov ecx, dword [0x4569fc]
push ecx
call dword [section..rdata]
mov eax, 1
ret