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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4898a1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x489885
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4897d7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4897b5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x48a2e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48a340
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x48a340
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x48a340
xor eax, eax
inc eax
jmp 0x48a342
xor eax, eax
leave
ret 0x10
Function at 0x48a36b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48a3d9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4dbf94
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48a3d0
cmp dword [ebp - 0xc], 4
jne 0x48a3d0
cmp dword [ebp - 0x10], edi
je 0x48a3d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x503d98], edi
xor eax, eax
jmp 0x48a418
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x503d98], edi
jge 0x48a413
lea eax, [ebp - 0x34]
push eax
mov dword [0x503d98], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x48a413
cmp word [ebp - 0x14], 5
jb 0x48a413
call fcn.0048a346
test eax, eax
je 0x48a413
emms
mov dword [0x503d98], 1
mov eax, dword [0x503d98]
pop edi
leave
ret

Function at 0x4ad28e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ad2c6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ab345
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ab31d
jmp 0x4ad2d2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ae983
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ae9c5
call fcn.004b46f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ae9c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ae9bc
xor eax, eax
jmp 0x4ae9cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ae9d3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b4c24
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b4c52
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b4c70
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b4b8a
jmp 0x4b4c70
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b4c70
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b4b8a
test edi, edi
mov eax, edi
jne 0x4b4c5a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x31f26cb7
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..pdata
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3b851a8d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4039a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x44e110], 0
je 0x4039be
mov eax, dword [0x44e114]
jmp 0x403a8e
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a0d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x44e114
push esi
push esi
push dword [0x44b5e8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403a0d
cmp dword [ebp - 8], 4
je 0x403a67
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x403a1e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a6f
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x44e114
push esi
push esi
push dword [0x44b5e8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403a6f
cmp dword [ebp - 8], 4
jne 0x403a6f
mov esi, dword [0x44e114]
jmp 0x403a75
mov dword [0x44e114], esi
cmp dword [ebp - 4], 0
mov byte [0x44e110], 1
je 0x403a8b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403a92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x43634c
push Ordinal_4
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403b24
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x403b1a
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403b1a
cmp dword [ebp + 8], edi
jne 0x403b1a
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x403b1a
cmp dword [ebp - 4], ebx
je 0x403b26
push dword [ebp - 4]
call esi
jmp 0x403b26
cmp dword [ebp - 4], ebx
je 0x403b24
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x403b30
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404728
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x404791
cmp dword [ebp - 0x210], 4
jb 0x404791
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.0040484b
jmp 0x404793
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d8fc
mov esp, ebp
pop ebp
ret 8

Function at 0x4047a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x404838
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x404838
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040484b
jmp 0x40483a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d8fc
mov esp, ebp
pop ebp
ret 4

Function at 0x406855
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
je 0x406878
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 0x3c]
and dword [esi + 0x3c], 0
pop esi
pop ebp
ret 4
Function at 0x4088ce
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x40898e
test eax, eax
je 0x408906
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x408906
mov eax, dword [esi + 0x44]
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test edi, edi
je 0x40890f
lea edx, [edi + 0x44]
jmp 0x408911
xor edx, edx
mov eax, dword [esi + 0x44]
push ebx
test eax, eax
je 0x40891e
lea ebx, [eax + 0x44]
jmp 0x408920
xor ebx, ebx
mov eax, dword [esi + 0x48]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov dword [esi + 0x44], edi
push dword [edi + 4]
push esi
call dword [eax + 0x14]
push eax
call sub.Mso99LWin32Client.dll_Ordinal_1475
pop ebx
test eax, eax
je 0x4089ac
mov eax, dword [esi + 0x44]
push dword [eax + 4]
call sub.MSO.dll_Ordinal_1158
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x408968
mov eax, dword [esi + 0x44]
push 0
push dword [eax + 4]
push 0
push 1
call fcn.0040b868
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40898e
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x40898e
mov eax, dword [esi + 0x44]
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x54]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4
push 2
call fcn.00418ecf
int3

