joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ca5c
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x28
mov eax, 0x471cf9
call fcn.0044911b
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x30], esi
mov dword [esi + 0x10], ebx
jb 0x43ca86
mov eax, dword [esi]
jmp 0x43ca88
mov eax, esi
mov byte [eax], bl
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00403e21
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0xf0000000
push 1
push ebx
push ebx
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
call fcn.004158b7
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409040
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403e21
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea eax, [esi + 0x1c]
push eax
push ebx
push ebx
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push eax
call fcn.004158b7
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409040
mov eax, esi
call fcn.00449068
ret

Function at 0x43ce14
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49e5f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044d7a0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43ce6e
cmp dword [ebp - 0x108], 2
jne 0x43ce6e
cmp dword [ebp - 0x114], 6
jb 0x43ce6e
mov al, 1
jmp 0x43ce70
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449031
mov esp, ebp
pop ebp
ret
Function at 0x43fd01
Capabilities:
Terminate process

Disassembly:
push 0x5c
mov eax, 0x472150
call fcn.004490ad
mov esi, ecx
and dword [esi + 8], 0
lea ebx, [esi + 0xc]
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi], vtable.CUnzipper.0
mov word [ebx], ax
test edi, edi
je 0x43fe14
push 0x104
call fcn.0044f1c7
mov dword [esp], 0x104
push eax
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00403e9d
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040ee93
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x43fd6e
mov eax, dword [eax]
push eax
call fcn.004423ae
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
mov dword [esi + 8], eax
call fcn.00409040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00409095
push dword [ebp - 0x5c]
call fcn.0044f1c2
cmp dword [esi + 8], 0
pop ecx
push edi
jne 0x43fde2
lea eax, [ebp - 0x58]
push str.unzOpen_failed_for__S
push eax
call fcn.0040efce
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x43fdc4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040487f
push 0x4939d8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::runtime_error.0
push eax
call fcn.0044b5d4
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x2e
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x43fe05
push 0x5c
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.00449057
ret 4

Function at 0x43feba
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x43ff18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x43ff18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fee8
shr eax, 4
and eax, 1
jmp 0x43ff1a
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x43ff34
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.0043feba
push edi
test eax, eax
jne 0x43ff21
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43ff18
xor eax, eax
inc eax
jmp 0x43ff1a
Function at 0x440324
Capabilities:
Timestomp file

Disassembly:
push 0x48
mov eax, 0x4721f9
call fcn.004490ad
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push str.SetFileModTime_couldnt_open__S
push eax
call fcn.0040efce
push eax
xor eax, eax
inc ebx
cmp esi, 0xffffffff
mov byte [ebp - 4], bl
setne al
push eax
call fcn.004158b7
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.00409040
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_GetFileTime:__S
push eax
call fcn.0040efce
add esp, 0xc
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push eax
call fcn.004158b7
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00409040
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_DosDateTimeToFileTime:__S
push eax
call fcn.0040efce
add esp, 0xc
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
push eax
call fcn.004158b7
pop ecx
pop ecx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00409040
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_LocalFileTimeToFileTime:__S
push eax
call fcn.0040efce
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push eax
call fcn.004158b7
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00409040
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_SetFileTime:__S
push eax
call fcn.0040efce
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push eax
call fcn.004158b7
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00409040
test esi, esi
je 0x440488
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00449057
ret 8
Function at 0x445b3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x445b48
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00443e11
Function at 0x46270f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046258e
Function at 0x41ecdc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415fe2
and dword [ebp - 0x14], 0
cmp dword [0x46b270], 0
mov dword [ebp - 0x18], eax
jne 0x41ed8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ee37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ee37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b278], eax
call edi
push eax
call esi
mov dword [0x46b280], eax
test eax, eax
je 0x41ed8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b27c], eax
mov eax, dword [0x46b27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ede8
cmp dword [0x46b280], ecx
je 0x41ede8
push eax
call esi
push dword [0x46b280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ede8
test ebx, ebx
je 0x41ede8
call edi
test eax, eax
je 0x41eddf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41eddf
test byte [ebp - 8], 1
jne 0x41ede8
or dword [ebp + 0x10], 0x200000
jmp 0x41ee1b
mov eax, dword [0x46b274]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ee1b
mov eax, dword [0x46b278]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b270]
call esi
test eax, eax
je 0x41ee37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ee39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410717
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x4351f4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x3ac90717
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x30003b71
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x3000233c
push 0x30002320
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30003ba6
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x3000231c
push ebx
call edi
test esi, esi
mov dword [0x3000231c], esi
jne 0x30003c0a
mov dword [0x3000231c], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x300091dc], 0x44bf19b1
pop ebx
leave
ret