Function at 0x40b868
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
test esi, esi
je 0x40b87e
mov dword [esi], ebx
cmp dword [eax], ebx
jne 0x40b886
xor al, al
jmp 0x40b8f3
push edi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x40b8f0
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b8e2
mov eax, dword [ebp - 4]
push ebx
push ebx
push ebx
push 6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x40b8e2
test esi, esi
je 0x40b8c6
mov eax, dword [ecx]
mov dword [esi], eax
cmp byte [ebp + 8], bl
jne 0x40b8d4
cmp byte [ebp + 0xc], bl
je 0x40b8d9
cmp dword [ecx], ebx
jne 0x40b8d9
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410d09
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], eax
mov eax, dword [0x44e1e8]
inc ebx
push edi
xor edi, edi
test eax, eax
jne 0x410dd3
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jbe 0x410d87
mov dword [0x44e1e8], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8fc
mov esp, ebp
pop ebp
ret 4
jne 0x410dcb
cmp dword [ebp - 0x110], ebx
jb 0x410db7
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x410dc3
cmp dword [ebp - 0x11c], edi
je 0x410dc3
mov dword [0x44e1e8], 2
jmp 0x410dd8
mov dword [0x44e1e8], ebx
jmp 0x410d72
push 2
pop eax
mov dword [0x44e1e8], eax
cmp eax, 2
jne 0x410d72
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push edi
call esi
mov ebx, eax
push ebx
call esi
test ebx, ebx
je 0x410dfd
push dword [ebp - 0x120]
call ebx
mov edi, eax
test edi, edi
je 0x410dfd
cmp edi, 1
jne 0x410e07
mov dword [0], 1
mov eax, edi
jmp 0x410d74
Function at 0x41cdc8
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x214], 1
call sub.VCRUNTIME140.dll_memset
mov edx, 0x44e2bc
mov dword [ebp - 0x210], esi
add esp, 0xc
mov eax, edx
xor ecx, ecx
cmp dword [eax], 0
je 0x41ce29
add eax, 0x14
inc ecx
cmp eax, 0x44e2e4
jl 0x41ce14
jmp 0x41cf80
imul esi, ecx, 0x14
add esi, edx
je 0x41cf80
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cf64
cmp dword [ebp - 0x214], 1
jne 0x41cf64
cmp word [ebp - 0x20c], ax
je 0x41cf64
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x41cf64
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x41ceab
add eax, eax
cmp eax, 0x208
jae 0x41cf93
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x41ceb1
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041d329
mov dword [esi], eax
test eax, eax
je 0x41cf64
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetPerfhostHookVersion_0
push eax
call edi
test eax, eax
jne 0x41cede
mov eax, dword [ebp + 0x10]
jmp 0x41cee0
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x41cf04
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_12
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_4
jmp 0x41cf38
cmp eax, 2
jne 0x41cf19
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_8
jmp 0x41cef6
cmp eax, 3
jne 0x41cf42
push str._InitPerf_v3_4
push dword [esi]
call edi
push str._PerfCodeMarker_v3_8
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_v3_4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x41cf64
cmp dword [esi + 0x10], 0
je 0x41cf64
cmp dword [esi + 0xc], 0
je 0x41cf64
push dword [0x44e314]
push esi
call fcn.0041cd8f
test eax, eax
jns 0x41cf80
cmp dword [esi], 0
je 0x41cf71
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8fc
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042e96a
int3
Function at 0x420144
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x364
mov eax, 0x432e28
call fcn.0042df10
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x330], ebx
mov ecx, 0x102
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x32c], 0x44c238
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], ecx
push ebx
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.00402d7a
push 0x3c
lea eax, [ebp - 0x370]
mov byte [ebp - 4], 2
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x330]
push ebx
push ebx
push 0x780
push ebx
push ebx
push esi
push eax
call sub.Mso20Win32Client.dll_Ordinal_179
mov esi, eax
test esi, esi
js 0x420344
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 3
mov eax, dword [ebp - 0x330]
push eax
sete bl
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor esi, esi
lea ecx, [ebp - 0x32c]
push esi
push ecx
push eax
call fcn.00417b42
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
call sub.Mso99LWin32Client.dll_Ordinal_801
test eax, eax
jne 0x42022f
call sub.Mso99LWin32Client.dll_Ordinal_2313
mov esi, 0x80004005
jmp 0x420344
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x330]
push edi
push esi
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x34]
push eax
call sub.Mso30Win32Client.dll_Ordinal_349
mov ecx, dword [ebp - 0x330]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
test esi, esi
js 0x420344
mov eax, dword [ebp - 0x328]
xor edi, edi
inc edi
mov dword [ebp - 0x370], 0x3c
mov dword [ebp - 0x354], edi
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x36c], 0x500
test bl, bl
je 0x4202ef
push 0
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x334], 0x104
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x420318
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420318
test al, 0x10
je 0x420318
mov dword [ebp - 0x35c], 0x435ab4
mov dword [ebp - 0x364], str.open
mov dword [ebp - 0x348], str.Folder
jmp 0x420312
push dword [ebp - 0x330]
call fcn.0041f723
test al, al
je 0x420318
mov dword [ebp - 0x364], str.opennew
mov dword [ebp - 0x348], str.htmlfile
or dword [ebp - 0x36c], edi
lea eax, [ebp - 0x370]
push eax
call fcn.00425d85
test eax, eax
jns 0x42032c
mov esi, eax
jmp 0x420344
cmp dword [ebp - 0x350], 0x20
ja 0x420344
cmp dword [ebp - 0x350], 0
mov eax, 0x80004005
cmovne esi, eax
push dword [ebp - 0x338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x31c]
cmp dword [ebp - 0x328], eax
je 0x420369
push dword [ebp - 0x328]
call fcn.00402027
mov eax, dword [ebp - 0x330]
mov dword [ebp - 4], 3
test eax, eax
je 0x420380
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.0042dec2
ret 8
Function at 0x426be7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x433750
call fcn.0042dedc
mov edi, ecx
push 4
call fcn.00413629
mov esi, dword [edi + 0x4c]
xor ebx, ebx
inc ebx
cmp eax, dword [esi + 8]
jle 0x426c11
mov ecx, dword [esi]
push ebx
push eax
push esi
mov edx, dword [ecx]
push ecx
call dword [edx]
mov ebx, 0x44c4b0
call dword [ebx - 4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x426c94
push dword [ebx]
mov edx, dword [eax]
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
js 0x426c94
mov eax, dword [edi + 0x4c]
mov esi, dword [eax + 8]
mov eax, dword [edi + 0x50]
inc eax
push eax
call fcn.00413629
cmp esi, eax
jge 0x426c7b
mov eax, dword [edi + 0x50]
xor ecx, ecx
cdq
inc ecx
sub eax, edx
sar eax, 1
cmp eax, ecx
cmovl eax, ecx
push eax
push dword [edi + 0x50]
lea eax, [ebp - 0x24]
push eax
call fcn.00412b61
push dword [eax]
call fcn.00413629
mov esi, dword [edi + 0x4c]
cmp eax, dword [esi + 8]
jle 0x426c7b
mov ecx, dword [esi]
push 1
push eax
push esi
mov edx, dword [ecx]
push ecx
call dword [edx]
mov eax, dword [edi + 0x4c]
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x50]
lea eax, [ecx + eax*4]
push eax
call fcn.004261bf
inc dword [edi + 0x50]
add ebx, 8
cmp ebx, 0x44c4c8
jle 0x426c16
xor esi, esi
mov dword [ebp - 0x10], esi
push 4
pop ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x43a9b8
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x426d05
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.Providers
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426d05
cmp dword [ebp - 0x1c], ebx
jne 0x426d05
cmp dword [ebp - 0x20], eax
je 0x426d05
push 3
mov ecx, edi
call fcn.004267d3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x426d16
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.0042dead
ret

Function at 0x42916f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x18], 8
jne 0x42919d
cmp dword [ebp + 8], 0
je 0x42918d
push dword [ebp + 8]
call fcn.004024a1
cmp eax, 0x104
jle 0x42919d
push 0x62713071
call sub.Mso20Win32Client.dll_Ordinal_983
xor eax, eax
pop ebp
ret 0x14
pop ebp
jmp dword [sym.imp.SHELL32.dll_SHGetFileInfoW]