Function at 0x30003c25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3000231c]
jne 0x3000404d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300098c8], eax
mov dword [0x300098c4], ecx
mov dword [0x300098c0], edx
mov dword [0x300098bc], ebx
mov dword [0x300098b8], esi
mov dword [0x300098b4], edi
mov word [0x300098e0], ss
mov word [0x300098d4], cs
mov word [0x300098b0], ds
mov word [0x300098ac], es
mov word [0x300098a8], fs
mov word [0x300098a4], gs
pushfd
pop dword [0x300098d8]
mov eax, dword [ebp]
mov dword [0x300098cc], eax
mov eax, dword [ebp + 4]
mov dword [0x300098d0], eax
lea eax, [ebp + 8]
mov dword [0x300098dc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30009818], 0x10001
mov eax, dword [0x300098d0]
mov dword [0x300097cc], eax
mov dword [0x300097c0], 0xc0000409
mov dword [0x300097c4], 1
mov eax, dword [0x3000231c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300091dc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30009810], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30002358
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30009810], 0
jne 0x3000413d
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x3000465f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
cmp dword [ebp + 8], esi
je 0x300046cd
lea eax, [ebp + 8]
push eax
push 0x20019
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.MSO.dll_Ordinal_1358]
test eax, eax
jne 0x300046cd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x3000127c
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x300046c0
cmp dword [ebp - 8], 4
jne 0x300046c0
xor ebx, ebx
cmp dword [ebp - 0xc], esi
sete bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x300046df
push esi
push esi
push esi
push 2
push 2
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x30005442
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_1074]
test eax, eax
je 0x300054f2
push esi
mov esi, dword [sym.imp.MSO.dll_Ordinal_295]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea eax, [edi + eax + 1]
cmp eax, dword [ebp + 0x14]
jl 0x30005477
xor eax, eax
jmp 0x300054f0
mov esi, dword [ebp + 0x10]
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_6877]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSO.dll_Ordinal_6873]
push esi
call dword [sym.imp.MSO.dll_Ordinal_1284]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x300054ed
push 1
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
cmp esi, 0xffffffff
je 0x300054ed
push edi
lea eax, [ebp + 8]
push eax
push 0x7e
push 0x30001290
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300054e6
cmp dword [ebp + 8], 0x7e
jne 0x300054e6
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x30006efa
Capabilities:
Execute anti-debugging instructions
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x3000231c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x3000a264], ebx
mov dword [ebp - 0x108], ebx
jne 0x300070ec
lea eax, [ebp - 0x108]
push eax
push 0x20019
push ebx
push 0x3000269c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x300070ec
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x104], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x114], 0x100
call fcn.30006e98
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x300070ec
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x3000a278], eax
je 0x300070ec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002720
push eax
call esi
push 0x3000270c
push dword [0x3000a278]
mov dword [0x3000a264], eax
call esi
push 0x300026fc
push dword [0x3000a278]
mov dword [0x3000a26c], eax
call esi
push 0x300026e4
push dword [0x3000a278]
mov dword [0x3000a268], eax
call esi
push 0x300026c8
push dword [0x3000a278]
mov dword [0x3000a270], eax
call esi
mov dword [0x3000a274], eax
mov eax, dword [0x3000a264]
cmp eax, ebx
pop esi
je 0x300070ec
cmp dword [0x3000a26c], ebx
je 0x300070ec
cmp dword [0x3000a268], ebx
je 0x300070ec
push dword [ebp + 8]
call eax
cpuid
rdtsc
cpuid
rdtsc
cpuid
rdtsc
cmp dword [ebp + 0xc], 0
je 0x300070a3
mov eax, dword [0x3000a26c]
test eax, eax
je 0x300070a3
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push 0x221
call eax
push 8
call fcn.30006ec5
push 9
call fcn.30006ec5
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.30006e98
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push 4
call dword [0x3000a26c]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push 5
call dword [0x3000a26c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30003c25
leave
ret 8
Function at 0x300071da
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x3000231c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x30007216
xor eax, eax
jmp 0x3000733c
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30007232
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x30002830
push edi
call fcn.300071af
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x30007272
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30007324
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000281c
push ebx
call edi
push 0x300027fc
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x30007324
cmp dword [ebp - 0x474], esi
mov ebx, 0x300027e8
mov edi, 0x30002798
je 0x300072fc
cmp dword [ebp - 0x478], esi
je 0x30007324
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x300072f5
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x30007328
cmp eax, 0x642
je 0x30007328
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x30007328
xor eax, eax
jmp 0x3000733a
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x3000a27c], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30003c25
leave
ret 4
Function at 0x30007418
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x3000231c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x30002730
push 0x80000002
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x300028b4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x300074a3
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x300074ce
cmp eax, 0x208
ja 0x300074ce
shr eax, 1
mov esi, eax
je 0x300074ce
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x300074ce
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x300074c1
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.3000738a
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30003c25
leave
ret 4

Function at 0x300074f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3000231c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30002860
push 0x80000002
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x30002840
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x30007580
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x300028d0
call fcn.300071af
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x300075b2
push 0x300028c4
call fcn.30007418
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30003c25
leave
ret

Function at 0x300077fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30002930
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30007855
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x30002928
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30007855
mov al, 1
jmp 0x30007857
xor al, al
leave
ret 8